JWPlayReason
@objc
public enum JWPlayReason : Int
extension JWPlayReason: CustomStringConvertible
Constants indicating the reason the player is in the play state.
-
Player is playing due to external api call.
Declaration
Swift
case external
-
Player is playing due to user interaction.
Declaration
Swift
case interaction
-
Playback began due to natural playlist progression.
Declaration
Swift
case playlist
-
Playback began due to autostart setting or when the player is 50% visible.
Declaration
Swift
case viewable
-
Playback began due to repeat flag is enabled.
Declaration
Swift
case repeatContent
-
Player is playing due to user interaction with the related menu.
Declaration
Swift
case relatedInteraction
-
Player is playing due to the auto advance feature.
Declaration
Swift
case relatedAuto
-
Player is playing due to autostart flag.
Declaration
Swift
case autostart
-
Playback resumed due to user interaction with the settings menu.
Declaration
Swift
case settingsInteraction
-
Player is playing but the cause is unknown.
Declaration
Swift
case unknown
-
Declaration
Swift
public var description: String { get }