From 81efda64b9ca4dbe3b1d04acbdc6e29e5ca0a563 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sat, 27 Aug 2016 19:24:04 -0400 Subject: #314 - lets make sure in-app sound also honors sounOnPush Former-commit-id: ae47edb59eb12458575516d82d9843a0d01708ba --- www/js/EventServer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'www/js/EventServer.js') diff --git a/www/js/EventServer.js b/www/js/EventServer.js index 7504a3af..391c4485 100644 --- a/www/js/EventServer.js +++ b/www/js/EventServer.js @@ -459,8 +459,10 @@ angular.module('zmApp.controllers') // this flag honors the HW mute button. Go figure // http://ilee.co.uk/phonegap-plays-sound-on-mute/ - media.play({ playAudioWhenScreenIsLocked : false }); - + if (ld.soundOnPush) + { + media.play({ playAudioWhenScreenIsLocked : false }); + } var str = data.message; // console.log ("***STRING: " + str + " " +str.status); -- cgit v1.2.3