13QOhosMediaCaptureSession::QOhosMediaCaptureSession() =
default;
24 m_camera =
static_cast<QOhosCamera *>(camera);
26 m_camera->setCaptureSession(
this);
28 m_imageCapture->setCaptureSession(
this);
30 m_recorder->setCaptureSession(
this);
36 return m_camera ? m_camera->session() :
nullptr;
41 return m_imageCapture;
46 if (m_imageCapture == imageCapture)
49 m_imageCapture->setCaptureSession(
nullptr);
50 m_imageCapture =
static_cast<QOhosImageCapture *>(imageCapture);
52 m_imageCapture->setCaptureSession(
this);
53 emit imageCaptureChanged();
63 if (m_recorder == recorder)
66 m_recorder->setCaptureSession(
nullptr);
67 m_recorder =
static_cast<QOhosMediaRecorder *>(recorder);
69 m_recorder->setCaptureSession(
this);
70 emit encoderChanged();
80 m_audioOutput = output;
85 if (m_videoSink == sink)
89 m_camera->setCaptureSession(
this);
94#include "moc_qohosmediacapturesession_p.cpp"
Combined button and popup list for selecting options.