on

open fun on(event: String, cb: PlaybackPlayerListener)(source)

Create a new event listener under event event of type PlaybackPlayerListener in the Web Playback SDK.

Parameters

event

A valid event name. See Web Playback SDK Events.

cb

A callback function to be fired when the event has been executed.


open fun on(event: String, cb: PlaybackStateListener)(source)

Create a new event listener under event event of type PlaybackStateListener in the Web Playback SDK.

Parameters

event

A valid event name. See Web Playback SDK Events.

cb

A callback function to be fired when the event has been executed.


open fun on(event: String, cb: ErrorListener)(source)

Create a new event listener under event event of type ErrorListener in the Web Playback SDK.

Parameters

event

A valid event name. See Web Playback SDK Events.

cb

A callback function to be fired when the event has been executed.