diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-05-23 01:38:53 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-05-23 08:46:30 +0000 |
commit | a8ffd11ac30a9c7cba729dc2c90005470c48c2a4 (patch) | |
tree | b0c95c72d0127787057bc5505751572569ae59e8 | |
parent | 2f046fbfad4193474332f716a1507b0da55f018a (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.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml index 6f8d0db..dc5cdce 100644 --- a/app/MediaPlayer.qml +++ b/app/MediaPlayer.qml @@ -105,6 +105,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 |