(this.webpackJsonpvertical=this.webpackJsonpvertical||[]).push([[97],{1695:function(e,n,t){var r,a=t(1099),o=t(1100),u=t(1097),l=t(1101),i=t(1102),c=t(1094),s=Object.create,p=Object.defineProperty,y=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,d=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,v=function(e,n,t,r){if(n&&"object"===typeof n||"function"===typeof n){var a,o=c(f(n));try{var u=function(){var o=a.value;m.call(e,o)||o===t||p(e,o,{get:function(){return n[o]},enumerable:!(r=y(n,o))||r.enumerable})};for(o.s();!(a=o.n()).done;)u()}catch(l){o.e(l)}finally{o.f()}}return e},h=function(e,n,t){return function(e,n,t){n in e?p(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t}(e,"symbol"!==typeof n?n+"":n,t),t},P={};!function(e,n){for(var t in n)p(e,t,{get:n[t],enumerable:!0})}(P,{default:function(){return w}}),e.exports=(r=P,v(p({},"__esModule",{value:!0}),r));var b=function(e,n,t){return t=null!=e?s(d(e)):{},v(!n&&e&&e.__esModule?t:p(t,"default",{value:e,enumerable:!0}),e)}(t(2)),k=t(1098),g=t(1109),w=function(e){"use strict";i(t,e);var n=l(t);function t(){var e;return a(this,t),e=n.apply(this,arguments),h(u(e),"callPlayer",k.callPlayer),h(u(e),"duration",null),h(u(e),"currentTime",null),h(u(e),"secondsLoaded",null),h(u(e),"mute",(function(){e.callPlayer("mute")})),h(u(e),"unmute",(function(){e.callPlayer("unmute")})),h(u(e),"ref",(function(n){e.iframe=n})),e}return o(t,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var n=this;(0,k.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then((function(e){n.iframe&&(n.player=new e.Player(n.iframe),n.player.on("ready",(function(){setTimeout((function(){n.player.isReady=!0,n.player.setLoop(n.props.loop),n.props.muted&&n.player.mute(),n.addListeners(n.player,n.props),n.props.onReady()}),500)})))}),this.props.onError)}},{key:"addListeners",value:function(e,n){var t=this;e.on("play",n.onPlay),e.on("pause",n.onPause),e.on("ended",n.onEnded),e.on("error",n.onError),e.on("timeupdate",(function(e){var n=e.duration,r=e.seconds;t.duration=n,t.currentTime=r}))}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("setCurrentTime",e),n||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){return b.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}]),t}(b.Component);h(w,"displayName","Kaltura"),h(w,"canPlay",g.canPlay.kaltura)}}]);