Skip to content

Commit

Permalink
fix: video rendering flickers for safari.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Oct 23, 2023
1 parent 42f4132 commit 3eccf9b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions example/lib/pages/room.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,13 @@ class _RoomPageState extends State<RoomPage> {
WidgetsBindingCompatible.instance
?.addPostFrameCallback((timeStamp) => Navigator.pop(context));
})
..on<ParticipantEvent>((event) {
print('Participant event');
// sort participants on many track events as noted in documentation linked above
_sortParticipants();
})
..on<RoomRecordingStatusChanged>((event) {
context.showRecordingStatusChangedDialog(event.activeRecording);
})
..on<LocalTrackPublishedEvent>((_) => _sortParticipants())
..on<LocalTrackUnpublishedEvent>((_) => _sortParticipants())
..on<TrackSubscribedEvent>((_) => _sortParticipants())
..on<TrackUnsubscribedEvent>((_) => _sortParticipants())
..on<TrackE2EEStateEvent>(_onE2EEStateEvent)
..on<ParticipantNameUpdatedEvent>((event) {
print(
Expand Down

0 comments on commit 3eccf9b

Please sign in to comment.