X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=remote%2Fqml%2Fpages%2FPlaybackPage.qml;h=7bf7cc9069ab1f923659b6036070229a50ec83db;hb=857fbdc12041b7f01f45d4dcf2208f9dccf29294;hp=345960a6c80de994d15c06dc017a865a895804fe;hpb=4dd3070fa50882b7ec7a26f7d0994c064c6b29d6;p=xinema.git diff --git a/remote/qml/pages/PlaybackPage.qml b/remote/qml/pages/PlaybackPage.qml index 345960a..7bf7cc9 100644 --- a/remote/qml/pages/PlaybackPage.qml +++ b/remote/qml/pages/PlaybackPage.qml @@ -19,12 +19,21 @@ Page Label { text: streamControl.title + anchors + { + left: parent.left + right: parent.right + margins: Theme.horizontalPageMargin + } + horizontalAlignment: Text.AlignHCenter + wrapMode: Text.WordWrap } Slider { id: slider width: parent.width + minimumValue: 0.0 maximumValue: Math.max(streamControl.duration, 1.0) valueText: @@ -71,6 +80,22 @@ Page streamControl.playbackState = StreamControl.Paused; } } + + ChannelSelect + { + id: audioSelect + label: "Audio" + channels: streamControl.audioChannels + onCurrentChannelChanged: streamControl.currentAudioChannel = currentChannel + } + + ChannelSelect + { + id: spuSelect + label: "Subtitles" + channels: streamControl.spuChannels + onCurrentChannelChanged: streamControl.currentSpuChannel = currentChannel + } } StreamControl @@ -82,5 +107,7 @@ Page if(!slider.down) slider.value = position; } + onCurrentAudioChannelChanged: audioSelect.currentChannel = streamControl.currentAudioChannel; + onCurrentSpuChannelChanged: spuSelect.currentChannel = streamControl.currentSpuChannel; } }