onPlayerEventsAdded property

Stream<PlayerEventsAddedEvent> get onPlayerEventsAdded

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.

Implementation

Stream<PlayerEventsAddedEvent> get onPlayerEventsAdded => _client.onEvent
    .where((event) => event.name == 'Media.playerEventsAdded')
    .map((event) => PlayerEventsAddedEvent.fromJson(event.parameters));