2 import Sailfish.Silica 1.0
3 import fi.mikkosoft.xinema 0.1
12 spacing: Theme.paddingLarge
16 title: qsTr("Playback")
21 text: streamControl.title
26 margins: Theme.horizontalPageMargin
28 horizontalAlignment: Text.AlignHCenter
29 wrapMode: Text.WordWrap
38 maximumValue: Math.max(streamControl.duration, 1.0)
41 var secs = Math.round(value);
42 var mins = Math.floor(secs/60);
44 var hours = Math.floor(mins/60);
65 streamControl.position = value;
72 anchors.horizontalCenter: parent.horizontalCenter
73 property string action: (streamControl.playbackState==StreamControl.Playing ? "pause" : "play")
74 icon.source: "image://theme/icon-l-"+action
78 streamControl.playbackState = StreamControl.Playing;
79 else if(action=="pause")
80 streamControl.playbackState = StreamControl.Paused;
88 channels: streamControl.audioChannels
89 onCurrentChannelChanged: streamControl.currentAudioChannel = currentChannel
96 channels: streamControl.spuChannels
97 onCurrentChannelChanged: streamControl.currentSpuChannel = currentChannel
104 control: xinemaControl
108 slider.value = position;
110 onCurrentAudioChannelChanged: audioSelect.currentChannel = streamControl.currentAudioChannel;
111 onCurrentSpuChannelChanged: spuSelect.currentChannel = streamControl.currentSpuChannel;