Class PlaybackState

Class Summary

PlaybackState()
holds all PlaybackStates (PLAYING, STOPPED, PAUSED);

Method Summary

Field Detail

{Object} type
all possible PlaybackState types (PLAYING, STOPPED, PAUSED);

Method Detail

  • {string} current()
    gets current state (PLAYING, STOPPED, or PAUSED)
    Returns:
    {string} state (PLAYING, STOPPED, or PAUSED)
  • set(state, playable)
    sets current state + sets state in playable, if playable is passed.
    Parameters:
    state the state to set
    playable optional Playable to update copy of state.