PageSourceSearch

https://oead.at/static/app/build/assets/vidstack-CMYUT9x7-ChN0VSQ2.js

js oead.at collected 2026-09-24 08:52:41 UTC 2,825 bytes, 1 lines download raw bytes

1import{_ as d}from"./app-BXezEdO3.js";import{_ as g,I as p,W as u,$ as C,h as f,n as h}from"./index-_iurMbpo.js";function m(){return"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"}function w(){return!!window.cast?.framework}function v(){return!!window.chrome?.cast?.isAvailable}function c(){return s().getCastState()===cast.framework.CastState.CONNECTED}function s(){return window.cast.framework.CastContext.getInstance()}function l(){return s().getCurrentSession()}function E(){return l()?.getSessionObj().media[0]}function k(r){return E()?.media.contentId===r?.src}function y(){return{language:"en-US",autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,receiverApplicationId:chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,resumeSavedSession:!0,androidReceiverCompatible:!0}}function _(r){return`Google Cast Error Code: ${r}`}function A(r,e){return g(s(),r,e)}class S{constructor(){this.name="google-cast"}get cast(){return s()}mediaType(){return"video"}canPlay(e){return p&&!u&&C(e)}async prompt(e){let t,a,o;try{t=await this.Ej(e),this.f||(this.f=new cast.framework.RemotePlayer,new cast.framework.RemotePlayerController(this.f)),a=e.player.createEvent("google-cast-prompt-open",{trigger:t}),e.player.dispatchEvent(a),this.Ce(e,"connecting",a),await this.Fj(f(e.$props.googleCast)),e.$state.remotePlaybackInfo.set({deviceName:l()?.getCastDevice().friendlyName}),c()&&this.Ce(e,"connected",a)}catch(n){const i=n instanceof Error?n:this.De((n+"").toUpperCase(),"Prompt failed.");throw o=e.player.createEvent("google-cast-prompt-error",{detail:i,trigger:a??t,cancelable:!0}),e.player.dispatch(o),this.Ce(e,c()?"connected":"disconnected",o),i}finally{e.player.dispatch("google-cast-prompt-close",{trigger:o??a??t})}}async load(e){if(!this.f)throw Error("[vidstack] google cast player was not initialized");return new(await d(async()=>{const{GoogleCastProvider:t}=await import("./vidstack-google-cast-Ds2RAYo_.js");return{GoogleCastProvider:t}},[])).GoogleCastProvider(this.f,e)}async Ej(e){if(w())return;const t=e.player.createEvent("google-cast-load-start");e.player.dispatch(t),await h(m()),await customElements.whenDefined("google-cast-launcher");const a=e.player.createEvent("google-cast-loaded",{trigger:t});if(e.player.dispatch(a),!v())throw this.De("CAST_NOT_AVAILABLE","Google Cast not available on this platform.");return a}async Fj(e){this.Gj(e);const t=await this.cast.requestSession();if(t)throw this.De(t.toUpperCase(),_(t))}Gj(e){this.cast?.setOptions({...y(),...e})}Ce(e,t,a){const o={type:"google-cast",state:t};e.delegate.c("remote-playback-change",o,a)}De(e,t){const a=Error(t);return a.code=e,a}}const D=Object.freeze(Object.defineProperty({__proto__:null,GoogleCastLoader:S},Symbol.toStringTag,{value:"Module"}));export{l as a,E as b,_ as c,s as g,k as h,A as l,D as v};

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.