4#ifndef QFFMPEGMEDIACAPTURESESSION_H
5#define QFFMPEGMEDIACAPTURESESSION_H
18#include <QtMultimedia/private/qplatformmediacapture_p.h>
19#include <QtMultimedia/private/qplatformmediaintegration_p.h>
31class QPlatformVideoSource;
32class QPlatformAudioBufferInput;
33class QAudioBufferSource;
46 void setCamera(QPlatformCamera *camera)
override;
80 void updateVideoFrameConnection();
81 void updatePrimaryActiveVideoSource();
87 template<
typename VideoSource>
88 bool setVideoSource(
QPointer<VideoSource> &source, VideoSource *newSource);
90 QPointer<QPlatformCamera> m_camera;
91 QPointer<QPlatformSurfaceCapture> m_screenCapture;
92 QPointer<QPlatformSurfaceCapture> m_windowCapture;
93 QPointer<QPlatformVideoFrameInput> m_videoFrameInput;
94 QPointer<QPlatformVideoSource> m_primaryActiveVideoSource;
97 QPointer<QPlatformAudioBufferInput> m_audioBufferInput;
101 QPlatformAudioOutput *m_audioOutput =
nullptr;
102 QVideoSink *m_videoSink =
nullptr;
103 std::unique_ptr<QAudioSink> m_audioSink;
104 QPointer<QIODevice> m_audioIODevice;
105 qsizetype m_audioBufferSize = 0;
107 QMetaObject::Connection m_videoFrameConnection;
Combined button and popup list for selecting options.
#define qCWarning(category,...)
#define qCDebug(category,...)
#define Q_STATIC_LOGGING_CATEGORY(name,...)