mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
added the possiblity to choose which camera to use
This commit is contained in:
parent
7b5be347bf
commit
b78f7f11de
4 changed files with 116 additions and 4 deletions
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include <QLabel>
|
||||
#include <QCamera>
|
||||
#include <QCameraInfo>
|
||||
#include "interface/rsVOIP.h"
|
||||
|
||||
#include "gui/VideoProcessor.h"
|
||||
|
@ -85,6 +86,7 @@ class QVideoInputDevice: public QObject
|
|||
|
||||
static void getAvailableDevices(QList<QString>& device_desc);
|
||||
|
||||
QString currentCameraDescriptionString() const { return _capture_device_info.deviceName(); }
|
||||
protected slots:
|
||||
void grabFrame(int id, QVideoFrame f) ;
|
||||
void errorHandling(CameraStatus status,QCamera::Error error);
|
||||
|
@ -98,6 +100,7 @@ protected slots:
|
|||
QTimer *_timer ;
|
||||
QCamera *_capture_device;
|
||||
QCameraImageCapture *_image_capture;
|
||||
QCameraInfo _capture_device_info;
|
||||
|
||||
QVideoOutputDevice *_echo_output_device ;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue