32 emit q->videoOutputChanged();
120 if (maybeCaptureSession) {
124 qWarning() <<
"Failed to initialize QMediaCaptureSession" << maybeCaptureSession.error();
168 if (oldInput ==
input)
178 oldInput->setDisconnectFunction({});
220 if (oldCamera->captureSession() && oldCamera->captureSession() !=
this)
221 oldCamera->captureSession()->setCamera(
nullptr);
222 oldCamera->setCaptureSession(
nullptr);
229 camera->setCaptureSession(
this);
267 if (oldScreenCapture) {
268 if (oldScreenCapture->captureSession() && oldScreenCapture->captureSession() !=
this)
269 oldScreenCapture->captureSession()->setScreenCapture(
nullptr);
270 oldScreenCapture->setCaptureSession(
nullptr);
315 if (oldCapture->captureSession() && oldCapture->captureSession() !=
this)
316 oldCapture->captureSession()->setWindowCapture(
nullptr);
317 oldCapture->setCaptureSession(
nullptr);
359 if (oldImageCapture) {
360 if (oldImageCapture->captureSession() && oldImageCapture->captureSession() !=
this)
361 oldImageCapture->captureSession()->setImageCapture(
nullptr);
362 oldImageCapture->setCaptureSession(
nullptr);
404 if (oldRecorder->captureSession() && oldRecorder->captureSession() !=
this)
405 oldRecorder->captureSession()->setRecorder(
nullptr);
406 oldRecorder->setCaptureSession(
nullptr);
436 return d->videoOutput;
457 d->setVideoSink(
sink);
471 d->videoOutput =
nullptr;
472 d->setVideoSink(
sink);
502 oldOutput->setDisconnectFunction({});
526 return d->audioOutput;
573#include "moc_qmediacapturesession.cpp"
\qmltype AudioOutput \instantiates QAudioOutput
The QCamera class provides interface for system camera devices.
QMediaCaptureSession * captureSession() const
Returns the capture session this camera is connected to, or a nullptr if the camera is not connected ...
QMediaCaptureSession * captureSession() const
Returns the capture session this camera is connected to, or a nullptr if the camera is not connected ...
QMediaCaptureSession * captureSession() const
Returns the capture session this QScreenCapture is connected to.
The QVideoSink class represents a generic sink for video data.
QMediaCaptureSession * captureSession() const
Combined button and popup list for selecting options.
#define Q_RETURN_ARG(Type, data)
GLdouble GLdouble GLdouble GLdouble q
GLsizei GLenum GLboolean sink
GLenum GLenum GLenum input
QT_BEGIN_NAMESPACE typedef uchar * output