Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qohosintegration.cpp
Go to the documentation of this file.
1
// Copyright (C) 2026 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
#
include
"qohosintegration_p.h"
5
6
#
include
"qohosglobal_p.h"
7
#
include
<
QtMultimedia
/
private
/
qplatformvideosink_p
.
h
>
8
#
include
"qohosformatsinfo_p.h"
9
#
include
"mediacapture/qohoscamera_p.h"
10
#
include
"mediacapture/qohosimagecapture_p.h"
11
#
include
"mediacapture/qohosmediacapturesession_p.h"
12
#
include
"mediacapture/qohosmediarecorder_p.h"
13
#
include
"mediacapture/qohosvideodevices_p.h"
14
#
include
"mediaplayer/qohosmediaplayer_p.h"
15
16
#
include
<
private
/
qplatformmediaformatinfo_p
.
h
>
17
#
include
<
private
/
qplatformmediaplugin_p
.
h
>
18
19
#
include
<
QtCore
/
qloggingcategory
.
h
>
20
21
QT_BEGIN_NAMESPACE
22
23
Q_LOGGING_CATEGORY(qLcOhosMediaPlugin,
"qt.multimedia.ohos"
)
24
25
class
QOhosMediaPlugin :
public
QPlatformMediaPlugin
26
{
27
Q_OBJECT
28
Q_PLUGIN_METADATA(IID QPlatformMediaPlugin_iid FILE
"ohos.json"
)
29
30
public
:
31
QOhosMediaPlugin() : QPlatformMediaPlugin() { }
32
33
QPlatformMediaIntegration *create(
const
QString &name) override
34
{
35
if
(name == u"ohos")
36
return
new
QOhosIntegration;
37
return
nullptr
;
38
}
39
};
40
41
QOhosIntegration::QOhosIntegration() : QPlatformMediaIntegration(QLatin1String(
"ohos"
))
42
{
43
}
44
45
QOhosIntegration::~QOhosIntegration() =
default
;
46
47
QPlatformMediaFormatInfo *QOhosIntegration::createFormatInfo()
48
{
49
return
new
QOhosFormatsInfo;
50
}
51
52
q23::expected<QPlatformMediaPlayer *, QString>
53
QOhosIntegration::createPlayer(QMediaPlayer *player)
54
{
55
return
new
QOhosMediaPlayer
(player);
56
}
57
58
q23::expected<QPlatformCamera *, QString> QOhosIntegration::createCamera(QCamera *camera)
59
{
60
return
new
QOhosCamera
(camera);
61
}
62
63
q23::expected<QPlatformImageCapture *, QString>
64
QOhosIntegration::createImageCapture(QImageCapture *imageCapture)
65
{
66
return
new
QOhosImageCapture
(imageCapture);
67
}
68
69
q23::expected<QPlatformMediaRecorder *, QString>
70
QOhosIntegration::createRecorder(QMediaRecorder *recorder)
71
{
72
return
new
QOhosMediaRecorder
(recorder);
73
}
74
75
q23::expected<QPlatformMediaCaptureSession *, QString> QOhosIntegration::createCaptureSession()
76
{
77
return
new
QOhosMediaCaptureSession
;
78
}
79
80
QPlatformVideoDevices *QOhosIntegration::createVideoDevices()
81
{
82
return
new
QOhosVideoDevices(
this
);
83
}
84
85
QT_END_NAMESPACE
86
87
#
include
"qohosintegration.moc"
QOhosCamera
Definition
qohoscamera_p.h:28
QOhosImageCapture
Definition
qohosimagecapture_p.h:28
QOhosMediaCaptureSession
Definition
qohosmediacapturesession_p.h:30
QOhosMediaPlayer
Definition
qohosmediaplayer_p.h:39
QOhosMediaRecorder
Definition
qohosmediarecorder_p.h:42
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtmultimedia
src
plugins
multimedia
ohos
qohosintegration.cpp
Generated on
for Qt by
1.18.0