1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2042],{5516:(e,t,r)=>{let a,s;var l=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,p=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,d=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))h.call(e,s)||s===r||n(e,s,{get:()=>t[s],enumerable:!(a=i(t,s))||a.enumerable});return e},u=(e,t,r)=>{let a;return(a="symbol"!=typeof t?t+"":t)in e?n(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,r},y={},c={default:()=>f};for(var m in c)n(y,m,{get:c[m],enumerable:!0});e.exports=d(n({},"__esModule",{value:!0}),y);var P=(s=null!=(a=r(14232))?l(p(a)):{},d(a&&a.__esModule?s:n(s,"default",{value:a,enumerable:!0}),a)),b=r(24657),v=r(73443);class f extends P.Component{constructor(){super(...arguments),u(this,"callPlayer",b.callPlayer),u(this,"playerID",this.props.config.playerId||`twitch-player-${(0,b.randomString)()}`),u(this,"mute",()=>{this.callPlayer("setMuted",!0)}),u(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){let{playsinline:r,onError:a,config:s,controls:l}=this.props,n=v.MATCH_URL_TWITCH_CHANNEL.test(e),i=n?e.match(v.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(v.MATCH_URL_TWITCH_VIDEO)[1];t?n?this.player.setChannel(i):this.player.setVideo("v"+i):(0,b.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then(t=>{this.player=new t.Player(this.playerID,{video:n?"":i,channel:n?i:"",height:"100%",width:"100%",playsinline:r,autoplay:this.props.playing,muted:this.props.muted,controls:!!n||l,time:(0,b.parseStartTime)(e),...s.options});let{READY:a,PLAYING:o,PAUSE:p,ENDED:h,ONLINE:d,OFFLINE:u,SEEK:y}=t.Player;this.player.addEventListener(a,this.props.onReady),this.player.addEventListener(o,this.props.onPlay),this.player.addEventListener(p,this.props.onPause),this.player.addEventListener(h,this.props.onEnded),this.player.addEventListener(y,this.props.onSeek),this.player.addEventListener(d,this.props.onLoaded),this.player.addEventListener(u,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){return P.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}u(f,"displayName","Twitch"),u(f,"canPlay",v.canPlay.twitch),u(f,"loopOnEnded",!0)}}]); 2//# sourceMappingURL=reactPlayerTwitch.75b3fc8b5836e634.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.