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