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
9
11{
12 Q_OBJECT
13 Q_PLUGIN_METADATA(IID QPlatformMediaPlugin_iid FILE "gstreamer.json")
14
15public:
17
18 QPlatformMediaIntegration* create(const QString &name) override
19 {
20 if (name == u"gstreamer")
21 return new QGstreamerIntegration;
22 return nullptr;
23 }
24};
25
26QT_END_NAMESPACE
27
28#include "qgstreamerplugin.moc"
QPlatformMediaIntegration * create(const QString &name) override