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
state
The new AudioPlayerState of the
AudioPlayerAgent
header
The header of the originally handled directive.
-
Used to notify the observer of duration changes.
Declaration
Swift
func audioPlayerAgentDidChange(duration: Int)
Parameters
duration
The duration of the current player item.