deepch / RTSPtoWebRTC

RTSP to WebRTC use Pion WebRTC
MIT License
1.59k stars 419 forks source link

Not work when there is no Internet access - Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': #182

Open mateok0 opened 2 years ago

mateok0 commented 2 years ago

Hello,

I have a problem - the library works fine when there is Internet access. However, when this access is not available (i.e. there is no physical connection to the Internet, but the cameras are available via IP), it throws an error in the browser: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to parse SessionDescription. Expect line: v= Url: http://nnn:8083/stream/receiver/nn then it returns nothing and throws an error. How can this problem be fixed to make the library work even when the Internet is offline?

Cacsjep commented 2 years ago

Did u try to remove the ICE Servers from config File and js file?

sasanqc commented 1 year ago

removing the ice servers from config file did not solve the problem

MI-Class commented 7 months ago

Modify line 212 of a file deepch/vdk/format/webrtcv3/adapter.go that he references the library, case <-waitT. C: return "", errors.New("gatherCompletePromise wait") The above two lines are commented out, and then a line is added after the end of the select block. time.Sleep(time.Millisecond * 1) Then try compiling the program again.