Enums
The following enums are available globally.
-
JSON’s type definitions.
Declaration
Swift
public enum TypeJSON :Int
-
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.
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.
Declaration
Swift
@objc public enum StreamType : Int, CustomStringConvertible
-
Errors thrown by
See moreRNCryptorType
.Declaration
Swift
@objc public enum RNCryptorError: Int, ErrorType
-
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
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.
Declaration
Swift
@objc public enum PlayerError: Int, ErrorType