PageSourceSearch

https://www.seezon.co.uk/wp-content/plugins/smartfire-blocks-proje…/js/reactPlayerTwitch.7c425ec9.chunk.js

js seezon.co.uk collected 2026-10-09 03:58:55 UTC 2,865 bytes, 2 lines download raw bytes

1(self.webpackChunksmartfire=self.webpackChunksmartfire||[]).push([[2042],{27388(e,t,r){var a,s=r(12897).default,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},c=(e,t,r)=>(((e,t,r)=>{t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r),y={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(y,{default:()=>E}),e.exports=(a=y,d(n({},"__esModule",{value:!0}),a));var u=((e,t,r)=>(r=null!=e?l(p(e)):{},d(!t&&e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)))(r(41594)),m=r(17799),P=r(763);class E extends u.Component{constructor(){super(...arguments),c(this,"callPlayer",m.callPlayer),c(this,"playerID",this.props.config.playerId||"".concat("twitch-player-").concat((0,m.randomString)())),c(this,"mute",()=>{this.callPlayer("setMuted",!0)}),c(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){const r=this.props,a=r.playsinline,l=r.onError,n=r.config,i=r.controls,o=P.MATCH_URL_TWITCH_CHANNEL.test(e),p=o?e.match(P.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(P.MATCH_URL_TWITCH_VIDEO)[1];t?o?this.player.setChannel(p):this.player.setVideo("v"+p):(0,m.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then(t=>{this.player=new t.Player(this.playerID,s({video:o?"":p,channel:o?p:"",height:"100%",width:"100%",playsinline:a,autoplay:this.props.playing,muted:this.props.muted,controls:!!o||i,time:(0,m.parseStartTime)(e)},n.options));const r=t.Player,l=r.READY,h=r.PLAYING,d=r.PAUSE,c=r.ENDED,y=r.ONLINE,u=r.OFFLINE,P=r.SEEK;this.player.addEventListener(l,this.props.onReady),this.player.addEventListener(h,this.props.onPlay),this.player.addEventListener(d,this.props.onPause),this.player.addEventListener(c,this.props.onEnded),this.player.addEventListener(P,this.props.onSeek),this.player.addEventListener(y,this.props.onLoaded),this.player.addEventListener(u,this.props.onLoaded)},l)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];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 u.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}c(E,"displayName","Twitch"),c(E,"canPlay",P.canPlay.twitch),c(E,"loopOnEnded",!0)}}]);
2//# sourceMappingURL=reactPlayerTwitch.7c425ec9.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.