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
qqnxmediarecorder_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#ifndef QQNXMEDIARECORDER_H
4#define QQNXMEDIARECORDER_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
18
19#include <private/qplatformmediarecorder_p.h>
20
22
24
26{
27public:
28 explicit QQnxMediaRecorder(QMediaRecorder *parent);
29
30 bool isLocationWritable(const QUrl &location) const override;
31
32 void record(QMediaEncoderSettings &settings) override;
33 void stop() override;
34
36
37private:
38 bool hasCamera() const;
39
40 void startAudioRecording(QMediaEncoderSettings &settings);
41 void startVideoRecording(QMediaEncoderSettings &settings);
42 void stopVideoRecording();
43
44 QQnxAudioRecorder m_audioRecorder;
45
46 QQnxMediaCaptureSession *m_session = nullptr;
47};
48
49QT_END_NAMESPACE
50
51#endif
void setCaptureSession(QQnxMediaCaptureSession *session)
void setMediaRecorder(QPlatformMediaRecorder *mediaRecorder) override
void setAudioOutput(QPlatformAudioOutput *output) override
void setCamera(QPlatformCamera *camera) override
QPlatformCamera * camera() override
void setAudioInput(QPlatformAudioInput *input) override
QPlatformMediaRecorder * mediaRecorder() override
void setImageCapture(QPlatformImageCapture *imageCapture) override
QPlatformImageCapture * imageCapture() override
QQnxAudioInput * audioInput() const
QQnxVideoSink * videoSink() const
bool isLocationWritable(const QUrl &location) const override
QQnxMediaRecorder(QMediaRecorder *parent)
void record(QMediaEncoderSettings &settings) override
void setCaptureSession(QQnxMediaCaptureSession *session)