VersaPlayerPlaybackDelegate
public protocol VersaPlayerPlaybackDelegate
Undocumented
-
Notifies when playback time changes
Declaration
Swift
func timeDidChange(player: VersaPlayer, to time: CMTime)
Parameters
player
VersaPlayer being used
time
Current time
-
Whether if playback should begin on specified player
Declaration
Swift
func playbackShouldBegin(player: VersaPlayer) -> Bool
Parameters
player
VersaPlayer being used
Return Value
Boolean to validate if should play
-
Whether if playback is skipping frames
Declaration
Swift
func playbackDidJump(player: VersaPlayer)
Parameters
player
VersaPlayer being used
-
Notifies when player will begin playback
Declaration
Swift
func playbackWillBegin(player: VersaPlayer)
Parameters
player
VersaPlayer being used
-
Notifies when playback is ready to play
Declaration
Swift
func playbackReady(player: VersaPlayer)
Parameters
player
VersaPlayer being used
-
Notifies when playback did begin
Declaration
Swift
func playbackDidBegin(player: VersaPlayer)
Parameters
player
VersaPlayer being used
-
Notifies when player ended playback
Declaration
Swift
func playbackDidEnd(player: VersaPlayer)
Parameters
player
VersaPlayer being used
-
Notifies when player starts buffering
Declaration
Swift
func startBuffering(layer: VersaPlayer)
Parameters
player
VersaPlayer being used
-
Notifies when player ends buffering
Declaration
Swift
func endBuffering(player: VersaPlayer)
Parameters
player
VersaPlayer being used
-
Notifies when playback fails with an error
Declaration
Swift
func playbackDidFailed(with error: VersaPlayerPlaybackError)
Parameters
error
playback error