deprecate inconsistencies in event properties

This commit is contained in:
Hiroshi Horie
2022-01-11 00:51:16 +07:00
parent a6a4e18551
commit 7799e35c13
3 changed files with 25 additions and 16 deletions
+2 -2
View File
@@ -72,7 +72,7 @@ class RemoteTrackPublication<T extends RemoteTrack>
participant.room.events,
].emit(TrackStreamStateUpdatedEvent(
participant: participant,
trackPublication: this,
publication: this,
streamState: streamState,
));
}
@@ -296,7 +296,7 @@ class RemoteTrackPublication<T extends RemoteTrack>
participant.room.events,
].emit(TrackSubscriptionPermissionChangedEvent(
participant: participant,
trackPublication: this,
publication: this,
state: subscriptionState,
));
+2 -2
View File
@@ -111,8 +111,8 @@ abstract class TrackPublication<T extends Track> extends Disposable {
}
// emit events
final newEvent = event.muted
? TrackMutedEvent(participant: participant, track: this)
: TrackUnmutedEvent(participant: participant, track: this);
? TrackMutedEvent(participant: participant, publication: this)
: TrackUnmutedEvent(participant: participant, publication: this);
[participant.events, participant.room.events].emit(newEvent);
}