Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

AVRecorder.VideoDeviceInfo

Queries details about video device.

Component Version macOS Windows Linux Server iOS SDK
AVRecorder 6.1 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "AVRecorder.VideoDeviceInfo"; AVSession; Index; Selector )   More

Parameters

Parameter Description Example
AVSession The ID for the AVRecorder session as returned by AVRecorder.Init. $AVSession
Index The index of the device from 0 to AVRecorder.VideoDeviceCount-1 or the name or ID of the device. 0
Selector Which value to return.
Can be ID, Name, Description, Index.
On Mac can also be manufacturer, modelID, transportType, connected, inUseByAnotherApplication or suspended.
"Name"

Result

Returns value or error.

Description

Queries details about video device.

Examples

Enumerate video devices:

# list video devices
Set Variable [$count; Value:MBS("AVRecorder.VideoDeviceCount"; $recorder)]
If [$count > 0]
    Set Variable [$index; Value:0]
    Loop
        # next
        New Record/Request
        Set Field [AVRecorder Devices::Index; $index]
        Set Field [AVRecorder Devices::ID; MBS("AVRecorder.VideoDeviceInfo"; $recorder; $index; "ID")]
        Set Field [AVRecorder Devices::Name; MBS("AVRecorder.VideoDeviceInfo"; $recorder; $index; "Name")]
        Set Field [AVRecorder Devices::Description; MBS("AVRecorder.VideoDeviceInfo"; $recorder; $index; "Description")]
        If [MBS("SystemInfo.isMacOSX")]
            Set Field [AVRecorder Devices::Manufacturer; MBS("AVRecorder.VideoDeviceInfo"; $recorder; $index; "manufacturer")]
            Set Field [AVRecorder Devices::ModelID; MBS("AVRecorder.VideoDeviceInfo"; $recorder; $index; "modelID")]
            Set Field [AVRecorder Devices::TransportType; MBS("AVRecorder.VideoDeviceInfo"; $recorder; $index; "transportType")]
            Set Field [AVRecorder Devices::Connected; MBS("AVRecorder.VideoDeviceInfo"; $recorder; $index; "connected")]
            Set Field [AVRecorder Devices::inUseByAnotherApplication; MBS("AVRecorder.VideoDeviceInfo"; $recorder; $index; "inUseByAnotherApplication")]
            Set Field [AVRecorder Devices::suspended; MBS("AVRecorder.VideoDeviceInfo"; $recorder; $index; "suspended")]
        End If
        Set Field [AVRecorder Devices::Type; "Video"]
        Commit Records/Requests []
        Set Variable [$index; Value:$index + 1]
        Exit Loop If [$count = $index]
    End Loop
End If

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 18th February 2016, last changed 19th February 2016


AVRecorder.VideoDeviceCount - AVRecorder.VideoResolutions