西瓜播放器 HTML5 video video.js 播放器 HTML5播放器 mp4 hls hls.js flv flv.js dash dash.js 无缝切换

State Properties

state

  • @desc State of player
  • @type String [Readonly]

Indicates Current state of player, All of player state are listed:

valueDescription
initialPlayer instance created
readyAll of plugins in config.plugins was inited
attachedMedia Element was created and mounted on DOM tree, if config.autoplay was configured to true, player.play() was invoked automatically
runningPlayer is playing
preventedPlay() was prevented by UserAgent
errorFatal error occurs, which interruptted playing process
endedPlayback was finished, player.ended was true as well
destroyedPlayer was destroyed

ended

  • @desc Playback was finished
  • @type Boolean [Readonly]

paused

  • @desc
  • @type Boolean [Readonly]

networkState

readyState

isFullscreen

  • @desc Indicates if player is in fullscreen mode
  • @type Boolean [Readyonly]

isCssfullScreen

  • @desc Indicates if player is in css-fullscreen mode
  • @type Boolean [Readyonly]

isSeeking

  • @desc Indicates if player is in unfinished seeking action
  • @type Boolean [Readyonly]

isActive

  • @desc Indicates if player is focused
  • @type Boolean [Readyonly]