Adaptive Media Player

AmpCore Docs

BufferingState

@objc
public enum BufferingState : Int, CustomStringConvertible

The enum representation of diferent buffering states that the content could be in.

  • The content either hasn’t stater yet or found an error that prevents the playback or buffering.

    Declaration

    Swift

    case unknown = 0
  • The content has enough buffer and is playable.

    Being playable is independent to the playback state, it only means that there’s enough buffer for the current item for playing for a determined period of time without rebuffering.

    Declaration

    Swift

    case ready
  • The content is still buffering and isn’t playable.

    Delayed shouldn’t happen often under normal network connection conditions. AVPlayer determines internally when it has enough buffer to minimize rebuffering delays, once the conditions have been met the buffer will switch back to ready.

    Declaration

    Swift

    case delayed
  • String representation of the buffering state.

    Declaration

    Swift

    public var description: String { get }