PlayerServiceError
public enum PlayerServiceError : Error
Enum of possible errors thrown by a PlayerService
instance
- noPlayer: thrown if the player property is nil
- couldNotCastDurationToInt: thrown if a duration value could not be casted to
Int
- couldNotCastPositionToInt64: thrown if a duration value could not be casted to
Int64
- couldNotCastTaskResultToMediaPlayerStatus: thrown if a task result could not be casted to
MediaPlayerStatus
- couldNotCastTaskResultToMediaPlayerInfo: thrown if a task result could not be casted to
MediaPlayerInfo
- invalidTaskResult: thrown if a task result is invalid
- couldNotCreateStringFromMetadata: thrown if a string could not be created using metadata
-
Declaration
Swift
case noPlayer
-
Declaration
Swift
case couldNotCastDurationToInt
-
Declaration
Swift
case couldNotCastPositionToInt64
-
Declaration
Swift
case couldNotCastTaskResultToMediaPlayerStatus
-
Declaration
Swift
case couldNotCastTaskResultToMediaPlayerInfo
-
Declaration
Swift
case invalidTaskResult
-
Declaration
Swift
case couldNotCreateStringFromMetadata