feat: support metadata update. (#259)

This commit is contained in:
CloudWebRTC
2023-03-27 09:19:52 +08:00
committed by GitHub
parent 68d611a448
commit bc4df105fa
5 changed files with 57 additions and 1 deletions
+4
View File
@@ -66,6 +66,10 @@ class _RoomPageState extends State<RoomPage> {
})
..on<LocalTrackPublishedEvent>((_) => _sortParticipants())
..on<LocalTrackUnpublishedEvent>((_) => _sortParticipants())
..on<ParticipantNameUpdatedEvent>((event) {
print(
'Participant name updated: ${event.participant.identity}, name => ${event.name}');
})
..on<DataReceivedEvent>((event) {
String decoded = 'Failed to decode';
try {