summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-05-23 01:38:53 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-05-23 01:40:53 -0700
commit3c6e577749128d007cd7a86b18e3b92515062e04 (patch)
treea55566c09f12db3fe31ea3cfbc47f6a3b98b38ef
parentce53a6e11cf307caed3733d183090719fc554ed0 (diff)
mediaplayer: qml: pause agl-service-mediaplayer on A2DP stream
When A2DP/AVRCP profiles are connected pause agl-service-mediaplayer playback. Change-Id: Ic9a2832834e89b65559161d9f391cf98df7119b1 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--app/MediaPlayer.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml
index 4a2a061..a0a1455 100644
--- a/app/MediaPlayer.qml
+++ b/app/MediaPlayer.qml
@@ -104,6 +104,9 @@ ApplicationWindow {
if (data.Connected == "False")
return
+ if (!bluetooth.av_connected && data.AVPConnected == "True")
+ mediaplayer.pause()
+
bluetooth.connected = data.Connected == "True"
bluetooth.av_connected = data.AVPConnected == "True"
bluetooth.deviceAddress = data.Address