refactored the UI of VOIP config panel and added list of available devices (not used yet)

This commit is contained in:
csoler 2021-05-15 21:37:11 +02:00
parent d3f75234a7
commit 7b5be347bf
4 changed files with 303 additions and 234 deletions

View file

@ -49,7 +49,7 @@ class QVideoInputDevice: public QObject
Q_OBJECT
public:
QVideoInputDevice(QWidget *parent = 0) ;
QVideoInputDevice(QWidget *parent = 0) ;
~QVideoInputDevice() ;
// Captured images are sent to this encoder. Can be NULL.
@ -71,7 +71,7 @@ class QVideoInputDevice: public QObject
// control
void start() ;
void start(const QString &description = QString()) ;
void stop() ;
bool stopped();
@ -81,6 +81,10 @@ class QVideoInputDevice: public QObject
CAMERA_CANNOT_GRAB_FRAMES = 0x02
};
// Gets the list of available devices. The id string for each device can be used when creating a QVideoDevice
static void getAvailableDevices(QList<QString>& device_desc);
protected slots:
void grabFrame(int id, QVideoFrame f) ;
void errorHandling(CameraStatus status,QCamera::Error error);