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
qqnxmediaintegration.cpp
Go to the documentation of this file.
1// Copyright (C) 2021 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
13#include <QtMultimedia/private/qplatformmediaplugin_p.h>
14
16
18{
19 Q_OBJECT
20 Q_PLUGIN_METADATA(IID QPlatformMediaPlugin_iid FILE "qnx.json")
21
22public:
26
28 {
29 if (name == u"qnx")
30 return new QQnxMediaIntegration;
31 return nullptr;
32 }
33};
34
36
41
43{
44 return new QQnxVideoDevices(this);
45}
46
47q23::expected<QPlatformVideoSink *, QString> QQnxMediaIntegration::createVideoSink(QVideoSink *sink)
48{
49 return new QQnxVideoSink(sink);
50}
51
53{
54 return new QQnxMediaPlayer(parent);
55}
56
61
63{
64 return new QQnxMediaRecorder(parent);
65}
66
68{
69 return new QQnxPlatformCamera(parent);
70}
71
73{
74 return new QQnxImageCapture(parent);
75}
76
77QT_END_NAMESPACE
78
79#include "qqnxmediaintegration.moc"
QPlatformMediaFormatInfo * createFormatInfo() override
q23::expected< QPlatformMediaCaptureSession *, QString > createCaptureSession() override
q23::expected< QPlatformCamera *, QString > createCamera(QCamera *parent) override
q23::expected< QPlatformMediaRecorder *, QString > createRecorder(QMediaRecorder *parent) override
q23::expected< QPlatformMediaPlayer *, QString > createPlayer(QMediaPlayer *parent) override
q23::expected< QPlatformImageCapture *, QString > createImageCapture(QImageCapture *parent) override
QPlatformVideoDevices * createVideoDevices() override