fake audio fails

beta.r3js.org
-=yb4f310 2018-04-03 21:11:53 +02:00
parent cc7960459a
commit a03fe8f983
1 changed files with 7 additions and 7 deletions

View File

@ -982,13 +982,13 @@ GameLib.System.Input.prototype.onTouchStart = function(event) {
if (this.playAudio) { if (this.playAudio) {
var audio = new Audio('http://live-api-v1.cybafelo.com/uploads/cybafelo/root/root/test/dummy.mp3'); // var audio = new Audio('http://live-api-v1.cybafelo.com/uploads/cybafelo/root/root/test/dummy.mp3');
//
try { // try {
audio.play(); // audio.play();
} catch (error) { // } catch (error) {
console.log('could not load dummy audio'); // console.log('could not load dummy audio');
} // }
this.playAudio = false; this.playAudio = false;
} }