mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
2.8k stars 581 forks source link

When I requested an rtsp stream, I found that webrtc requested it twice. What is the reason for this? #606

Open liusuyi2021 opened 11 months ago

liusuyi2021 commented 11 months ago

Describe the bug When I requested an rtsp stream, I found that webrtc requested it twice. What is the reason for this? image

But when I used the configuration file to preview rtsp, I requested again it is once. image ![Uploading image.png…]()

please tell me why????

mpromonet commented 11 months ago

Hi,

Once for video, once for audio.

Best Regards, Michel.

liusuyi2021 commented 11 months ago

how use once for video and not use audio? 怎样只保留一次rtsp请求

mpromonet commented 11 months ago

Hi,

You need to modify source code, for now if audio is not set it use same url than video.

Best Regards, Michel.

liusuyi2021 commented 10 months ago

The latest version 0.8.2 requests 4 rtsp streams per time 最新版本0.8.2 每次请求4次rtsp流

mpromonet commented 10 months ago

Hi @liusuyi2021

Probably you are using different arguments like tcp/udp, width, ..., if stream cannot by shared, it openned new one. You could see this using page admin.html.

Best Regards, Michel.