deepch / RTSPtoWeb

RTSP Stream to WebBrowser
MIT License
1.18k stars 284 forks source link

Startup delay with proxy #338

Open stardast opened 1 year ago

stardast commented 1 year ago

The stream starts with a 5 second delay when the PC running RTSPtoWeb is connected to a network with a proxy. When the PC is connected without a proxy, the video starts immediately. How can I eliminate the 5 second delay?

Thanks!

stardast commented 1 year ago

I found the problem, it depends on this line of code: https://github.com/deepch/vdk/blob/5a989a5c40319489e063ee61afb58aac8ec5da03/format/webrtcv3/adapter.go#L70 Even if in the configuration file I set an empty ice_servers array the google server is still used. I removed the else branch and the lag is gone.

This issue was also reported here: https://github.com/deepch/vdk/issues/81