X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=remote%2Fqml%2Fpages%2FPlaybackPage.qml;h=9bca145752dc8d31dc99a1d66a4afcc5b9d26061;hb=1b304d9070bff769e51bf2e3e4727121244e96a5;hp=24817c697e6a4a5cef40bb96d3cf3e11a9bbe9ff;hpb=a413751afbf959ca52a0216514ed4b90b1028912;p=xinema.git diff --git a/remote/qml/pages/PlaybackPage.qml b/remote/qml/pages/PlaybackPage.qml index 24817c6..9bca145 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 { @@ -29,6 +30,32 @@ Page wrapMode: Text.WordWrap } + Column + { + width: parent.width + spacing: Theme.paddingSmall + + StreamInfo + { + visible: streamControl.videoSize.width && streamControl.videoSize.height + property string size: streamControl.videoSize.width+"×"+streamControl.videoSize.height + property string fps: " @ "+streamControl.framerate.toFixed(2)+"fps" + text: (streamControl.framerate ? size+fps : size) + } + + StreamInfo + { + visible: streamControl.videoCodec + text: streamControl.videoCodec + } + + StreamInfo + { + visible: streamControl.audioCodec + text: streamControl.audioCodec + } + } + Slider { id: slider @@ -82,6 +109,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 @@ -91,5 +142,7 @@ Page if(!slider.down) slider.value = position; } + onCurrentAudioChannelChanged: audioSelect.currentChannel = streamControl.currentAudioChannel; + onCurrentSpuChannelChanged: spuSelect.currentChannel = streamControl.currentSpuChannel; } }