Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
rogurotus committed Oct 26, 2023
1 parent 9ba6c77 commit 7dca22a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flutter/test/e2e/world/member.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,15 @@ class Member {
});
room.onNewConnection((connection) async {
var remoteMemberId = connection.getRemoteMemberId();
print('${id} - new connect ${remoteMemberId}');
connectionStore.remoteTracks.addAll({remoteMemberId: HashMap()});
connectionStore.connections.addAll({remoteMemberId: connection});
connectionStore.closeConnect.addAll({remoteMemberId: Completer()});

connection.onRemoteTrackAdded((remoteTrack) {
var remoteTrackId = remoteTrack.getTrack().id();
print(
'${id} - new track ${remoteTrack.kind()} ${remoteTrack.mediaSourceKind()} ${remoteTrackId} from ${remoteMemberId}');
if (connectionStore.remoteTracks[remoteMemberId]![remoteTrackId] ==
null) {
connectionStore.remoteTracks[remoteMemberId]![remoteTrackId] =
Expand Down

0 comments on commit 7dca22a

Please sign in to comment.