Enums

The following enums are available globally.

  • To mark both String and Int can be used in subscript.

    Declaration

    Swift

    public enum JSONKey
  • BufferingState contains all the possible states for the player buffering.

    • Unknown: Not started, or there has been an error.
    • Ready: The player is now ready to be played.
    • Delayed: The player is still loading.
    See more

    Declaration

    Swift

    @objc public enum BufferingState: Int, CustomStringConvertible
  • Stream type.

    • HTTP: when the stream is a HLS stream.
    • Unknown: unknown stream.
    • Octoshape: when the stream is a Octoshape stream.
    See more

    Declaration

    Swift

    @objc public enum StreamType : Int, CustomStringConvertible
  • Enum with the playback state

    • Stopped: The state is stop
    • Playing: The state is play
    • Paused: The state is paused
    • Failed: The state is failed
    • Ended: The state is ended
    See more

    Declaration

    Swift

    @objc public enum PlaybackState: Int, CustomStringConvertible
  • Enum to manage the errors on the player.

    • UnknownAssetFormat: For assets with a incorrect format.
    • DownloadFailed: When the asset can’t download.
    • UnknownError: For unknown errors.
    See more

    Declaration

    Swift

    @objc public enum PlayerError: Int, ErrorType