-
public final class MediaDomainThis domain allows detailed inspection of media elements
-
-
Method Summary
Modifier and Type Method Description final Flow<MediaEvent>events()Subscribes to all events related to this domain. final Flow<MediaEvent.PlayerPropertiesChangedEvent>playerPropertiesChanged()This can be called multiple times, and can be used to set / override / remove player properties. final Flow<MediaEvent.PlayerEventsAddedEvent>playerEventsAdded()Send events as a list, allowing them to be batched on the browser for less congestion. final Flow<MediaEvent.PlayerMessagesLoggedEvent>playerMessagesLogged()Send a list of any messages that need to be delivered. final Flow<MediaEvent.PlayerErrorsRaisedEvent>playerErrorsRaised()Send a list of any errors that need to be delivered. final Flow<MediaEvent.PlayersCreatedEvent>playersCreated()Called whenever a player is created, or when a new agent joins and recieves a list of active players. final Unitenable()Enables the Media domainOfficial doc final Unitdisable()Disables the Media domain. -
-
Method Detail
-
events
final Flow<MediaEvent> events()
Subscribes to all events related to this domain.
-
playerPropertiesChanged
final Flow<MediaEvent.PlayerPropertiesChangedEvent> playerPropertiesChanged()
This can be called multiple times, and can be used to set / override / remove player properties. A null propValue indicates removal.
-
playerEventsAdded
final Flow<MediaEvent.PlayerEventsAddedEvent> playerEventsAdded()
Send events as a list, allowing them to be batched on the browser for less congestion. If batched, events must ALWAYS be in chronological order.
-
playerMessagesLogged
final Flow<MediaEvent.PlayerMessagesLoggedEvent> playerMessagesLogged()
Send a list of any messages that need to be delivered.
-
playerErrorsRaised
final Flow<MediaEvent.PlayerErrorsRaisedEvent> playerErrorsRaised()
Send a list of any errors that need to be delivered.
-
playersCreated
final Flow<MediaEvent.PlayersCreatedEvent> playersCreated()
Called whenever a player is created, or when a new agent joins and recieves a list of active players. If an agent is restored, it will recieve the full list of player ids and all events again.
-
-
-
-