Participant ChangeNotifier

This commit is contained in:
David Zhao
2021-07-25 22:22:11 -07:00
parent a47c50c3c1
commit d193b9fb7f
6 changed files with 70 additions and 5 deletions
+2 -1
View File
@@ -63,6 +63,7 @@ class RemoteParticipant extends Participant {
delegate?.onTrackSubscribed(this, track, pub);
roomDelegate?.onTrackSubscribed(this, track, pub);
notifyListeners();
}
@override
@@ -95,7 +96,6 @@ class RemoteParticipant extends Participant {
delegate?.onTrackPublished(this, pub);
roomDelegate?.onTrackPublished(this, pub);
}
return;
}
// remove tracks
@@ -120,6 +120,7 @@ class RemoteParticipant extends Participant {
track.stop();
delegate?.onTrackUnsubscribed(this, track, pub);
roomDelegate?.onTrackUnsubscribed(this, track, pub);
notifyListeners();
}
if (sendUnpublish) {
delegate?.onTrackUnpublished(this, pub);