AudioPlayerDelegate
@MainActor
@objc
public protocol AudioPlayerDelegate
音频播放器事件代理
-
Undocumented
Declaration
Swift
@objc @MainActor optional func audioPlayerWillChanged(at index: Int)
-
Undocumented
Declaration
Swift
@objc @MainActor optional func audioPlayerCurrentItemChanged(_ item: AVPlayerItem)
-
Undocumented
Declaration
Swift
@objc @MainActor optional func audioPlayerCurrentItemEvicted(_ item: AVPlayerItem)
-
Undocumented
Declaration
Swift
@objc @MainActor optional func audioPlayerRateChanged(_ isPlaying: Bool)
-
Undocumented
Declaration
Swift
@objc @MainActor optional func audioPlayerDidReachEnd()
-
Undocumented
Declaration
Swift
@objc @MainActor optional func audioPlayerCurrentTimeChanged(_ time: CMTime)
-
Undocumented
Declaration
Swift
@objc @MainActor optional func audioPlayerCurrentItemPreloaded(_ time: CMTime)
-
Undocumented
Declaration
Swift
@objc @MainActor optional func audioPlayerDidFailed(_ item: AVPlayerItem?, error: Error?)
-
Undocumented
Declaration
Swift
@objc @MainActor optional func audioPlayerReadyToPlay(_ item: AVPlayerItem?)
-
Undocumented
Declaration
Swift
@objc @MainActor optional func audioPlayerItemFailedToPlayEndTime(_ item: AVPlayerItem, error: Error?)
-
Undocumented
Declaration
Swift
@objc @MainActor optional func audioPlayerItemPlaybackStall(_ item: AVPlayerItem)