Browse Source

Added audio channel for notifications

Closes #1025
master
Igor Zhukov 9 years ago
parent
commit
18a8106c85
  1. 2
      app/js/services.js

2
app/js/services.js

@ -3680,7 +3680,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) @@ -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>');

Loading…
Cancel
Save