diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-08-27 19:24:04 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-08-27 19:24:04 -0400 |
| commit | 81efda64b9ca4dbe3b1d04acbdc6e29e5ca0a563 (patch) | |
| tree | 7c0608dfdee0bcddc86547b5f08df148bda68c17 /www/js/EventServer.js | |
| parent | 9c102c42405f7d6a8f6732dd2c26ef1b78067916 (diff) | |
#314 - lets make sure in-app sound also honors sounOnPush
Former-commit-id: ae47edb59eb12458575516d82d9843a0d01708ba
Diffstat (limited to 'www/js/EventServer.js')
| -rw-r--r-- | www/js/EventServer.js | 6 |
1 files changed, 4 insertions, 2 deletions
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); |
