setTransportControlsPlaybackMode(_:speed:)
Sets the transport control’s playback mode and speed.
Declaration
func setTransportControlsPlaybackMode(_ mode: AVCaptureDevice.TransportControlsPlaybackMode, speed: AVCaptureDevice.TransportControlsSpeed)Parameters
- mode:
A playback mode constant that indicates whether to put the deck should into play mode.
- speed:
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’re finished configuring the device, call unlockForConfiguration() to release the lock and allow other devices to configure the settings.