We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c11f62 commit a40a1fcCopy full SHA for a40a1fc
lib/src/rtc_peerconnection_impl.dart
@@ -129,7 +129,6 @@ class RTCPeerConnectionWeb extends RTCPeerConnection {
129
final String _peerConnectionId;
130
late final web.RTCPeerConnection _jsPc;
131
final _localStreams = <String, MediaStream>{};
132
- final _remoteStreams = <String, MediaStream>{};
133
final _configuration = <String, dynamic>{};
134
135
RTCSignalingState? _signalingState;
@@ -340,7 +339,7 @@ class RTCPeerConnectionWeb extends RTCPeerConnection {
340
339
List<MediaStream> getRemoteStreams() => _jsPc
341
.getRemoteStreams()
342
.toDart
343
- .map((jsStream) => _remoteStreams[jsStream.id]!)
+ .map((e) => MediaStreamWeb(e, _peerConnectionId))
344
.toList();
345
346
@override
0 commit comments