2 import Sailfish.Silica 1.0
3 import fi.mikkosoft.xinema 0.1
13 spacing: Theme.paddingLarge
17 title: qsTr("Playback")
22 text: streamControl.title
27 margins: Theme.horizontalPageMargin
29 horizontalAlignment: Text.AlignHCenter
30 wrapMode: Text.WordWrap
36 spacing: Theme.paddingSmall
40 text: streamControl.videoSize.width+"×"+streamControl.videoSize.height+" @ "+streamControl.framerate.toFixed(2)+"fps"
45 text: streamControl.videoCodec
50 text: streamControl.audioCodec
60 maximumValue: Math.max(streamControl.duration, 1.0)
63 var secs = Math.round(value);
64 var mins = Math.floor(secs/60);
66 var hours = Math.floor(mins/60);
87 streamControl.position = value;
94 anchors.horizontalCenter: parent.horizontalCenter
95 property string action: (streamControl.playbackState==StreamControl.Playing ? "pause" : "play")
96 icon.source: "image://theme/icon-l-"+action
100 streamControl.playbackState = StreamControl.Playing;
101 else if(action=="pause")
102 streamControl.playbackState = StreamControl.Paused;
110 channels: streamControl.audioChannels
111 onCurrentChannelChanged: streamControl.currentAudioChannel = currentChannel
118 channels: streamControl.spuChannels
119 onCurrentChannelChanged: streamControl.currentSpuChannel = currentChannel
126 control: xinemaControl
130 slider.value = position;
132 onCurrentAudioChannelChanged: audioSelect.currentChannel = streamControl.currentAudioChannel;
133 onCurrentSpuChannelChanged: spuSelect.currentChannel = streamControl.currentSpuChannel;