AudioPlayerAgentDelegate
public protocol AudioPlayerAgentDelegate : AnyObject
An delegate that appllication can extend to register to observe AudioPlayerState changes.
-
Used to notify the observer of state changes.
Declaration
Swift
func audioPlayerAgentDidChange(state: AudioPlayerState, header: Downstream.Header)Parameters
stateThe new AudioPlayerState of the
AudioPlayerAgentheaderThe header of the originally handled directive.
-
Used to notify the observer of duration changes.
Declaration
Swift
func audioPlayerAgentDidChange(duration: Int)Parameters
durationThe duration of the current player item.
View on GitHub
AudioPlayerAgentDelegate Protocol Reference