Contents

setRate(_:time:)

Sets the renderer’s time and rate.

Declaration

func setRate(_ rate: Float, time: CMTime)

Parameters

  • rate:

    The new timebase rate. This value must be greater than or equal to 0.0.

  • time:

    The new timebase time. This value must be greater than or equal to Zero, or Invalid.

Discussion

This method first sets the new time and then the new rendering rate. A rate value of 0.0 means that playback has stopped while a rate value of 1.0 indicates playback should be at the natural rate of the media.

See Also

Accessing time information