mignified assets for prod
This commit is contained in:
@@ -646,7 +646,7 @@
|
||||
this.fid;
|
||||
this.audio = new Audio();
|
||||
// audio events
|
||||
this.audio_events = ["loadedmetadata","canplay","playing","pause","timeupdate","ended"];
|
||||
this.audio_events = ["loadedmetadata","canplay","playing","pause","timeupdate","ended","error"];
|
||||
|
||||
// UI dom objects
|
||||
this.$container = $('<div id="audio-player">');
|
||||
@@ -769,7 +769,7 @@
|
||||
},
|
||||
// audio functions
|
||||
setSRC(url){
|
||||
// console.log('AudioPlayer setSRC : url', url);
|
||||
console.log('AudioPlayer setSRC : url', url);
|
||||
this.audio.src = url;
|
||||
},
|
||||
onLoadedmetadata(){
|
||||
@@ -794,6 +794,9 @@
|
||||
onCanplay(){
|
||||
this.play();
|
||||
},
|
||||
onError(){
|
||||
console.warn("Audio Error " + this.audio.error.code + "; details: " + this.audio.error.message);
|
||||
},
|
||||
play(){
|
||||
this.clearTimeOutToHide();
|
||||
this.audio.play();
|
||||
|
||||
Reference in New Issue
Block a user