getState()

Returns the player's current playback state.

ReturnsDescription
bufferingΒ stringThe user pressed play, but sufficient data to start playback has not yet loaded. The buffering icon is visible in the display.
idle stringEither playback has not started or playback was stopped due to a stop() call or an error. In this state, either the play or the error icon is visible in the display.
paused stringThe video is currently paused. The play icon is visible in the display.
playing stringThe video is currently playing. No icon is visible in the display.