PlayerObserverProtocol
@objc
public protocol PlayerObserverProtocol
Implamentation of this protocol allow Player dependant plugins type to observe a player isntance
-
Player finished play video item
Declaration
Swift
func playerDidFinishPlayItem(player: PlayerProtocol, completion: @escaping (_ finished: Bool) -> Void)
Parameters
player
instance of the player that conform PlayerProtocol protocol
completion
completion when all dependant item will be completed player can start next move or can be closed
-
Player instance did created
- player: instance of the player that conform PlayerProtocol protocol
Declaration
Swift
func playerDidCreate(player: PlayerProtocol)
-
Player instance did dismiss
- player: instance of the player that conform PlayerProtocol protocol
Declaration
Swift
func playerDidDismiss(player: PlayerProtocol)
-
Player instance update current time
Declaration
Swift
func playerProgressUpdate(player: PlayerProtocol, currentTime: TimeInterval, duration: TimeInterval)