Added audio channel for notifications

Closes #1025
This commit is contained in:
Igor Zhukov 2016-02-08 17:31:19 +00:00
parent c8ef691eb0
commit 18a8106c85

View File

@ -3680,7 +3680,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
nextSoundAt = now + 1000;
prevSoundVolume = volume;
var filename = 'img/sound_a.mp3';
var obj = $('#notify_sound').html('<audio autoplay="autoplay">' +
var obj = $('#notify_sound').html('<audio autoplay="autoplay" mozaudiochannel="notification">' +
'<source src="' + filename + '" type="audio/mpeg" />' +
'<embed hidden="true" autostart="true" loop="false" volume="' + (volume * 100) +'" src="' + filename +'" />' +
'</audio>');