Stream State Update (#53)

* implemented

* update docs
This commit is contained in:
Hiroshi Horie
2021-12-11 14:18:35 +07:00
committed by GitHub
parent 7e1164a74c
commit 9c573f4924
8 changed files with 80 additions and 0 deletions
+14
View File
@@ -186,6 +186,20 @@ class TrackUnmutedEvent with RoomEvent, ParticipantEvent {
});
}
/// The [StreamState] on the [RemoteTrackPublication] has updated by the server.
/// See [RemoteTrackPublication.streamState] for more information.
/// Emitted by [Room] and [RemoteParticipant].
class TrackStreamStateUpdatedEvent with RoomEvent, ParticipantEvent {
final RemoteParticipant participant;
final RemoteTrackPublication trackPublication;
final StreamState streamState;
const TrackStreamStateUpdatedEvent({
required this.participant,
required this.trackPublication,
required this.streamState,
});
}
/// Participant metadata is a simple way for app-specific state to be pushed to
/// all users. When RoomService.UpdateParticipantMetadata is called to change a
/// [Participant]'s state, *all* [Participant]s in the room will fire this event.