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
39 maximumValue: Math.max(streamControl.duration, 1.0)
42 var secs = Math.round(value);
43 var mins = Math.floor(secs/60);
45 var hours = Math.floor(mins/60);
66 streamControl.position = value;
73 anchors.horizontalCenter: parent.horizontalCenter
74 property string action: (streamControl.playbackState==StreamControl.Playing ? "pause" : "play")
75 icon.source: "image://theme/icon-l-"+action
79 streamControl.playbackState = StreamControl.Playing;
80 else if(action=="pause")
81 streamControl.playbackState = StreamControl.Paused;
89 channels: streamControl.audioChannels
90 onCurrentChannelChanged: streamControl.currentAudioChannel = currentChannel
97 channels: streamControl.spuChannels
98 onCurrentChannelChanged: streamControl.currentSpuChannel = currentChannel
105 control: xinemaControl
109 slider.value = position;
111 onCurrentAudioChannelChanged: audioSelect.currentChannel = streamControl.currentAudioChannel;
112 onCurrentSpuChannelChanged: spuSelect.currentChannel = streamControl.currentSpuChannel;