diff --git a/example/lib/pages/room.dart b/example/lib/pages/room.dart index e9c6ee6d..3cbec9ef 100644 --- a/example/lib/pages/room.dart +++ b/example/lib/pages/room.dart @@ -87,7 +87,6 @@ class _RoomPageState extends State { (timeStamp) => Navigator.popUntil(context, (route) => route.isFirst)); }) ..on((event) { - print('Participant event'); // sort participants on many track events as noted in documentation linked above _sortParticipants(); }) diff --git a/lib/src/core/room.dart b/lib/src/core/room.dart index 201e12c2..96978501 100644 --- a/lib/src/core/room.dart +++ b/lib/src/core/room.dart @@ -137,7 +137,7 @@ class Room extends DisposableChangeNotifier with EventsEmittable { // Any event emitted will trigger ChangeNotifier events.listen((event) { - logger.fine('[RoomEvent] $event, will notifyListeners()'); + logger.finer('[RoomEvent] $event, will notifyListeners()'); notifyListeners(); }); diff --git a/lib/src/participant/participant.dart b/lib/src/participant/participant.dart index 33e5501f..96941419 100644 --- a/lib/src/participant/participant.dart +++ b/lib/src/participant/participant.dart @@ -140,7 +140,7 @@ abstract class Participant }) : _name = name { // Any event emitted will trigger ChangeNotifier events.listen((event) { - logger.fine('[ParticipantEvent] $event, will notifyListeners()'); + logger.finer('[ParticipantEvent] $event, will notifyListeners()'); notifyListeners(); }); diff --git a/lib/src/publication/remote.dart b/lib/src/publication/remote.dart index dc20cd88..bcb03d6c 100644 --- a/lib/src/publication/remote.dart +++ b/lib/src/publication/remote.dart @@ -213,7 +213,7 @@ class RemoteTrackPublication ); newValue.onVideoViewBuild = (_) { - logger.fine('[Visibility] VideoView did build'); + logger.finer('[Visibility] VideoView did build'); if (_lastSentTrackSettings?.disabled == true) { // quick enable _cancelPendingTrackSettingsUpdateRequest?.call(); diff --git a/lib/src/track/local/audio.dart b/lib/src/track/local/audio.dart index 0e7f9622..abc70773 100644 --- a/lib/src/track/local/audio.dart +++ b/lib/src/track/local/audio.dart @@ -52,7 +52,7 @@ class LocalAudioTrack extends LocalTrack @override Future monitorStats() async { - if (sender == null || events.isDisposed || !isActive) { + if (events.isDisposed || !isActive) { _currentBitrate = 0; return false; } diff --git a/lib/src/track/local/video.dart b/lib/src/track/local/video.dart index c07ee101..b7c0fc20 100644 --- a/lib/src/track/local/video.dart +++ b/lib/src/track/local/video.dart @@ -67,7 +67,7 @@ class LocalVideoTrack extends LocalTrack with VideoTrack { @override Future monitorStats() async { - if (sender == null || events.isDisposed || !isActive) { + if (events.isDisposed || !isActive) { _currentBitrate = 0; return false; } diff --git a/lib/src/track/track.dart b/lib/src/track/track.dart index bac22e2d..ee4ca53f 100644 --- a/lib/src/track/track.dart +++ b/lib/src/track/track.dart @@ -63,7 +63,7 @@ abstract class Track extends DisposableChangeNotifier {this.receiver}) { // Any event emitted will trigger ChangeNotifier events.listen((event) { - logger.fine('[TrackEvent] $event, will notifyListeners()'); + logger.finer('[TrackEvent] $event, will notifyListeners()'); notifyListeners(); });