PageSourceSearch

https://www.syn.is/_next/static/chunks/reactPlayerSoundCloud.15878566169e48f1.js

js syn.is collected 2026-09-24 09:43:14 UTC 2,596 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69979],{99172:(e,t,r)=>{var o=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,a=Object.getPrototypeOf,n=Object.prototype.hasOwnProperty,u=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of l(t))n.call(e,a)||a===r||s(e,a,{get:()=>t[a],enumerable:!(o=i(t,a))||o.enumerable});return e},p=(e,t,r)=>(((e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),r),h={};((e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})})(h,{default:()=>m}),e.exports=u(s({},"__esModule",{value:!0}),h);var d=((e,t,r)=>(r=null!=e?o(a(e)):{},u(!t&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)))(r(91844)),c=r(50384),y=r(10112);class m extends d.Component{constructor(){super(...arguments),p(this,"callPlayer",c.callPlayer),p(this,"duration",null),p(this,"currentTime",null),p(this,"fractionLoaded",null),p(this,"mute",()=>{this.setVolume(0)}),p(this,"unmute",()=>{null!==this.props.volume&&this.setVolume(this.props.volume)}),p(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){(0,c.getSDK)("https://w.soundcloud.com/player/api.js","SC").then(r=>{if(!this.iframe)return;let{PLAY:o,PLAY_PROGRESS:s,PAUSE:i,FINISH:l,ERROR:a}=r.Widget.Events;t||(this.player=r.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(i,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(s,e=>{this.currentTime=e.currentPosition/1e3,this.fractionLoaded=e.loadedProgress}),this.player.bind(l,()=>this.props.onEnded()),this.player.bind(a,e=>this.props.onError(e))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(e=>{this.duration=e/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seekTo",1e3*e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){let{display:e}=this.props;return d.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:{width:"100%",height:"100%",display:e},frameBorder:0,allow:"autoplay"})}}p(m,"displayName","SoundCloud"),p(m,"canPlay",y.canPlay.soundcloud),p(m,"loopOnEnded",!0)}}]);
2//# sourceMappingURL=reactPlayerSoundCloud.15878566169e48f1.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.