Instance Method

setRate:time:

Set's the timebase's rate and time.

Declaration

- (void)setRate:(float)rate time:(CMTime)time;

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 kCMTimeZero or kCMTimeInvalid.

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

timebase

The synchronizer's rendering timebase, which governs how timestamps are interpreted.

rate

The current playback rate.

AVSampleBufferRenderSynchronizerRateDidChangeNotification

The synchronizer's rendering rate changed.

- currentTime

Returns the current time of the synchronizer.