+
+ onDownChanged:
+ {
+ if(!down)
+ streamControl.position = value;
+ }
+ }
+
+ IconButton
+ {
+ id: playPauseButton
+ anchors.horizontalCenter: parent.horizontalCenter
+ property string action: (streamControl.playbackState==StreamControl.Playing ? "pause" : "play")
+ icon.source: "image://theme/icon-l-"+action
+ onPressed:
+ {
+ if(action=="play")
+ streamControl.playbackState = StreamControl.Playing;
+ else if(action=="pause")
+ streamControl.playbackState = StreamControl.Paused;
+ }
+ }
+
+ ChannelSelect
+ {
+ id: audioSelect
+ label: "Audio"
+ channels: streamControl.audioChannels
+ onCurrentChannelChanged: streamControl.currentAudioChannel = currentChannel
+ }
+
+ ChannelSelect
+ {
+ id: spuSelect
+ label: "Subtitles"
+ channels: streamControl.spuChannels
+ onCurrentChannelChanged: streamControl.currentSpuChannel = currentChannel