X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=remote%2Fqml%2Fpages%2FPlaybackPage.qml;h=daa48dfd31482d0276e0e6434d7a3119e7cbb163;hb=da720f9da0a4d8f1c73a74e1d40726885f3d7f3e;hp=345960a6c80de994d15c06dc017a865a895804fe;hpb=4dd3070fa50882b7ec7a26f7d0994c064c6b29d6;p=xinema.git diff --git a/remote/qml/pages/PlaybackPage.qml b/remote/qml/pages/PlaybackPage.qml index 345960a..daa48df 100644 --- a/remote/qml/pages/PlaybackPage.qml +++ b/remote/qml/pages/PlaybackPage.qml @@ -1,6 +1,7 @@ import QtQuick 2.0 import Sailfish.Silica 1.0 import fi.mikkosoft.xinema 0.1 +import "../components" Page { @@ -19,12 +20,42 @@ Page Label { text: streamControl.title + anchors + { + left: parent.left + right: parent.right + margins: Theme.horizontalPageMargin + } + horizontalAlignment: Text.AlignHCenter + wrapMode: Text.WordWrap + } + + Column + { + width: parent.width + spacing: Theme.paddingSmall + + StreamInfo + { + text: streamControl.videoSize.width+"×"+streamControl.videoSize.height+" @ "+streamControl.framerate.toFixed(2)+"fps" + } + + StreamInfo + { + text: streamControl.videoCodec + } + + StreamInfo + { + text: streamControl.audioCodec + } } Slider { id: slider width: parent.width + minimumValue: 0.0 maximumValue: Math.max(streamControl.duration, 1.0) valueText: @@ -73,6 +104,30 @@ Page } } + Column + { + width: parent.width + spacing: Theme.paddingLarge + anchors.bottom: page.bottom + anchors.bottomMargin: 2*Theme.paddingLarge + + 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 { id: streamControl @@ -82,5 +137,7 @@ Page if(!slider.down) slider.value = position; } + onCurrentAudioChannelChanged: audioSelect.currentChannel = streamControl.currentAudioChannel; + onCurrentSpuChannelChanged: spuSelect.currentChannel = streamControl.currentSpuChannel; } }