PageSourceSearch

https://learn.supernovaconsulting.com/packs/js/reactPlayerTwitch-b9cbe19a797ef2a8.chunk.js

js supernovaconsulting.com collected 2026-09-30 14:05:01 UTC 2,722 bytes, 2 lines download raw bytes

1(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[40727],{210761(e,t,r){let a,s;var l=Object.create,i=Object.defineProperty,n=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||i(e,s,{get:()=>t[s],enumerable:!(a=n(t,s))||a.enumerable});return e},u=(e,t,r)=>{let a;return(a="symbol"!=typeof t?t+"":t)in e?i(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,r},y={},c={default:()=>g};for(var m in c)i(y,m,{get:c[m],enumerable:!0});e.exports=d(i({},"__esModule",{value:!0}),y);var P=(s=null!=(a=r(933578))?l(p(a)):{},d(a&&a.__esModule?s:i(s,"default",{value:a,enumerable:!0}),a)),v=r(9624),f=r(587846);class g extends P.Component{constructor(){super(...arguments),u(this,"callPlayer",v.callPlayer),u(this,"playerID",this.props.config.playerId||`twitch-player-${(0,v.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,i=f.MATCH_URL_TWITCH_CHANNEL.test(e),n=i?e.match(f.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(f.MATCH_URL_TWITCH_VIDEO)[1];t?i?this.player.setChannel(n):this.player.setVideo("v"+n):(0,v.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then(t=>{this.player=new t.Player(this.playerID,{video:i?"":n,channel:i?n:"",height:"100%",width:"100%",playsinline:r,autoplay:this.props.playing,muted:this.props.muted,controls:!!i||l,time:(0,v.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(g,"displayName","Twitch"),u(g,"canPlay",f.canPlay.twitch),u(g,"loopOnEnded",!0)}}]);
2//# sourceMappingURL=/packs/js/reactPlayerTwitch-b9cbe19a797ef2a8.chunk.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.