PlayerState

PlayerState ⇐ Const

Kind: global class
Extends: Const

PlayerState()

A static class that exposes the possible states of all kind of players

RELEASED

The application has not made a request to start presenting a media or has stopped presenting a media and released any resources.

Kind: static constant of PlayerState

CONNECTING

The player is connecting to the media source in order to begin playback. Objects in this state may be buffering data in order to start playback.

Kind: static constant of PlayerState

STARTED

The media is currently being presented to the user (e.g. playing). The object is in this state regardless of whether the media is playing at normal speed, paused, or playing in a trick mode (e.g. at a speed other than normal speed).

Kind: static constant of PlayerState

STOPPED

User (or application) has stopped playback of the current media, or playback has not yet started, or the playback of the current media has reached the end of the media You can check the reason of state change by looking the third parameter when the event is triggered.

Kind: static constant of PlayerState

ERROR

An error occurred during media playback, preventing the current media to start/continue playing

Kind: static constant of PlayerState

STATE_CHANGE_END_OF_PLAY

Indicates that the media playback was stopped by reaching the end of the media. This is not a state ! Just a constant used as a reason for a state change

Kind: static constant of PlayerState