[ type ] PlayerEvent
Description:
Event object passed to MediaPlayer event handlers.
Type: Object
Properties:
| Name | Type | Description |
|---|---|---|
|
string | Type of the event. One of: |
|
string | Type of media loaded in the player. One of: |
|
A Media object containing details about the loaded media. |
|
|
number | Current playback time in seconds. |
|
number | Total duration of the media in seconds. Present when |
|
string | Reason for stopping playback. One of: |
|
number | Index of a subtitle since the player started playing (not from the beginning of the video}. (Only present when event type is |
|
string | Time when to show the subtitle relative to the position when the video started (not to the beginning of the video). (Only present when event type is |
|
string | Time when to show the subtitle relative to the position when the video started (not to the beginning of the video). (Only present when event type is |
|
string | Subtitle text. (Only present when event type is |
