flutter-webrtc/dart-webrtc

getRemoteStreams on peerConnection no longer works

james-pellow opened this issue · 2 comments

Ever since the recent commit titled "chore: remove addstream and removestream events", RTCPeerConnectionWeb.getRemoteStreams has been broken. The _remoteStreams Map is no longer kept up to date so the line: .map((jsStream) => _remoteStreams[jsStream.id]!) always fails. Fortunately this was the only place using _remoteStreams. The issue is that the _jsPc is returning MediaStream from web and we are wanting to return MediaStream from webrtc_interface. What are the long term goals of webrtc_interface? Now that web is accurately defining more webrtc related interfaces, do we still need webrtc_interface? What is the proper fix for this?

Any thoughts on this from @cloudwebrtc? Thanks!

Should we just revert the commit that broke this?