Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVCaptureDeviceMBS class.

Previous items

AVCaptureDeviceMBS.transportControlsPlaybackMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The current playback mode. (read-only)

This property is only valid for devices that support transport control.
You can observe changes to the value of this property using key-value observing.
(Read only property)

Some examples using this property:

AVCaptureDeviceMBS.transportControlsSpeed as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The current playback speed. (read-only)

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:

ValueMeaning
0.0Stopped
1.0Forward at normal speed.
-1.0Reverse at normal speed.
2.0Forward at 2x normal speed.

You can observe changes to the value of this property using key-value observing.
(Read only property)

Some examples using this property:

AVCaptureDeviceMBS.transportControlsSupported as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Indicates whether the device supports transport control commands. (read-only)
Example
dim device as AVCaptureDeviceMBS = AVCaptureDeviceMBS.defaultDeviceWithMediaType(AVFoundationMBS.AVMediaTypeVideo)
MsgBox str(device.transportControlsSupported)

For devices with transport controls, such as AVC tape-based camcorders or pro capture devices with RS422 deck control, the value of this property is true. If transport controls are not supported, none of the associated transport control methods and properties are available on the receiver.

You can observe changes to the value of this property using key-value observing.
(Read only property)

Some examples using this property:

AVCaptureDeviceMBS.transportType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The transport type of the receiver. (read-only)

The value of this property represents the transport type of the device (USB, PCI, etc). Transport types are defined in <IOKit/audio/IOAudioTypes.h> as kIOAudioDeviceTransportType*.
(Read only property)

AVCaptureDeviceMBS.uniqueID as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
An ID unique to the model of device corresponding to the receiver. (read-only)
Example
dim device as AVCaptureDeviceMBS
device = AVCaptureDeviceMBS.defaultDeviceWithMediaType(AVFoundationMBS.AVMediaTypeVideo)
dim u as string = device.uniqueID
MsgBox "uniqueID: "+u

Every available capture device has a unique ID that persists on one system across device connections and disconnections, application restarts, and reboots of the system itself. You can store the value returned by this property to recall or track the status of a specific device in the future.
(Read only property)

AVCaptureDeviceMBS.videoZoomFactor as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 22.2 ❌ No ❌ No ❌ No ✅ Yes iOS only
A value that controls the cropping and enlargement of images captured by the device.

This value is a multiplier. For example, a value of 2.0 doubles the size of an image’s subject (and halves the field of view). Allowed values range from 1.0 (full field of view) to the value of the active format’s videoMaxZoomFactor property. Setting the value of this property jumps immediately to the new zoom factor. For a smooth transition, use the rampToVideoZoomFactor method.
(Read and Write property)

AVCaptureDeviceMBS.whiteBalanceMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The current white balance mode.

Before changing the value of this property, you must call lockForConfiguration to acquire exclusive access to the device's configuration properties. If you do not, setting the value of this property raises an exception. When you are done configuring the device, call unlockForConfiguration to release the lock and allow other devices to configure the settings.

You can observe changes to the value of this property using key-value observing.
See "AVCaptureWhiteBalanceMode" for possible values.
(Read and Write property)

Some examples using this property:

Previous items

The items on this page are in the following plugins: MBS AVFoundation Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...