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
qwasmscreencapture_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 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 QWASMSCREENCAPTURE_H
5#define QWASMSCREENCAPTURE_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 <QObject>
19#include <private/qplatformsurfacecapture_p.h>
20#include <QScreenCapture>
21
22#include <QtCore/qloggingcategory.h>
24
26
27Q_DECLARE_LOGGING_CATEGORY(qWasmScreenCapture)
28
29class QWasmMediaCaptureSession;
30
32{
34public:
37
38 QVideoFrameFormat frameFormat() const override;
39 void setCaptureSession(QPlatformMediaCaptureSession *session) override;
40 void setVideoStream(emscripten::val stream);
41 void setVideoOutput(QWasmVideoOutput *output) ;
42
43protected:
44 bool setActiveInternal(bool) override;
45
46private:
47 QWasmMediaCaptureSession *m_captureSession = nullptr;
48 int m_lastId = 0;
49 QWasmVideoOutput *m_videoOutput = nullptr;
50 QScreenCapture *m_screenCapture = nullptr;
51};
52
53QT_END_NAMESPACE
54#endif // QWASMSCREENCAPTURE_H
void setActive(bool active) override
void setReadyForCapture(bool isReady)
void setMediaRecorder(QPlatformMediaRecorder *recorder) override
void setAudioInput(QPlatformAudioInput *input) override
void setScreenCapture(QPlatformSurfaceCapture *) override
QPlatformSurfaceCapture * screenCapture() override
void setAudioOutput(QPlatformAudioOutput *output) override
QPlatformImageCapture * imageCapture() override
QPlatformMediaRecorder * mediaRecorder() override
QPlatformSurfaceCapture * windowCapture() override
void setImageCapture(QPlatformImageCapture *imageCapture) override
void setWindowCapture(QPlatformSurfaceCapture *) override
void setCamera(QPlatformCamera *camera) override
~QWasmMediaCaptureSession() override
void setVideoPreview(QVideoSink *sink) override
QPlatformCamera * camera() override
void setVideoSource(std::string surfacetype)
QWasmMediaRecorder(QMediaRecorder *parent)
void setVideoOutput(QWasmVideoOutput *output)
void setCaptureSession(QPlatformMediaCaptureSession *session) override
QVideoFrameFormat frameFormat() const override
bool setActiveInternal(bool) override
void setVideoStream(emscripten::val stream)
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")