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
5#include "capture/qqnxmediacapturesession_p.h"
6#include "capture/qqnxmediarecorder_p.h"
9#include <QtMultimedia/private/qplatformvideosink_p.h>
10#include "mediaplayer/qqnxmediaplayer_p.h"
11#include "camera/qqnximagecapture_p.h"
12#include "camera/qqnxplatformcamera_p.h"
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
48{
49 return new QQnxMediaPlayer(parent);
50}
51
56
58{
59 return new QQnxMediaRecorder(parent);
60}
61
63{
64 return new QQnxPlatformCamera(parent);
65}
66
68{
69 return new QQnxImageCapture(parent);
70}
71
72QT_END_NAMESPACE
73
74#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
Combined button and popup list for selecting options.