]> git.tdb.fi Git - xinema.git/blobdiff - remote/qml/pages/PlaybackPage.qml
Add channel selection controls in the remote
[xinema.git] / remote / qml / pages / PlaybackPage.qml
index 24817c697e6a4a5cef40bb96d3cf3e11a9bbe9ff..7bf7cc9069ab1f923659b6036070229a50ec83db 100644 (file)
@@ -80,6 +80,22 @@ Page
                                        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
+               }
        }
 
        StreamControl
@@ -91,5 +107,7 @@ Page
                        if(!slider.down)
                                slider.value = position;
                }
+               onCurrentAudioChannelChanged: audioSelect.currentChannel = streamControl.currentAudioChannel;
+               onCurrentSpuChannelChanged: spuSelect.currentChannel = streamControl.currentSpuChannel;
        }
 }