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
29 maximumValue: Math.max(streamControl.duration, 1.0)
32 var secs = Math.round(value);
33 var mins = Math.floor(secs/60);
35 var hours = Math.floor(mins/60);
56 streamControl.position = value;
63 anchors.horizontalCenter: parent.horizontalCenter
64 property string action: (streamControl.playbackState==StreamControl.Playing ? "pause" : "play")
65 icon.source: "image://theme/icon-l-"+action
69 streamControl.playbackState = StreamControl.Playing;
70 else if(action=="pause")
71 streamControl.playbackState = StreamControl.Paused;
79 control: xinemaControl
83 slider.value = position;