ReadyState

@objc(THEOplayerReadyState)
public enum ReadyState : Int

The ready state of the player.

  • The player has no information about the duration of its source.

    Declaration

    Swift

    @objc(THEOplayerReadyStateHAVE_NOTHING)
    case HAVE_NOTHING = 1
  • The player has information about the duration of its source.

    Declaration

    Swift

    @objc(THEOplayerReadyStateHAVE_METADATA)
    case HAVE_METADATA = 2
  • The player has its current frame in its buffer.

    Declaration

    Swift

    @objc(THEOplayerReadyStateHAVE_CURRENT_DATA)
    case HAVE_CURRENT_DATA = 3
  • The player has enough data for the current playback position, as well as for at least a little bit of time into the future (at least two frames of video, for example).

    Declaration

    Swift

    @objc(THEOplayerReadyStateHAVE_FUTURE_DATA)
    case HAVE_FUTURE_DATA = 4
  • The player has enough data available, and the download rate is high enough that the media can be played through to the end without interruption.

    Declaration

    Swift

    @objc(THEOplayerReadyStateHAVE_ENOUGH_DATA)
    case HAVE_ENOUGH_DATA = 5