Warning, /maui/clip/src/views/player/MPVPlayer.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.14
0002 import QtQuick.Controls 2.14
0003 import QtQuick.Layouts 1.3
0004
0005 import QtMultimedia 5.8
0006
0007 import org.mauikit.controls 1.3 as Maui
0008
0009 import mpv 1.0
0010
0011 MpvObject
0012 {
0013 id: control
0014 property alias url : control.source
0015 property alias video : control
0016
0017 readonly property bool playing : control.playbackState === MediaPlayer.PlayingState
0018 readonly property bool paused : control.playbackState === MediaPlayer.PausedState
0019 readonly property bool stopped : control.playbackState === MediaPlayer.StoppedState
0020
0021 autoPlay: true
0022 hardwareDecoding: settings.hardwareDecoding
0023 onEndOfFile: playNext()
0024
0025
0026 Maui.InfoDialog
0027 {
0028 id: _subtitlesDialog
0029 title: i18n("Subtitles")
0030
0031 Repeater
0032 {
0033 model: control.subtitleTracksModel
0034
0035 Maui.ListBrowserDelegate
0036 {
0037 Layout.fillWidth: true
0038 label1.text: model.text
0039 label2.text: model.language
0040 }
0041 }
0042 }
0043
0044 Maui.InfoDialog
0045 {
0046 id: _audioTracksDialog
0047 title: i18n("Audio Tracks")
0048
0049 Repeater
0050 {
0051 model: control.audioTracksModel
0052
0053 Maui.ListBrowserDelegate
0054 {
0055 Layout.fillWidth: true
0056 label1.text: model.text
0057 label2.text: model.language
0058 }
0059 }
0060 }
0061
0062 }
0063
0064
0065
0066