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
qandroidmediaencoder_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QANDROIDMEDIAENCODER_H
5#define QANDROIDMEDIAENCODER_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 <private/qplatformmediarecorder_p.h>
19#include <private/qplatformmediacapture_p.h>
20
22
25
27{
28public:
29 explicit QAndroidMediaEncoder(QMediaRecorder *parent);
30
31 bool isLocationWritable(const QUrl &location) const override;
33 qint64 duration() const override;
34
35 void setCaptureSession(QPlatformMediaCaptureSession *session);
36
37 void setOutputLocation(const QUrl &location) override;
38 void record(QMediaEncoderSettings &settings) override;
39 void stop() override;
40
41private:
43
44 QAndroidCaptureSession *m_session = nullptr;
45 QAndroidMediaCaptureSession *m_service = nullptr;
46};
47
48QT_END_NAMESPACE
49
50#endif // QANDROIDMEDIAENCODER_H
void stateChanged(QMediaRecorder::RecorderState state)
QList< QSize > supportedResolutions() const
QMediaEncoderSettings encoderSettings()
void start(QMediaEncoderSettings &settings, const QUrl &outputLocation)
void actualLocationChanged(const QUrl &location)
void setAudioInput(QPlatformAudioInput *input)
void setAudioOutput(QPlatformAudioOutput *output)
void durationChanged(qint64 position)
QList< qreal > supportedFrameRates() const
void updateError(int error, const QString &errorString)
void setMediaEncoder(QAndroidMediaEncoder *encoder)
void setCameraSession(QAndroidCameraSession *cameraSession=0)
void record(QMediaEncoderSettings &settings) override
qint64 duration() const override
QAndroidMediaEncoder(QMediaRecorder *parent)
void setCaptureSession(QPlatformMediaCaptureSession *session)