Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwasmmediacapturesession_p.h
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
4#ifndef QWASMMEDIACAPTURESESSION_H
5#define QWASMMEDIACAPTURESESSION_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qwasmimagecapture_p.h"
19
20#include <private/qplatformmediacapture_p.h>
21#include <private/qplatformmediaintegration_p.h>
23#include <QScopedPointer>
24#include <QtCore/qloggingcategory.h>
25
27
28Q_DECLARE_LOGGING_CATEGORY(qWasmMediaCaptureSession)
29
30class QAudioInput;
31class QWasmCamera;
32
34{
35public:
36 explicit QWasmMediaCaptureSession();
38
39 QPlatformCamera *camera() override;
40 void setCamera(QPlatformCamera *camera) override;
41
44
47
49 QPlatformAudioInput * audioInput() const { return m_audioInput; }
50 void setVideoPreview(QVideoSink *sink) override;
52
53 bool hasAudio();
54 QVideoSink *videoSink() { return m_wasmSink; }
55
56private:
57 QWasmMediaRecorder *m_mediaRecorder = nullptr;
58
59 QScopedPointer <QWasmCamera> m_camera;
60
61 QWasmImageCapture *m_imageCapture = nullptr;
62
63 QPlatformAudioInput *m_audioInput = nullptr;
64 QPlatformAudioOutput *m_audioOutput = nullptr;
65 bool m_needsAudio = false;
66 QVideoSink *m_wasmSink = nullptr;
67};
68
70
71#endif // QWASMMEDIACAPTURESESSION_H
\qmltype AudioInput \instantiates QAudioInput
Definition qaudioinput.h:19
The QVideoSink class represents a generic sink for video data.
Definition qvideosink.h:22
void setMediaRecorder(QPlatformMediaRecorder *recorder) override
void setAudioInput(QPlatformAudioInput *input) override
void setAudioOutput(QPlatformAudioOutput *output) override
QPlatformImageCapture * imageCapture() override
QPlatformMediaRecorder * mediaRecorder() override
void setImageCapture(QPlatformImageCapture *imageCapture) override
void setCamera(QPlatformCamera *camera) override
~QWasmMediaCaptureSession() override
void setVideoPreview(QVideoSink *sink) override
QPlatformCamera * camera() override
QPlatformAudioInput * audioInput() const
QMediaRecorder * recorder
Definition camera.cpp:20
Combined button and popup list for selecting options.
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLsizei GLenum GLboolean sink
GLenum GLenum GLenum input
QT_BEGIN_NAMESPACE typedef uchar * output