OxideQVideoCaptureDevice Class

Provides information about a video capture device More...

Header: #include <oxideqmediacapturedevices.h>

Public Types

enum Position { PositionUnspecified, PositionFrontFace, PositionBackFace }

Public Functions

OxideQVideoCaptureDevice(const OxideQVideoCaptureDevice &other)
~OxideQVideoCaptureDevice()
QString displayName() const
QString id() const
Position position() const

Detailed Description

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.

Member Type Documentation

enum OxideQVideoCaptureDevice::Position

This describes a video capture device position.

ConstantValueDescription
OxideQVideoCaptureDevice::PositionUnspecified0The camera position could not be determined.
OxideQVideoCaptureDevice::PositionFrontFace1The camera is front facing, ie, pointing towards the user.
OxideQVideoCaptureDevice::PositionBackFace2The camera is rear facing, ie, pointing away from the user.

Member Function Documentation

OxideQVideoCaptureDevice::OxideQVideoCaptureDevice(const OxideQVideoCaptureDevice &other)

Copy construct a new OxideQVideoCaptureDevice from other.

OxideQVideoCaptureDevice::~OxideQVideoCaptureDevice()

Destroy this OxideQVideoCaptureDevice.

QString OxideQVideoCaptureDevice::displayName() const

Return the display name of this device.

QString OxideQVideoCaptureDevice::id() const

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.

Position OxideQVideoCaptureDevice::position() const

Return the position of this device.

On devices where this is not supported, this will return PositionUnspecified.