Cannot be played in local area network
fallen-leaves-FE opened this issue · 5 comments
fallen-leaves-FE commented
1.Start the program on the server with the following command:
.\webrtc-streamer.exe -o -H 0.0.0.0:8098
2.The vue code is as follows:
const webRtcServer = ref()
onMounted(() => {
webRtcServer.value = new window.WebRtcStreamer(video.value, `${location.protocol}//${ import.meta.env.VITE_APP_SERVER_IP }:8098`)
webRtcServer.value.connect(rtspUrl)
loading.value = false
})
onBeforeUnmount(() => {
webRtcServer.value.disconnect()
webRtcServer.value = null
})
3.Other users in the LAN visit the website, and the video cannot be played. The log information is as follows:
D:\webrpc-server>.\webrtc-streamer.exe -o -H 0.0.0.0:8098
Version:v0.8.5-dirty/Windows-AMD64 civetweb@v1.16 webrtc@11f87b2 live555helper@0d9c383
nullLogger level:4
HTTP Listen at 0.0.0.0:8098
Requested URL : rtsp://admin:hk123456@192.168.43.72:554/h264/ch1/main/av_stream
Start playing sink for "video/H264" subsession
Requested URL : rtsp://admin:hk123456@192.168.43.72:554/h264/ch1/main/av_stream
Requested URL : rtsp://admin:hk123456@192.168.43.67:554/h264/ch1/main/av_stream
Start playing sink for "video/H264" subsession
Requested URL : rtsp://admin:hk123456@192.168.43.67:554/h264/ch1/main/av_stream
Requested URL : rtsp://admin:hk123456@192.168.43.37:554/h264/ch1/main/av_stream
Start playing sink for "video/H265" subsession
Requested URL : rtsp://admin:hk123456@192.168.43.37:554/h264/ch1/main/av_stream
Requested URL : rtsp://admin:hk123456@192.168.43.42:554/h264/ch1/main/av_stream
Start playing sink for "video/H264" subsession
Requested URL : rtsp://admin:hk123456@192.168.43.42:554/h264/ch1/main/av_stream
Close session: video/H264
Close session: video/H264
Close session: video/H265
Close session: video/H264
mpromonet commented
In order to separate problems, you could use the embeded webrtc-streamer html pages.
Increasing the loglevel may also helps you.
Best Regards,
Michel.