(window.webpackJsonp=window.webpackJsonp||[]).push([[296],{"732":function(e,n,o){"use strict";o.r(n),o.d(n,"taro_audio_core",(function(){return r}));var i=o(120),r=function(){function t(e){Object(i.g)(this,e),this.onError=Object(i.c)(this,"error",7),this.onPlay=Object(i.c)(this,"play",7),this.onPause=Object(i.c)(this,"pause",7),this.onTimeUpdate=Object(i.c)(this,"timeupdate",7),this.onEnded=Object(i.c)(this,"ended",7),this.controls=!0,this.autoplay=!1,this.loop=!1,this.muted=!1}return t.prototype.bindevent=function(){var e=this;this.audio.addEventListener("timeupdate",(function(n){e.onTimeUpdate.emit({"duration":n.srcElement.duration,"currentTime":n.srcElement.duration})})),this.audio.addEventListener("ended",(function(){e.onEnded.emit()})),this.audio.addEventListener("play",(function(){e.onPlay.emit()})),this.audio.addEventListener("pause",(function(n){e.onPause.emit(n)})),this.audio.addEventListener("error",(function(n){var o;e.onError.emit({"errMsg":null===(o=n.srcElement.error)||void 0===o?void 0:o.code})}))},t.prototype.componentDidLoad=function(){this.bindevent()},t.prototype.render=function(){var e=this,n=this,o=n.src,r=n.controls,d=n.autoplay,s=n.loop,u=n.muted;return Object(i.e)("audio",{"src":o,"controls":r,"autoplay":d,"loop":s,"muted":u,"ref":function(n){e.audio=n}})},t}();r.style="audio{max-width:100%;outline:none}"}}]);