The RTSP protocol video platform EasyNVR cannot display the RTMP and RTSP video stream addresses after being connected to the EasyNVS management platform

The EasyNVS video integrated management platform can perform unified management of the connected EasyNVR, obtain all the capabilities of EasyNVR, and perform Internet-based output, while performing unified management and interface output.

NVS.png

As many scenarios have the need to access the intranet from the external network, the use of EasyNVS has become more frequent and more consultations have begun. There are also customers who get the RTMP and RTSP addresses of EasyNVR through EasyNVS, but we occasionally find that the RTMP and RTSP addresses are missing during the test.

Check the channel in the EasyNVS channel configuration, you will find that the RTMP and RTSP address columns are all empty.

85.png

86.png

For this problem, we first start an EasyNVR locally. EasyNVR first opens a channel, then connects to EasyNVS, check the channel list, there are rtmp and rtsp addresses in the list, then close the channel and open the channel, and find rtmp and The rtsp address is gone.

problem analysis

Analysis is that the rtmp and rtsp addresses disappeared due to the modification of the channel. Observing the code, it is found that each time the front end modifies the channel, the corresponding data is transmitted to the back end. So just modify the channel interface modification.

if nvc.RemoteRtmp != "" && nvc.Ip != "" {
   remoteRtmp := fmt.Sprintf("rtmp://%s:%s/hls/stream_%d", nvc.Ip, nvc.RemoteRtmp, form.ID)
   form.RemoteRtmp = remoteRtmp
}
if nvc.RemoteRtsp != "" && nvc.Ip != "" {
   remoteRtsp := fmt.Sprintf("rtsp://%s:%s/stream_%d", nvc.Ip, nvc.RemoteRtsp, form.ID)
   form.RemoteRtsp = remoteRtsp
}

Solution effect

The first three channels have addresses.

87.png

Then open a channel again and check whether the newly opened channel has an address. Below is the effect of turning on 4 channels

88.png

Guess you like

Origin blog.csdn.net/EasyNVR/article/details/108647387