内容表

上一话题

QSoundEffect

下一话题

QVideoEncoderSettings

QVideoDeviceSelectorControl

QVideoDeviceSelectorControl class provides an video device selector media control. 更多 …

Inheritance diagram of PySide2.QtMultimedia.QVideoDeviceSelectorControl

详细描述

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 作为定义在 QVideoDeviceSelectorControl_iid .

class QVideoDeviceSelectorControl ( [ parent=None ] )
param parent

QObject

Constructs a video device selector control with the given parent .

PySide2.QtMultimedia.QVideoDeviceSelectorControl. defaultDevice ( )
返回类型

int

Returns the index of the default video device.

PySide2.QtMultimedia.QVideoDeviceSelectorControl. deviceCount ( )
返回类型

int

Returns the number of available video devices;

PySide2.QtMultimedia.QVideoDeviceSelectorControl. deviceDescription ( index )
参数

index – int

返回类型

unicode

Returns a description of the video device at index .

PySide2.QtMultimedia.QVideoDeviceSelectorControl. deviceName ( index )
参数

index – int

返回类型

unicode

Returns the name of the video device at index .

PySide2.QtMultimedia.QVideoDeviceSelectorControl. devicesChanged ( )
PySide2.QtMultimedia.QVideoDeviceSelectorControl. selectedDevice ( )
返回类型

int

Returns the index of the selected video device.

PySide2.QtMultimedia.QVideoDeviceSelectorControl. selectedDeviceChanged ( name )
参数

name – unicode

PySide2.QtMultimedia.QVideoDeviceSelectorControl. selectedDeviceChanged ( index )
参数

index – int

PySide2.QtMultimedia.QVideoDeviceSelectorControl. setSelectedDevice ( index )
参数

index – int

Sets the selected video device index .

另请参阅

selectedDevice()