module.exports=[50437,(a,b,c)=>{let d,e,f;var g=Object.create,h=Object.defineProperty,i=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,m=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let e of j(b))l.call(a,e)||e===c||h(a,e,{get:()=>b[e],enumerable:!(d=i(b,e))||d.enumerable});return a},n=(a,b,c)=>{let d;return(d="symbol"!=typeof b?b+"":b)in a?h(a,d,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[d]=c,c},o={},p={default:()=>u};for(var q in p)h(o,q,{get:p[q],enumerable:!0});b.exports=m(h({},"__esModule",{value:!0}),o);var r=(f=null!=(d=a.r(572131))?g(k(d)):{},m(!e&&d&&d.__esModule?f:h(f,"default",{value:d,enumerable:!0}),d)),s=a.r(187287),t=a.r(441795);class u extends r.Component{constructor(){super(...arguments),n(this,"callPlayer",s.callPlayer),n(this,"duration",null),n(this,"currentTime",null),n(this,"secondsLoaded",null),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")}),n(this,"ref",a=>{this.iframe=a})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(a){(0,s.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then(a=>{this.iframe&&(this.player=new a.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:a,seconds:b})=>{this.duration=a,this.currentTime=b}),this.player.on("buffered",({percent:a})=>{this.duration&&(this.secondsLoaded=this.duration*a)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(a,b=!0){this.callPlayer("setCurrentTime",a),b||this.pause()}setVolume(a){this.callPlayer("setVolume",100*a)}setLoop(a){this.callPlayer("setLoop",a)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){let a=this.props.url.match(t.MATCH_URL_STREAMABLE)[1];return r.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${a}`,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;"})}}n(u,"displayName","Streamable"),n(u,"canPlay",t.canPlay.streamable)}];

//# sourceMappingURL=node_modules_react-player_lazy_players_Streamable_75791e5d.js.map