X-Git-Url: http://git.tdb.fi/?p=xinema.git;a=blobdiff_plain;f=remote%2Fqml%2Fpages%2FPlaybackPage.qml;h=abbd0d84ea95814d6b2eebb1d6a47aafe7731cd2;hp=24817c697e6a4a5cef40bb96d3cf3e11a9bbe9ff;hb=5ddfcd433a000be3c32e7fc6ade4de9e0673de9e;hpb=a413751afbf959ca52a0216514ed4b90b1028912 diff --git a/remote/qml/pages/PlaybackPage.qml b/remote/qml/pages/PlaybackPage.qml index 24817c6..abbd0d8 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,27 @@ Page 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 @@ -80,6 +102,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 @@ -91,5 +129,7 @@ Page if(!slider.down) slider.value = position; } + onCurrentAudioChannelChanged: audioSelect.currentChannel = streamControl.currentAudioChannel; + onCurrentSpuChannelChanged: spuSelect.currentChannel = streamControl.currentSpuChannel; } }