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'])
nextSoundAt = now + 1000; nextSoundAt = now + 1000;
prevSoundVolume = volume; prevSoundVolume = volume;
var filename = 'img/sound_a.mp3'; 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" />' + '<source src="' + filename + '" type="audio/mpeg" />' +
'<embed hidden="true" autostart="true" loop="false" volume="' + (volume * 100) +'" src="' + filename +'" />' + '<embed hidden="true" autostart="true" loop="false" volume="' + (volume * 100) +'" src="' + filename +'" />' +
'</audio>'); '</audio>');

Loading…
Cancel
Save