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
qandroidvideodevices_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 QANDROIDVIDEODEVICES_H
5#define QANDROIDVIDEODEVICES_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 <QJniObject>
20
21#include <QtMultimedia/private/qplatformvideodevices_p.h>
22
23QT_BEGIN_NAMESPACE
24
25class QAndroidVideoDevices : public QPlatformVideoDevices
26{
27 Q_OBJECT
28public:
29 QAndroidVideoDevices(QPlatformMediaIntegration *integration);
30 ~QAndroidVideoDevices() override;
31
32 using QPlatformVideoDevices::onVideoInputsChanged;
33
34protected:
35 QList<QCameraDevice> findVideoInputs() const override;
36
37private:
38 QJniObject m_javaCameraAvailabilityListener;
39
40 static void registerNativeMethods();
41};
42
43QT_END_NAMESPACE
44
45#endif // QANDROIDVIDEODEVICES_H