PlaybackState
@objc
public enum PlaybackState : Int, CustomStringConvertible
The enum representation of diferent playback states that the loaded content could be in.
-
The loaded content has been stopped.
This state could indicate that either the playback hasn’t started, or the playblack has been forcefully stopped. After the playback has been force-stopped the content can’t be recovered a manual
play(url:)
has to be called to restart the playback.Declaration
Swift
case stopped = 0
-
The loaded content is being watched
Declaration
Swift
case playing
-
The loaded content is paused
Declaration
Swift
case paused
-
The content couldn’t be loaded due to an error
Declaration
Swift
case failed
-
The content has been played until the end time
Declaration
Swift
case ended
-
String representation of the enum instance
Declaration
Swift
public var description: String { get }