File indexing completed on 2024-11-17 05:01:16

0001 /*
0002     SPDX-FileCopyrightText: 2022 Thiago Sueto <herzenschein@gmail.com>
0003     SPDX-FileCopyrightText: 2022 Méven Car <meven@kde.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #include "componentchooservideoplayer.h"
0009 
0010 ComponentChooserVideoPlayer::ComponentChooserVideoPlayer(QObject *parent)
0011     : ComponentChooser(parent,
0012                        QStringLiteral("video/mp4"),
0013                        QStringLiteral("Video"),
0014                        QStringLiteral("org.kde.haruna.desktop"),
0015                        i18n("Select default video player"))
0016 {
0017 }
0018 
0019 static const QStringList videoMimetypes{"video/3gp",      "video/3gpp",         "video/3gpp2",
0020                                         "video/avi",      "video/divx",         "video/dv",
0021                                         "video/fli",      "video/flv",          "video/mp2t",
0022                                         "video/mp4",      "video/mp4v-es",      "video/mpeg",
0023                                         "video/msvideo",  "video/ogg",          "video/quicktime",
0024                                         "video/vnd.divx", "video/vnd.mpegurl",  "video/vnd.rn-realvideo",
0025                                         "video/webm",     "video/x-avi",        "video/x-flv",
0026                                         "video/x-m4v",    "video/x-matroska",   "video/x-mpeg2",
0027                                         "video/x-ms-asf", "video/x-msvideo",    "video/x-ms-wmv",
0028                                         "video/x-ms-wmx", "video/x-ogm",        "video/x-ogm+ogg",
0029                                         "video/x-theora", "video/x-theora+ogg", "application/x-matroska"};
0030 
0031 QStringList ComponentChooserVideoPlayer::mimeTypes() const
0032 {
0033     return videoMimetypes;
0034 }