Instance Method

setTransportControlsPlaybackMode(_:speed:)

Sets the transport control’s playback mode and speed.

Declaration

func setTransportControlsPlaybackMode(_ mode: AVCaptureDevice.TransportControlsPlaybackMode, speed: AVCaptureDevice.TransportControlsSpeed)

Parameters

mode

An AVCaptureDeviceTransportControlsPlaybackMode constant indicating whether the deck should be put into play mode.

speed

An AVCaptureDeviceTransportControlsSpeed value indicating the speed at which to wind or play the tape.

Discussion

Before changing the value of this property, you must call lockForConfiguration() to acquire exclusive access to the device’s configuration properties. Otherwise, calling this method raises an exception. When you are done configuring the device, call unlockForConfiguration() to release the lock and allow other devices to configure the settings.

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.