
Events can be sent to the JavaScript function of your choice to signal status changes. Below are the event types that can be sent from the player to the container.
Dispatched when a broadcast starts.
Dispatched when a broadcast stops.
This event is dispatched when an error occurs.
Dispatched when the playback state changes.
Table 6. stateChange event details
| key | value |
|---|---|
| type | broadcastStart |
| permalink | The permalink that had a state change. |
| state | The new state. |
The possible states are as follows:
Table 7. Player States
connected |
The player is connected to the server. | |
connectionError |
There was an error connecting to the server. | |
disconnected |
The player is not connected to the server. | |
paused |
The broadcast is playing, but the local stream has been paused. | |
playing |
|
|
stopped |
The player is connected and tracking a stream, but the stream is stopped. |