Skip to content

Commit

Permalink
Merge pull request #46 from k3integrations/main
Browse files Browse the repository at this point in the history
fix: RTCPeerConnectionWeb.getRemoteStreams
  • Loading branch information
cloudwebrtc authored Jul 19, 2024
2 parents bbe2497 + a40a1fc commit efc9cb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/rtc_peerconnection_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ class RTCPeerConnectionWeb extends RTCPeerConnection {
final String _peerConnectionId;
late final web.RTCPeerConnection _jsPc;
final _localStreams = <String, MediaStream>{};
final _remoteStreams = <String, MediaStream>{};
final _configuration = <String, dynamic>{};

RTCSignalingState? _signalingState;
Expand Down Expand Up @@ -340,7 +339,7 @@ class RTCPeerConnectionWeb extends RTCPeerConnection {
List<MediaStream> getRemoteStreams() => _jsPc
.getRemoteStreams()
.toDart
.map((jsStream) => _remoteStreams[jsStream.id]!)
.map((e) => MediaStreamWeb(e, _peerConnectionId))
.toList();

@override
Expand Down

0 comments on commit efc9cb1

Please sign in to comment.