PlayerProvider
public class PlayerProvider
extension PlayerProvider: DorisPlayerOutputProtocol
The PlayerProvider wrapper class class provides an interface for managing a media player instance,
including handling player output and interacting with an underlying AVPlayer instance.
This class wraps around a DorisPlayer and integrates with AVPlayer for playback
-
The
DorisPlayerinstance associated with this provider.Declaration
Swift
public internal(set) var player: DorisPlayer! { get } -
An
AVPlayerinstance used for media playback. This property allows direct interaction with the underlying player.Declaration
Swift
public let avPlayer: AVPlayer -
Declaration
Swift
public func onPlayerEvent(_ event: DorisPlayerEvent) -
Declaration
Swift
public func onPlayerStateChanged(old: DorisPlayerState, new: DorisPlayerState) -
Declaration
Swift
public func onAdvertisementEvent(_ event: DorisAdsEvent) -
Declaration
Swift
public func onRemoteCommandEvent(_ event: DorisRemoteCommandEvent)