deprecate inconsistencies in event properties
This commit is contained in:
@@ -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,
|
||||
));
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user