Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qmediacapturesession.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
6
7#include <QtMultimedia/qaudiobufferinput.h>
8#include <QtMultimedia/qaudiodevice.h>
9#include <QtMultimedia/qaudioinput.h>
10#include <QtMultimedia/qaudiooutput.h>
11#include <QtMultimedia/qcamera.h>
12#include <QtMultimedia/qimagecapture.h>
13#include <QtMultimedia/qmediarecorder.h>
14#include <QtMultimedia/qscreencapture.h>
15#include <QtMultimedia/qvideoframeinput.h>
16#include <QtMultimedia/qvideosink.h>
17#include <QtMultimedia/qwindowcapture.h>
18#include <QtMultimedia/private/qplatformaudioinput_p.h>
19#include <QtMultimedia/private/qplatformaudiooutput_p.h>
20#include <QtMultimedia/private/qplatformmediaintegration_p.h>
21#include <QtMultimedia/private/qplatformmediacapture_p.h>
22
23#if QT_CONFIG(gstreamer_qt_api)
24# include <QtMultimedia/spi/qgstreamervideosource.h>
25#endif
26
28
30{
31 Q_Q(QMediaCaptureSession);
32
33 if (sink == videoSink)
34 return;
35 if (videoSink)
36 videoSink->setSource(nullptr);
37 videoSink = sink;
38 if (sink)
39 sink->setSource(q);
40 if (captureSession)
41 captureSession->setVideoPreview(sink);
42 Q_EMIT q->videoOutputChanged();
43}
44
45/*!
46 \class QMediaCaptureSession
47
48 \brief The QMediaCaptureSession class allows capturing of audio and video content.
49 \inmodule QtMultimedia
50 \ingroup multimedia
51 \ingroup multimedia_video
52 \ingroup multimedia_audio
53
54 The QMediaCaptureSession is the central class that manages capturing of media on the local
55 device.
56
57 You can connect a video input to QMediaCaptureSession using setCamera(),
58 setScreenCapture(), setWindowCapture() or setVideoFrameInput().
59 A preview of the captured media can be seen by setting a QVideoWidget or QGraphicsVideoItem
60 using setVideoOutput().
61
62 You can connect a microphone to QMediaCaptureSession using setAudioInput(), or set your
63 custom audio input using setAudioBufferInput().
64 The captured sound can be heard by routing the audio to an output device using setAudioOutput().
65
66 You can capture still images from a camera by setting a QImageCapture object on the capture
67 session, and record audio/video using a QMediaRecorder.
68
69 \sa QCamera, QAudioDevice, QMediaRecorder, QImageCapture, QScreenCapture, QWindowCapture,
70 QVideoFrameInput, QGStreamerVideoSource, QMediaRecorder, QGraphicsVideoItem
71*/
72
73/*!
74 \qmltype CaptureSession
75 \since 6.2
76 \nativetype QMediaCaptureSession
77 \brief Allows capturing of audio and video content.
78
79 \inqmlmodule QtMultimedia
80 \ingroup multimedia_qml
81 \ingroup multimedia_audio_qml
82 \ingroup multimedia_video_qml
83
84 This is the central type that manages capturing of media on the local device.
85
86 Connect a camera and a microphone to a CaptureSession by assigning Camera
87 and AudioInput objects to the relevant properties.
88
89 Capture a screen by connecting a ScreenCapture object to
90 the screenCapture property.
91
92 Capture a window by connecting a WindowCapture object to
93 the windowCapture property.
94
95 Enable a preview of the captured media by assigning a VideoOutput element to
96 the videoOutput property.
97
98 Route audio to an output device by assigning an AudioOutput object
99 to the audioOutput property.
100
101 Capture still images from a camera by assigning an ImageCapture to the
102 imageCapture property.
103
104 Record audio/video by assigning a MediaRecorder to the recorder property.
105
106\qml
107 CaptureSession {
108 id: captureSession
109 camera: Camera {
110 id: camera
111 }
112 imageCapture: ImageCapture {
113 id: imageCapture
114 }
115
116 recorder: MediaRecorder {
117 id: recorder
118 }
119 videoOutput: preview
120
121 Component.onCompleted: {
122 camera.start()
123 }
124 }
125\endqml
126
127 \sa Camera, MediaDevices, MediaRecorder, ImageCapture, ScreenCapture, WindowCapture,
128 GStreamerVideoSource, AudioInput, VideoOutput
129 \note To ensure the camera starts capturing video frames on all platforms, explicitly call camera.start(),
130 typically in the Component.onCompleted handler.
131*/
132
133template <>
135{
136 static constexpr bool IsCamera = true;
137 static constexpr auto Member = &QMediaCaptureSessionPrivate::camera;
138 static constexpr auto Setter = &QMediaCaptureSession::setCamera;
142};
143
144#if QT_CONFIG(gstreamer_qt_api)
145template <>
146struct QMediaCaptureSession::ObjectTraits<QGStreamerVideoSource>
147{
148 static constexpr bool IsCamera = true;
149 static constexpr auto Member = &QMediaCaptureSessionPrivate::nativeVideoSource;
150 static constexpr auto Setter = &QMediaCaptureSession::setNativeVideoSource;
151 static constexpr auto PlatformSetter = &QPlatformMediaCaptureSession::setCamera;
152 static constexpr auto PlatformObjectProvider = &QGStreamerVideoSource::platformVideoSource;
153 static constexpr auto ChangeNotifier = &QMediaCaptureSession::nativeVideoSourceChanged;
154};
155#endif
156
157template <>
158struct QMediaCaptureSession::ObjectTraits<QScreenCapture>
159{
160 static constexpr bool IsCamera = false;
161 static constexpr auto Member = &QMediaCaptureSessionPrivate::screenCapture;
162 static constexpr auto Setter = &QMediaCaptureSession::setScreenCapture;
163 static constexpr auto PlatformSetter = &QPlatformMediaCaptureSession::setScreenCapture;
164 static constexpr auto PlatformObjectProvider = &QScreenCapture::platformScreenCapture;
165 static constexpr auto ChangeNotifier = &QMediaCaptureSession::screenCaptureChanged;
166};
167
168template <>
169struct QMediaCaptureSession::ObjectTraits<QWindowCapture>
170{
171 static constexpr bool IsCamera = false;
172 static constexpr auto Member = &QMediaCaptureSessionPrivate::windowCapture;
173 static constexpr auto Setter = &QMediaCaptureSession::setWindowCapture;
174 static constexpr auto PlatformSetter = &QPlatformMediaCaptureSession::setWindowCapture;
175 static constexpr auto PlatformObjectProvider = &QWindowCapture::platformWindowCapture;
176 static constexpr auto ChangeNotifier = &QMediaCaptureSession::windowCaptureChanged;
177};
178
179template <>
180struct QMediaCaptureSession::ObjectTraits<QVideoFrameInput>
181{
182 static constexpr bool IsCamera = false;
183 static constexpr auto Member = &QMediaCaptureSessionPrivate::videoFrameInput;
184 static constexpr auto Setter = &QMediaCaptureSession::setVideoFrameInput;
185 static constexpr auto PlatformSetter = &QPlatformMediaCaptureSession::setVideoFrameInput;
186 static constexpr auto PlatformObjectProvider = &QVideoFrameInput::platformVideoFrameInput;
187 static constexpr auto ChangeNotifier = &QMediaCaptureSession::videoFrameInputChanged;
188};
189
190template <>
191struct QMediaCaptureSession::ObjectTraits<QAudioBufferInput>
192{
193 static constexpr bool IsCamera = false;
194 static constexpr auto Member = &QMediaCaptureSessionPrivate::audioBufferInput;
195 static constexpr auto Setter = &QMediaCaptureSession::setAudioBufferInput;
196 static constexpr auto PlatformSetter = &QPlatformMediaCaptureSession::setAudioBufferInput;
197 static constexpr auto PlatformObjectProvider = &QAudioBufferInput::platformAudioBufferInput;
198 static constexpr auto ChangeNotifier = &QMediaCaptureSession::audioBufferInputChanged;
199};
200
201template <>
202struct QMediaCaptureSession::ObjectTraits<QImageCapture>
203{
204 static constexpr bool IsCamera = false;
205 static constexpr auto Member = &QMediaCaptureSessionPrivate::imageCapture;
206 static constexpr auto Setter = &QMediaCaptureSession::setImageCapture;
207 static constexpr auto PlatformSetter = &QPlatformMediaCaptureSession::setImageCapture;
208 static constexpr auto PlatformObjectProvider = &QImageCapture::platformImageCapture;
209 static constexpr auto ChangeNotifier = &QMediaCaptureSession::imageCaptureChanged;
210};
211
212template <>
213struct QMediaCaptureSession::ObjectTraits<QMediaRecorder>
214{
215 static constexpr bool IsCamera = false;
216 static constexpr auto Member = &QMediaCaptureSessionPrivate::recorder;
217 static constexpr auto Setter = &QMediaCaptureSession::setRecorder;
218 static constexpr auto PlatformSetter = &QPlatformMediaCaptureSession::setMediaRecorder;
219 static constexpr auto PlatformObjectProvider = &QMediaRecorder::platformRecoder;
220 static constexpr auto ChangeNotifier = &QMediaCaptureSession::recorderChanged;
221};
222
223template <typename Object>
224void QMediaCaptureSession::setObject(Object *object) {
225 Q_D(QMediaCaptureSession);
226
227 using Traits = QMediaCaptureSession::ObjectTraits<Object>;
228
229 Object *oldObject = qobject_cast<Object *>(d->*Traits::Member);
230 if (oldObject == object)
231 return;
232
233 if constexpr (Traits::IsCamera) {
234 if (!QPlatformMediaIntegration::instance()->isCameraSwitchingDuringRecordingSupported()
235 && recorder() && recorder()->recorderState() == QMediaRecorder::RecordingState) {
236 qWarning("This media backend does not support camera switching during recording");
237 return;
238 }
239 }
240
241 d->*Traits::Member = object;
242
243 if (d->captureSession)
244 std::invoke(Traits::PlatformSetter, d->captureSession, nullptr);
245
246 if (oldObject) {
247 if (oldObject->captureSession() && oldObject->captureSession() != this)
248 std::invoke(Traits::Setter, oldObject->captureSession(), nullptr);
249 oldObject->setCaptureSession(nullptr);
250 }
251
252 if (object) {
253 if (auto *otherSession = object->captureSession())
254 std::invoke(Traits::Setter, otherSession, nullptr);
255 if (d->captureSession)
256 std::invoke(Traits::PlatformSetter, d->captureSession,
257 std::invoke(Traits::PlatformObjectProvider, object));
258 object->setCaptureSession(this);
259 }
260
261 Q_EMIT (this->*Traits::ChangeNotifier)();
262}
263
264/*!
265 Creates a session for media capture from the \a parent object.
266 */
267QMediaCaptureSession::QMediaCaptureSession(QObject *parent)
268 : QObject{ *new QMediaCaptureSessionPrivate, parent }
269{
270 Q_D(QMediaCaptureSession);
271
272 auto maybeCaptureSession = QPlatformMediaIntegration::instance()->createCaptureSession();
273 if (maybeCaptureSession) {
274 d->captureSession.reset(maybeCaptureSession.value());
275 d->captureSession->setCaptureSession(this);
276 } else {
277 qWarning() << "Failed to initialize QMediaCaptureSession" << maybeCaptureSession.error();
278 }
279}
280
281/*!
282 Destroys the session.
283 */
284QMediaCaptureSession::~QMediaCaptureSession()
285{
286 Q_D(QMediaCaptureSession);
287
288 setCamera(nullptr);
289 setNativeVideoSource(nullptr);
290 setRecorder(nullptr);
291 setImageCapture(nullptr);
292 setScreenCapture(nullptr);
293 setWindowCapture(nullptr);
294 setVideoFrameInput(nullptr);
295 setAudioBufferInput(nullptr);
296 setAudioInput(nullptr);
297 setAudioOutput(nullptr);
298 d->setVideoSink(nullptr);
299 d->captureSession.reset();
300}
301/*!
302 \qmlproperty AudioInput QtMultimedia::CaptureSession::audioInput
303
304 This property holds the audio input that is being used to capture audio.
305*/
306
307/*!
308 \property QMediaCaptureSession::audioInput
309
310 Returns the device that is being used to capture audio.
311*/
312QAudioInput *QMediaCaptureSession::audioInput() const
313{
314 Q_D(const QMediaCaptureSession);
315 return d->audioInput;
316}
317
318/*!
319 Sets the audio input device to \a input. If setting it to an empty
320 QAudioDevice the capture session will use the default input as
321 defined by the operating system.
322*/
323void QMediaCaptureSession::setAudioInput(QAudioInput *input)
324{
325 Q_D(QMediaCaptureSession);
326
327 QAudioInput *oldInput = d->audioInput;
328 if (oldInput == input)
329 return;
330
331 // To avoid double emit of audioInputChanged
332 // from recursive setAudioInput(nullptr) call.
333 d->audioInput = nullptr;
334
335 // TODO: check if it's possible to reuse setObject(input)
336 if (d->captureSession)
337 d->captureSession->setAudioInput(nullptr);
338 if (oldInput)
339 oldInput->setDisconnectFunction({});
340 if (input) {
341 input->setDisconnectFunction([this](){ setAudioInput(nullptr); });
342 if (d->captureSession)
343 d->captureSession->setAudioInput(QPlatformAudioInput::get(input));
344 }
345 d->audioInput = input;
346 Q_EMIT audioInputChanged();
347}
348
349/*!
350 \property QMediaCaptureSession::audioBufferInput
351 \since 6.8
352
353 \brief The object used to send custom audio buffers to \l QMediaRecorder.
354*/
355QAudioBufferInput *QMediaCaptureSession::audioBufferInput() const
356{
357 Q_D(const QMediaCaptureSession);
358
359 return d->audioBufferInput;
360}
361
362void QMediaCaptureSession::setAudioBufferInput(QAudioBufferInput *input)
363{
364 setObject(input);
365}
366
367/*!
368 \qmlproperty Camera QtMultimedia::CaptureSession::camera
369
370 \brief The camera used to capture video.
371
372 Record video or take images by adding a camera to the capture session using
373 this property.
374*/
375
376/*!
377 \property QMediaCaptureSession::camera
378
379 \brief The camera used to capture video.
380
381 Record video or take images by adding a camera to the capture session
382 using this property.
383*/
384QCamera *QMediaCaptureSession::camera() const
385{
386 Q_D(const QMediaCaptureSession);
387 return d->camera;
388}
389
390void QMediaCaptureSession::setCamera(QCamera *camera)
391{
392#if QT_CONFIG(gstreamer_qt_api)
393 Q_D(QMediaCaptureSession);
394 if (d->nativeVideoSource && camera) {
395 // TODO: perhaps, we should relax the limitation
396 qWarning("Setting camera, when gstreamer video source is connected, is not supported");
397 return;
398 }
399#endif
400
401 setObject(camera);
402}
403
404/*!
405 \qmlproperty GStreamerVideoSource QtMultimedia::CaptureSession::nativeVideoSource
406 \since 6.12
407
408 \brief The native video source used to capture video.
409
410 For now, it is only possible to set GStreamerVideoSource as the native video source.
411 A capture session can have either \l Camera or \l GStreamerVideoSource set
412 at a time.
413
414 \sa GStreamerVideoSource, Camera
415*/
416
417/*!
418 \property QMediaCaptureSession::nativeVideoSource
419 \since 6.12
420
421 \brief The native video source used to capture video.
422
423 For now, it is only possible to set QGStreamerVideoSource as the native video source.
424 A capture session can have either \l QCamera or \l QGStreamerVideoSource set
425 at a time.
426
427 \sa QGStreamerVideoSource, QCamera
428*/
429
430QObject *QMediaCaptureSession::nativeVideoSource() const
431{
432 Q_D(const QMediaCaptureSession);
433 return d->nativeVideoSource;
434}
435
436void QMediaCaptureSession::setNativeVideoSource(QObject *videoSource)
437{
438#if QT_CONFIG(gstreamer_qt_api)
439 Q_D(QMediaCaptureSession);
440
441 auto *gstreamerVideoSource = qobject_cast<QGStreamerVideoSource *>(videoSource);
442
443 if (videoSource && !gstreamerVideoSource) {
444 qCritical() << "Unsupported video source type; QGStreamerVideoSource is expected.";
445 return;
446 }
447
448 if (d->camera && gstreamerVideoSource) {
449 // TODO: perhaps, we should relax the limitation
450 qWarning("Setting GStreamer video source, when camera is connected, is not supported");
451 return;
452 }
453
454 setObject(gstreamerVideoSource);
455#else
456 if (videoSource)
457 qCritical() << "Only gstreamer video source is supported";
458
459#endif
460}
461
462/*!
463 \qmlproperty ScreenCapture QtMultimedia::CaptureSession::screenCapture
464 \since 6.5
465
466 \brief The object used to capture a screen.
467
468 Record a screen by adding a screen capture objet
469 to the capture session using this property.
470*/
471
472/*!
473 \property QMediaCaptureSession::screenCapture
474 \since 6.5
475
476 \brief The object used to capture a screen.
477
478 Record a screen by adding a screen capture object
479 to the capture session using this property.
480*/
481QScreenCapture *QMediaCaptureSession::screenCapture()
482{
483 Q_D(QMediaCaptureSession);
484 return d->screenCapture;
485}
486
487void QMediaCaptureSession::setScreenCapture(QScreenCapture *screenCapture)
488{
489 setObject(screenCapture);
490}
491
492/*!
493 \qmlproperty WindowCapture QtMultimedia::CaptureSession::windowCapture
494 \since 6.6
495
496 \brief The object used to capture a window.
497
498 Record a window by adding a window capture object
499 to the capture session using this property.
500*/
501
502/*!
503 \property QMediaCaptureSession::windowCapture
504 \since 6.6
505
506 \brief The object used to capture a window.
507
508 Record a window by adding a window capture objet
509 to the capture session using this property.
510*/
511QWindowCapture *QMediaCaptureSession::windowCapture()
512{
513 Q_D(QMediaCaptureSession);
514 return d->windowCapture;
515}
516
517void QMediaCaptureSession::setWindowCapture(QWindowCapture *windowCapture)
518{
519 setObject(windowCapture);
520}
521
522/*!
523 \property QMediaCaptureSession::videoFrameInput
524 \since 6.8
525
526 \brief The object used to send custom video frames to
527 \l QMediaRecorder or a video output.
528*/
529QVideoFrameInput *QMediaCaptureSession::videoFrameInput() const
530{
531 Q_D(const QMediaCaptureSession);
532 return d->videoFrameInput;
533}
534
535void QMediaCaptureSession::setVideoFrameInput(QVideoFrameInput *input)
536{
537 setObject(input);
538}
539
540/*!
541 \qmlproperty ImageCapture QtMultimedia::CaptureSession::imageCapture
542
543 \brief The object used to capture still images.
544
545 Add an ImageCapture interface to the capture session to enable
546 capturing of still images from the camera.
547*/
548/*!
549 \property QMediaCaptureSession::imageCapture
550
551 \brief the object used to capture still images.
552
553 Add a QImageCapture object to the capture session to enable
554 capturing of still images from the camera.
555*/
556QImageCapture *QMediaCaptureSession::imageCapture()
557{
558 Q_D(QMediaCaptureSession);
559 return d->imageCapture;
560}
561
562void QMediaCaptureSession::setImageCapture(QImageCapture *imageCapture)
563{
564 setObject(imageCapture);
565}
566/*!
567 \qmlproperty MediaRecorder QtMultimedia::CaptureSession::recorder
568
569 \brief The recorder object used to capture audio/video.
570
571 Add a MediaRcorder object to the capture session to enable
572 recording of audio and/or video from the capture session.
573*/
574/*!
575 \property QMediaCaptureSession::recorder
576
577 \brief The recorder object used to capture audio/video.
578
579 Add a QMediaRecorder object to the capture session to enable
580 recording of audio and/or video from the capture session.
581*/
582
583QMediaRecorder *QMediaCaptureSession::recorder()
584{
585 Q_D(QMediaCaptureSession);
586 return d->recorder;
587}
588
589void QMediaCaptureSession::setRecorder(QMediaRecorder *recorder)
590{
591 setObject(recorder);
592}
593/*!
594 \qmlproperty VideoOutput QtMultimedia::CaptureSession::videoOutput
595
596 \brief The VideoOutput that is the video preview for the capture session.
597
598 A VideoOutput based preview is expected to have an invokable videoSink()
599 method that returns a QVideoSink.
600
601 The previously set preview is detached.
602
603*/
604/*!
605 \property QMediaCaptureSession::videoOutput
606
607 Returns the video output for the session.
608*/
609QObject *QMediaCaptureSession::videoOutput() const
610{
611 Q_D(const QMediaCaptureSession);
612 return d->videoOutput;
613}
614/*!
615 Sets a QObject, (\a output), to a video preview for the capture session.
616
617 A QObject based preview is expected to have an invokable videoSink()
618 method that returns a QVideoSink.
619
620 The previously set preview is detached.
621*/
622void QMediaCaptureSession::setVideoOutput(QObject *output)
623{
624 Q_D(QMediaCaptureSession);
625 if (d->videoOutput == output)
626 return;
627 QVideoSink *sink = qobject_cast<QVideoSink *>(output);
628 if (!sink && output) {
629 auto *mo = output->metaObject();
630 mo->invokeMethod(output, "videoSink", Q_RETURN_ARG(QVideoSink *, sink));
631 }
632 d->videoOutput = output;
633 d->setVideoSink(sink);
634}
635
636/*!
637 Sets a QVideoSink, (\a sink), to a video preview for the capture session.
638
639 A QObject based preview is expected to have an invokable videoSink()
640 method that returns a QVideoSink.
641
642 The previously set preview is detached.
643*/
644void QMediaCaptureSession::setVideoSink(QVideoSink *sink)
645{
646 Q_D(QMediaCaptureSession);
647 d->videoOutput = nullptr;
648 d->setVideoSink(sink);
649}
650
651/*!
652 Returns the QVideoSink for the session.
653*/
654QVideoSink *QMediaCaptureSession::videoSink() const
655{
656 Q_D(const QMediaCaptureSession);
657 return d->videoSink;
658}
659/*!
660 Sets the audio output device to \a{output}.
661
662 Setting an audio output device enables audio routing from an audio input device.
663*/
664void QMediaCaptureSession::setAudioOutput(QAudioOutput *output)
665{
666 Q_D(QMediaCaptureSession);
667
668 QAudioOutput *oldOutput = d->audioOutput;
669 if (oldOutput == output)
670 return;
671
672 // We don't want to end up with signal emitted
673 // twice (from recursive call setAudioInput(nullptr)
674 // from oldOutput->setDisconnectFunction():
675 d->audioOutput = nullptr;
676
677 if (d->captureSession)
678 d->captureSession->setAudioOutput(nullptr);
679 if (oldOutput)
680 oldOutput->setDisconnectFunction({});
681 if (output) {
682 output->setDisconnectFunction([this](){ setAudioOutput(nullptr); });
683 if (d->captureSession)
684 d->captureSession->setAudioOutput(QPlatformAudioOutput::get(output));
685 }
686 d->audioOutput = output;
687 Q_EMIT audioOutputChanged();
688}
689/*!
690 \qmlproperty AudioOutput QtMultimedia::CaptureSession::audioOutput
691 \brief The audio output device for the capture session.
692
693 Add an AudioOutput device to the capture session to enable
694 audio routing from an AudioInput device.
695*/
696/*!
697 \property QMediaCaptureSession::audioOutput
698
699 Returns the audio output for the session.
700*/
701QAudioOutput *QMediaCaptureSession::audioOutput() const
702{
703 Q_D(const QMediaCaptureSession);
704 return d->audioOutput;
705}
706
707/*!
708 \internal
709*/
710QPlatformMediaCaptureSession *QMediaCaptureSession::platformSession() const
711{
712 Q_D(const QMediaCaptureSession);
713 return d->captureSession.get();
714}
715/*!
716 \qmlsignal QtMultimedia::CaptureSession::audioInputChanged()
717 This signal is emitted when an audio input has changed.
718 \sa CaptureSession::audioInput
719*/
720
721/*!
722 \qmlsignal QtMultimedia::CaptureSession::cameraChanged()
723 This signal is emitted when the selected camera has changed.
724 \sa CaptureSession::camera
725*/
726
727/*!
728 \qmlsignal QtMultimedia::CaptureSession::nativeVideoSourceChanged()
729 This signal is emitted when the selected native video source has changed.
730 \sa CaptureSession::nativeVideoSource
731*/
732
733/*!
734 \qmlsignal QtMultimedia::CaptureSession::imageCaptureChanged()
735 This signal is emitted when the selected interface has changed.
736 \sa CaptureSession::camera
737*/
738
739/*!
740 \qmlsignal QtMultimedia::CaptureSession::recorderChanged()
741 This signal is emitted when the selected recorder has changed.
742 \sa CaptureSession::recorder
743*/
744
745/*!
746 \qmlsignal QtMultimedia::CaptureSession::videoOutputChanged()
747 This signal is emitted when the selected video output has changed.
748 \sa CaptureSession::videoOutput
749*/
750
751/*!
752 \qmlsignal QtMultimedia::CaptureSession::audioOutputChanged()
753 This signal is emitted when the selected audio output has changed.
754 \sa CaptureSession::audioOutput
755*/
756QT_END_NAMESPACE
757
758#include "moc_qmediacapturesession.cpp"
void setVideoSink(QVideoSink *sink)
Combined button and popup list for selecting options.