MediaPlayerTimeDelegate

public protocol MediaPlayerTimeDelegate : AnyObject

A set of methods which allow to respond to media player time changes.

  • player(_:didChangeCurrentTime:) Default implementation

    Tells the delegate that the playback time of the current asset has changed.

    Default Implementation

    Declaration

    Swift

    func player(_ player: MediaPlayer, didChangeCurrentTime time: TimeInterval)

    Parameters

    player

    The player object

    time

    The time in seconds that the media playback has progressed.