pion / example-webrtc-applications

Examples of WebRTC applications that are large, or use 3rd party libraries

Home Page:https://pion.ly/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sfu-ws Chrome fails to generate local description with multiple peers

aromancev opened this issue · comments

Your environment.

  • Version: d9ca384
  • Browser: chrome Version 88.0.4324.146 (Official Build) (x86_64)
  • Other Information-
    Seeing this on some tabs: DOMException: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to set local answer sdp:. I'm not a WebRTC expert, but it seems like renegotiation doesn't happen when it needs to. I realize that this is not a production-ready example, but I don't understand what do I need to fix here.

Thanks for your help!

What did you do?

git clone https://github.com/pion/example-webrtc-applications.git
cd example-webrtc-applications/sfu-ws
go run *.go

Then open 4 tabs of localhost:8080

What did you expect?

Each tab displays all the remote streams.

What happened?

Some tabs do not show all the remote streams. Any new tab over 3rd doesn't show remote streams at all.

@Sean-Der If you could take a look it would be wonderful 🙏 🙏 🙏

Thanks!

Fixed with b98ec3b

Thanks!