Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot be played in local area network #678

Open
fallen-leaves-FE opened this issue Apr 3, 2024 · 1 comment
Open

Cannot be played in local area network #678

fallen-leaves-FE opened this issue Apr 3, 2024 · 1 comment

Comments

@fallen-leaves-FE
Copy link

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
Copy link
Owner

Hi @fallen-leaves-FE

In order to separate problems, you could use the embeded webrtc-streamer html pages.
Increasing the loglevel may also helps you.

Best Regards,
Michel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants