import QtQuick 2.0
import Sailfish.Silica 1.0
import fi.mikkosoft.xinema 0.1
+import "../components"
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
}
}
+ 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
if(!slider.down)
slider.value = position;
}
+ onCurrentAudioChannelChanged: audioSelect.currentChannel = streamControl.currentAudioChannel;
+ onCurrentSpuChannelChanged: spuSelect.currentChannel = streamControl.currentSpuChannel;
}
}