QVideoDeviceSelectorControl露

The QVideoDeviceSelectorControl class provides an video device selector media control. More鈥�

Inheritance diagram of PySide2.QtMultimedia.QVideoDeviceSelectorControl

Detailed Description露

The QVideoDeviceSelectorControl class provides descriptions of the video devices available on a system and allows one to be selected as the endpoint of a media service.

The interface name of QVideoDeviceSelectorControl is org.qt-project.qt.videodeviceselectorcontrol/5.0 as defined in QVideoDeviceSelectorControl_iid .

class PySide2.QtMultimedia.QVideoDeviceSelectorControl([parent=None])露
param parent:

PySide2.QtCore.QObject

Constructs a video device selector control with the given parent .

PySide2.QtMultimedia.QVideoDeviceSelectorControl.defaultDevice()露
Return type:

int

Returns the index of the default video device.

PySide2.QtMultimedia.QVideoDeviceSelectorControl.deviceCount()露
Return type:

int

Returns the number of available video devices;

PySide2.QtMultimedia.QVideoDeviceSelectorControl.deviceDescription(index)露
Parameters:

index 鈥� int

Return type:

str

Returns a description of the video device at index .

PySide2.QtMultimedia.QVideoDeviceSelectorControl.deviceName(index)露
Parameters:

index 鈥� int

Return type:

str

Returns the name of the video device at index .

PySide2.QtMultimedia.QVideoDeviceSelectorControl.devicesChanged()露
PySide2.QtMultimedia.QVideoDeviceSelectorControl.selectedDevice()露
Return type:

int

Returns the index of the selected video device.

PySide2.QtMultimedia.QVideoDeviceSelectorControl.selectedDeviceChanged(name)露
Parameters:

name 鈥� str

PySide2.QtMultimedia.QVideoDeviceSelectorControl.selectedDeviceChanged(index)
Parameters:

index 鈥� int

PySide2.QtMultimedia.QVideoDeviceSelectorControl.setSelectedDevice(index)露
Parameters:

index 鈥� int

Sets the selected video device index .

See also

selectedDevice()