From a40a1fc7b9f9d76d2006bfe038ad0bbfe9c57e5a Mon Sep 17 00:00:00 2001 From: James Pellow Date: Sun, 14 Jul 2024 15:03:41 -0700 Subject: [PATCH] fix: RTCPeerConnectionWeb.getRemoteStreams --- lib/src/rtc_peerconnection_impl.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/rtc_peerconnection_impl.dart b/lib/src/rtc_peerconnection_impl.dart index 6e41dbb..9b81367 100644 --- a/lib/src/rtc_peerconnection_impl.dart +++ b/lib/src/rtc_peerconnection_impl.dart @@ -129,7 +129,6 @@ class RTCPeerConnectionWeb extends RTCPeerConnection { final String _peerConnectionId; late final web.RTCPeerConnection _jsPc; final _localStreams = {}; - final _remoteStreams = {}; final _configuration = {}; RTCSignalingState? _signalingState; @@ -340,7 +339,7 @@ class RTCPeerConnectionWeb extends RTCPeerConnection { List getRemoteStreams() => _jsPc .getRemoteStreams() .toDart - .map((jsStream) => _remoteStreams[jsStream.id]!) + .map((e) => MediaStreamWeb(e, _peerConnectionId)) .toList(); @override