17QAndroidMediaCaptureSession::QAndroidMediaCaptureSession()
18 : m_captureSession(
new QAndroidCaptureSession())
19 , m_cameraSession(
new QAndroidCameraSession())
25 delete m_captureSession;
26 delete m_cameraSession;
31 return m_cameraControl;
43 if (m_cameraControl == control)
47 m_cameraControl->setCaptureSession(
nullptr);
49 m_cameraControl = control;
51 m_cameraControl->setCaptureSession(
this);
58 return m_imageCaptureControl;
64 if (m_imageCaptureControl == control)
67 if (m_imageCaptureControl)
68 m_imageCaptureControl->setCaptureSession(
nullptr);
70 m_imageCaptureControl = control;
71 if (m_imageCaptureControl)
72 m_imageCaptureControl->setCaptureSession(
this);
84 if (m_encoder == control)
88 m_encoder->setCaptureSession(
nullptr);
92 m_encoder->setCaptureSession(
this);
94 emit encoderChanged();
100 m_captureSession->setAudioInput(input);
105 m_captureSession->setAudioOutput(output);
115#include "moc_qandroidmediacapturesession_p.cpp"
void setVideoSink(QVideoSink *surface)
void setCameraSession(QAndroidCameraSession *cameraSession=0)