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 · 5 comments
Open

Cannot be played in local area network #678

fallen-leaves-FE opened this issue Apr 3, 2024 · 5 comments

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 [email protected] webrtc@11f87b2 live555helper@0d9c383
nullLogger level:4
HTTP Listen at 0.0.0.0:8098
 Requested URL : rtsp://admin:[email protected]:554/h264/ch1/main/av_stream
Start playing sink for "video/H264" subsession
 Requested URL : rtsp://admin:[email protected]:554/h264/ch1/main/av_stream
 Requested URL : rtsp://admin:[email protected]:554/h264/ch1/main/av_stream
Start playing sink for "video/H264" subsession
 Requested URL : rtsp://admin:[email protected]:554/h264/ch1/main/av_stream
 Requested URL : rtsp://admin:[email protected]:554/h264/ch1/main/av_stream
Start playing sink for "video/H265" subsession
 Requested URL : rtsp://admin:[email protected]:554/h264/ch1/main/av_stream
 Requested URL : rtsp://admin:[email protected]:554/h264/ch1/main/av_stream
Start playing sink for "video/H264" subsession
 Requested URL : rtsp://admin:[email protected]: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.

@loran-luo
Copy link

May I ask how to solve this problem? I still cannot access video streams within the local area network

@loran-luo
Copy link

@mpromonet

@loran-luo
Copy link

What does it mean to increase the log level @mpromonet

@mpromonet
Copy link
Owner

Hi @loran-luo
I guess you can start trying to localize where the data pipeline is broken. Does the RTSP consumer receive data ?
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

3 participants