MediaApi class

This domain allows detailed inspection of media elements

Constructors

MediaApi(Client _client)

Properties

hashCode int
The hash code for this object.
no setterinherited
onPlayerErrorsRaised Stream<PlayerErrorsRaisedEvent>
Send a list of any errors that need to be delivered.
no setter
onPlayerEventsAdded Stream<PlayerEventsAddedEvent>
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.
no setter
onPlayerMessagesLogged Stream<PlayerMessagesLoggedEvent>
Send a list of any messages that need to be delivered.
no setter
onPlayerPropertiesChanged Stream<PlayerPropertiesChangedEvent>
This can be called multiple times, and can be used to set / override / remove player properties. A null propValue indicates removal.
no setter
onPlayersCreated Stream<List<PlayerId>>
Called whenever a player is created, or when a new agent joins and receives a list of active players. If an agent is restored, it will receive the full list of player ids and all events again.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disable() Future<void>
Disables the Media domain.
enable() Future<void>
Enables the Media domain
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited