summaryrefslogtreecommitdiffstats
path: root/app/MediaPlayer.qml
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-01-03 01:52:28 -0500
committerScott Murray <scott.murray@konsulko.com>2019-01-03 06:50:15 +0000
commitc0e3cb70d4c9ddd70ce9a6a74152820293b227d9 (patch)
tree7f0a3ed8773c8babbad28cbc9c7ac2d7b6b9dbd9 /app/MediaPlayer.qml
parent91bbf6d2af85e1a440a889c29ebd8e1c34b17b64 (diff)
Having the mediaplayer application pause the radio was requested as a demo behavior improvement. Use the new radio binding support in libqtappfw to do so. Change-Id: I6b2aa6c2c03a2485dfb05406ec450c126995440c Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'app/MediaPlayer.qml')
-rw-r--r--app/MediaPlayer.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml
index ec7b4e0..c859509 100644
--- a/app/MediaPlayer.qml
+++ b/app/MediaPlayer.qml
@@ -195,6 +195,7 @@ ApplicationWindow {
id: previous
offImage: './images/AGL_MediaPlayer_BackArrow.svg'
onClicked: {
+ radio.stop()
mediaplayer.previous()
}
}
@@ -216,7 +217,10 @@ ApplicationWindow {
PropertyChanges {
target: play
offImage: './images/AGL_MediaPlayer_Player_Play.svg'
- onClicked: mediaplayer.play()
+ onClicked: {
+ radio.stop()
+ mediaplayer.play()
+ }
}
}
]
@@ -225,6 +229,7 @@ ApplicationWindow {
id: forward
offImage: './images/AGL_MediaPlayer_ForwardArrow.svg'
onClicked: {
+ radio.stop()
mediaplayer.next()
}
}
@@ -294,6 +299,7 @@ ApplicationWindow {
//}
}
onClicked: {
+ radio.stop()
mediaplayer.picktrack(playlistview.model[index].index)
}
}