AVFoundation: implement QCameraInfoControl.
Change-Id: I05f3daa5c4acb90e046e26d6d577ae40dfed0e30 Reviewed-by: Andy Nichols <andy.nichols@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
70415c3d97
commit
9a55f5ce57
@@ -44,6 +44,7 @@
|
||||
|
||||
#include "avfcameraservice.h"
|
||||
#include "avfcameracontrol.h"
|
||||
#include "avfcamerainfocontrol.h"
|
||||
#include "avfcamerasession.h"
|
||||
#include "avfvideodevicecontrol.h"
|
||||
#include "avfaudioinputselectorcontrol.h"
|
||||
@@ -65,6 +66,7 @@ AVFCameraService::AVFCameraService(QObject *parent):
|
||||
{
|
||||
m_session = new AVFCameraSession(this);
|
||||
m_cameraControl = new AVFCameraControl(this);
|
||||
m_cameraInfoControl = new AVFCameraInfoControl(this);
|
||||
m_videoDeviceControl = new AVFVideoDeviceControl(this);
|
||||
m_audioInputSelectorControl = new AVFAudioInputSelectorControl(this);
|
||||
|
||||
@@ -98,6 +100,9 @@ QMediaControl *AVFCameraService::requestControl(const char *name)
|
||||
if (qstrcmp(name, QCameraControl_iid) == 0)
|
||||
return m_cameraControl;
|
||||
|
||||
if (qstrcmp(name, QCameraInfoControl_iid) == 0)
|
||||
return m_cameraInfoControl;
|
||||
|
||||
if (qstrcmp(name, QVideoDeviceSelectorControl_iid) == 0)
|
||||
return m_videoDeviceControl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user