QVideoDeviceSelectorControlclass provides an video device selector media control. 更多 …
QVideoDeviceSelectorControlclass 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
QVideoDeviceSelectorControlisorg.qt-project.qt.videodeviceselectorcontrol/5.0作为定义在QVideoDeviceSelectorControl_iid.
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
.
另请参阅