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
qgstreamerplugin.cpp
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
#
include
<
QtMultimedia
/
private
/
qplatformmediaplugin_p
.
h
>
5
6
#
include
<
qgstreamerintegration_p
.
h
>
7
8
QT_BEGIN_NAMESPACE
9
10
class
QGstreamerMediaPlugin
:
public
QPlatformMediaPlugin
11
{
12
Q_OBJECT
13
Q_PLUGIN_METADATA(IID QPlatformMediaPlugin_iid FILE
"gstreamer.json"
)
14
15
public
:
16
QGstreamerMediaPlugin
() =
default
;
17
18
QPlatformMediaIntegration
*
create
(
const
QString &name)
override
19
{
20
if
(name == u"gstreamer")
21
return
new
QGstreamerIntegration
;
22
return
nullptr
;
23
}
24
};
25
26
QT_END_NAMESPACE
27
28
#
include
"qgstreamerplugin.moc"
QGstreamerIntegration
Definition
qgstreamerintegration_p.h:44
QGstreamerMediaPlugin
Definition
qgstreamerplugin.cpp:11
QGstreamerMediaPlugin::create
QPlatformMediaIntegration * create(const QString &name) override
Definition
qgstreamerplugin.cpp:18
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtmultimedia
src
plugins
multimedia
gstreamer
qgstreamerplugin.cpp
Generated on
for Qt by
1.14.0