Provides information about a video capture device More...
Header: | #include <oxideqmediacapturedevices.h> |
enum | Position { PositionUnspecified, PositionFrontFace, PositionBackFace } |
OxideQVideoCaptureDevice(const OxideQVideoCaptureDevice & other) | |
~OxideQVideoCaptureDevice() | |
QString | displayName() const |
QString | id() const |
Position | position() const |
Provides information about a video capture device
OxideQVideoCaptureDevice provides information about a video capture device. The device ID can be determined by calling id, and the device's display name is available via displayName.
On some devices it is possible to determine whether this is a front facing or rear facing video capture device by calling position.
This describes a video capture device position.
Constant | Value | Description |
---|---|---|
OxideQVideoCaptureDevice::PositionUnspecified | 0 | The camera position could not be determined. |
OxideQVideoCaptureDevice::PositionFrontFace | 1 | The camera is front facing, ie, pointing towards the user. |
OxideQVideoCaptureDevice::PositionBackFace | 2 | The camera is rear facing, ie, pointing away from the user. |
Copy construct a new OxideQVideoCaptureDevice from other.
Destroy this OxideQVideoCaptureDevice.
Return the display name of this device.
Return the ID of this device. This ID is unique for this device and this session, but applications should not rely on this ID persisting between sessions.
Return the position of this device.
On devices where this is not supported, this will return PositionUnspecified.