Instance Property

transportControlsSpeed

The current playback speed.

Declaration

var transportControlsSpeed: AVCaptureDevice.TransportControlsSpeed { get }

Discussion

For devices that support transport control, the value of this property indicates the current playback speed of the deck. The following table gives examples of the meaning of values:

Value

Meaning

0.0

Stopped

1.0

Forward at normal speed.

-1.0

Reverse at normal speed.

2.0

Forward at 2x normal speed.

You can observe changes to the value of this property using Key-value observing.

See Also

Managing Transport Controls

var transportControlsSupported: Bool

Indicates whether the device supports transport control commands.

enum AVCaptureDevice.TransportControlsPlaybackMode

Constants that indicate the transport control's current mode of playback, if it has one.