PlayerDelegate
@objc public protocol PlayerDelegate
Interface for player events
-
Volume updated
Declaration
Swift
func updated(volume: Float)
-
isExternalPlaybackActive
updatedDeclaration
Swift
func updated(isExternalPlaybackActive: Bool)
-
PlayingState
updatedDeclaration
Swift
func updated(newPlaybackState: PlaybackState, oldPlaybackState: PlaybackState)
-
Current playback position updated
Declaration
Swift
func progress(updatedToPosition position: Float64, duration: Float64)
-
A playback session could not be started.
Declaration
Swift
func failed(with error: Error)
-
A playback session was interupted and could not be recovered.
Declaration
Swift
func interupted(with error: Error)