PlayerDelegate
@objc public protocol PlayerDelegate
Interface for player events
-
Volume updated
Declaration
Swift
func updated(volume: Float) -
isExternalPlaybackActiveupdatedDeclaration
Swift
func updated(isExternalPlaybackActive: Bool) -
PlayingStateupdatedDeclaration
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)
View on GitHub
PlayerDelegate Protocol Reference