@castlabs/prestoplay 6.27.0 → 6.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/cjs/cl.adobe.js +3 -3
- package/cjs/cl.airplay.js +3 -3
- package/cjs/cl.broadpeak.js +7 -7
- package/cjs/cl.cast.js +125 -114
- package/cjs/cl.conviva.js +32 -32
- package/cjs/cl.core.js +632 -624
- package/cjs/cl.crypto.js +9 -9
- package/cjs/cl.dash.js +89 -89
- package/cjs/cl.externs.js +201 -100
- package/cjs/cl.freewheel.js +25 -25
- package/cjs/cl.hls.js +78 -78
- package/cjs/cl.hlssmpte.js +6 -6
- package/cjs/cl.htmlcue.js +30 -30
- package/cjs/cl.ima.js +24 -24
- package/cjs/cl.mediatailor.js +3 -3
- package/cjs/cl.mse.js +351 -351
- package/cjs/cl.muxdata.js +14 -15
- package/cjs/cl.onboard.js +4 -3
- package/cjs/cl.persistent.js +14 -14
- package/cjs/cl.playlist.js +6 -6
- package/cjs/cl.simid.js +16 -17
- package/cjs/cl.smooth.js +71 -72
- package/cjs/cl.thumbnails.js +26 -26
- package/cjs/cl.tizen.js +72 -72
- package/cjs/cl.ttml.js +29 -29
- package/cjs/cl.verimatrix.js +5 -5
- package/cjs/cl.vimond.js +12 -12
- package/cjs/cl.vr.js +19 -19
- package/cjs/cl.vtt.js +14 -14
- package/cjs/cl.yospace.js +4 -4
- package/cjs/cl.youbora.js +39 -39
- package/cl.adobe.js +3 -3
- package/cl.airplay.js +3 -3
- package/cl.broadpeak.js +6 -5
- package/cl.cast.js +98 -90
- package/cl.conviva.js +27 -27
- package/cl.core.js +509 -501
- package/cl.crypto.js +8 -8
- package/cl.dash.js +83 -82
- package/cl.externs.js +197 -100
- package/cl.freewheel.js +19 -19
- package/cl.hls.js +82 -80
- package/cl.hlssmpte.js +5 -5
- package/cl.htmlcue.js +26 -26
- package/cl.ima.js +18 -17
- package/cl.mediatailor.js +2 -3
- package/cl.mse.js +303 -305
- package/cl.muxdata.js +13 -13
- package/cl.onboard.js +4 -4
- package/cl.persistent.js +10 -10
- package/cl.playlist.js +5 -5
- package/cl.simid.js +14 -14
- package/cl.smooth.js +60 -60
- package/cl.thumbnails.js +19 -19
- package/cl.tizen.js +57 -57
- package/cl.ttml.js +22 -22
- package/cl.verimatrix.js +4 -4
- package/cl.vimond.js +8 -8
- package/cl.vr.js +15 -15
- package/cl.vtt.js +12 -12
- package/cl.yospace.js +3 -3
- package/cl.youbora.js +31 -29
- package/package.json +1 -1
- package/typings.d.ts +221 -152
- package/cjs/cl.sessions.js +0 -21
- package/cl.sessions.js +0 -10
package/cjs/cl.cast.js
CHANGED
|
@@ -1,121 +1,132 @@
|
|
|
1
1
|
(function(){var g={}; var _ = _ || {}
|
|
2
|
-
var f=function(window){var
|
|
3
|
-
a;this.j=null;this.f=_.
|
|
4
|
-
"Infinity"===c?Infinity:c})}catch(b){return a}},
|
|
5
|
-
chrome.cast&&chrome.cast.media){var c=chrome.cast.media.HlsSegmentFormat;var d=chrome.cast.media.HlsVideoSegmentFormat}else if(window.cast&&cast.framework&&cast.framework.messages)c=cast.framework.messages.HlsSegmentFormat,d=cast.framework.messages.HlsVideoSegmentFormat;else return;switch(a){case _.
|
|
6
|
-
void 0===a?
|
|
7
|
-
|
|
8
|
-
c.renditions[0];c=[+c.id];if(b!==_.
|
|
9
|
-
a;this.o=new _.
|
|
10
|
-
0)}});
|
|
11
|
-
|
|
12
|
-
cast.framework&&cast.framework.CastContext&&a.da.length){a.w=!0;a.o.
|
|
13
|
-
a=typeof a!==_.k?null:a):a=null;a=null===a?null:a+b;return null===a?b:a},
|
|
14
|
-
a.
|
|
15
|
-
g.streamType=b.isLive?c.LIVE:c.BUFFERED;h=b;l=h.
|
|
16
|
-
b.
|
|
17
|
-
f.loadMedia(C),0)}})},
|
|
18
|
-
_.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
_.r.
|
|
42
|
-
_.
|
|
43
|
-
|
|
44
|
-
_.r.
|
|
45
|
-
|
|
46
|
-
_.r.
|
|
47
|
-
_.r.
|
|
48
|
-
|
|
49
|
-
_.r.
|
|
2
|
+
var f=function(window){var DV="Cannot seek during ads playout.",EV="Cannot switch track",FV="Media session does not exist.",GV="No receivers available",HV="QUEUE_ITEM_CHANGED",IV="Reset ABR functionality not available on cast.",JV="SDK not yet ready",KV="Sender is destroyed.",LV="clpp.cast.CastProxy",MV="clpp.cast.Player",NV="clpp.cast.Receiver",OV="urn:x-cast:castlabs",PV="urn:x-cast:com.google.cast.media",QV=function(a){return _.I(function(b){return 1==b.a?_.x(b,a.Tc(_.Ye),2):_.x(b,a.Tc(_.Xe),0)})},RV=function(a,b){this.log=
|
|
3
|
+
new _.L(b);this.player=a;this.j=null;this.f=_.gu;this.l=7;this.h=2;this.B=Date.now();this.A=-1},SV=function(a){return JSON.stringify(a,function(b,c){if("license"!==b&&typeof c!==_.oe){if(c instanceof Event){var d={},e;for(e in c){var f=c[e];typeof f===_.Te?"detail"===e&&(d[e]=f):e in Event||(d[e]=f)}return d}return typeof c===_.k?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c}})},TV=function(a){if(typeof a!==_.hg)return a;try{return JSON.parse(a,function(b,c){return"NaN"===c?NaN:"-Infinity"===
|
|
4
|
+
c?-Infinity:"Infinity"===c?Infinity:c})}catch(b){return a}},UV=function(a,b){var c=new Set(b);return Object.keys(a).reduce(function(d,e){c.has(e)&&(d[e]=a[e]);return d},{})},VV=function(a,b,c,d){var e,f,g,h,l,m,n,p;return _.I(function(q){if(1==q.a){if(b.includes(a.mimeType))return q["return"](a);g=f=e=null;for(h=0;h<b.length&&!f;)g=b[h++],f=_.xt(d,a.mimeType,g);if(!f||!g)return q.C(2);l=_.Xk(a.url);return _.x(q,c.fetch(l).T,3)}2!=q.a&&(m=q.f)&&m.data&&(n=f.a(_.Ni(m.data)),p=URL.createObjectURL(new Blob([n])),
|
|
5
|
+
e={url:p,kind:a.kind,language:a.language,label:a.label,mimeType:g});return q["return"](e)})},WV=function(a,b){if(window.chrome&&chrome.cast&&chrome.cast.media){var c=chrome.cast.media.HlsSegmentFormat;var d=chrome.cast.media.HlsVideoSegmentFormat}else if(window.cast&&cast.framework&&cast.framework.messages)c=cast.framework.messages.HlsSegmentFormat,d=cast.framework.messages.HlsVideoSegmentFormat;else return;switch(a){case _.Pg:return d.FMP4;case _.Og:return b===_.dt?d.MPEG2_TS:c.TS;case _.Pc:return c.AAC;
|
|
6
|
+
case _.Qc:return c.AC3;case _.Rc:return c.E_AC3;case "audio/mpeg":return c.MP3;case _.Sc:return c.FMP4}},YV=function(a){a=void 0===a?XV:a;var b=cast.framework.messages||chrome.cast.media;if(!b)throw new _.N(1,8,8001);var c=b.MetadataType,d=b.GenericMediaMetadata,e=b.MovieMediaMetadata,f=b.TvShowMediaMetadata,g=b.MusicTrackMediaMetadata,h=b.PhotoMediaMetadata;b=b.AudiobookChapterMediaMetadata;switch(a){case c.MOVIE:return new e;case c.TV_SHOW:return new f;case c.MUSIC_TRACK:return new g;case c.PHOTO:return new h;
|
|
7
|
+
case c.AUDIOBOOK_CHAPTER:return new b;default:return new d}},ZV=function(){return Math.round(1E3*Math.random())},$V=function(a){RV.call(this,a,"clpp.cast.SenderStateManager");this.o=this.a=null;this.w=this.gc.bind(this)},aW=function(){this.g=new _.L("clpp.cast.SenderTrackManager");this.a=null;this.h=[];this.f={}},bW=function(a){a=a.a?a.a.a:null;return(a?a.activeTrackIds||[]:[]).map(function(b){return b.toString()})},dW=function(a,b){var c=bW(a);return cW(a,b).find(function(d){return c.includes(d.id)})||
|
|
8
|
+
null},cW=function(a,b){return a.h.filter(function(c){return c.type===b})},fW=function(a,b,c){var d=a.a.a;if(d)if(c){a.f[b]=c.renditions[0];c=[+c.id];if(b!==_.ct){var e=a.wa();e&&c.push(+e.id)}c=new chrome.cast.media.EditTracksInfoRequest(c);d.editTracksInfo(c,function(){a.f[b]=null;eW(a,b)},function(f){a.f[b]=null;a.g.debug(EV,f)})}else b===_.ct&&(c=new chrome.cast.media.EditTracksInfoRequest([]),d.editTracksInfo(c,function(){eW(a,b)},function(f){a.g.debug(EV,f)}))},eW=function(a,b){b===_.X?a.a.trigger(new _.Q(_.Vc)):
|
|
9
|
+
b===_.ct&&a.a.trigger(new _.Q(_.qg))},jW=function(a,b,c,d){_.zi.call(this);this.g=new _.L(_.rd);this.da=a;this.o=new _.ej(b);this.Z=c;this.ja=d;this.h=this.J=_.On();this.D=[];this.B=0;this.L=new _.Zm;this.G=this.l=this.a=null;this.A=this.w=!1;this.ka="";this.Ja=1E6;this.f=new aW;this.f.initialize(this);this.j=new $V(this);this.H=new _.si;this.K=null;this.I=new Set;this.R=this.rn.bind(this);this.za=this.Nn.bind(this);this.fa=this.Dn.bind(this);this.U=this.wn.bind(this);this.O=null;window.cast||Object.defineProperty(window,
|
|
10
|
+
"cast",{get:function(){return window.cast_},set:function(e){window.cast_=e;window.setTimeout(function(){gW(!0)},0)}});hW(this);iW.add(this)},kW=function(a){var b,c;return _.I(function(d){if(1==d.a)return iW["delete"](a),a.w&&(a.w=!1,b=cast.framework.CastContext.getInstance(),b.removeEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED,a.R),b.removeEventListener(cast.framework.CastContextEventType.SESSION_STATE_CHANGED,a.za)),c=[],a.f&&(c.push(a.f.destroy()),a.f=null),a.j&&(c.push(a.j.destroy()),
|
|
11
|
+
a.j=null),_.x(d,Promise.all(c),2);a.A=!1;a.o&&(a.o.stop(),a.o=null);a.Z=null;a.ja=null;_.z(d)})},mW=function(a){if(!a)return null;a:{var b=a.metadataType;var c=Object.entries(lW);c=_.v(c);for(var d=c.next();!d.done;d=c.next()){d=_.v(d.value);var e=d.next().value;if(d.next().value===b){b=e;break a}}b=null}if(!b)return null;b=YV(lW[b]);return Object.assign(b,a)},nW=function(a){var b=void 0===b?XV:b;return Object.values(lW).includes(a)?a:b},oW=function(a){var b={},c;for(c in a)void 0!==a[c]&&(b[c]=a[c]);
|
|
12
|
+
return b},hW=function(a){if(!a.w&&window.chrome&&chrome.cast&&chrome.cast.isAvailable&&window.cast&&cast.framework&&cast.framework.CastContext&&a.da.length){a.w=!0;a.o.Zg();var b=cast.framework.CastContext.getInstance(),c=new cast.framework.CastOptions;c.receiverApplicationId=a.da;c.autoJoinPolicy=chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED;b.setOptions(c);b.addEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED,a.R);b.addEventListener(cast.framework.CastContextEventType.SESSION_STATE_CHANGED,
|
|
13
|
+
a.za);pW&&a.o.ha(.02)}},qW=function(a){var b=a.getPosition();a.a&&a.a.media?(a=a.a.media.startAbsoluteTime,a=typeof a!==_.k?null:a):a=null;a=null===a?null:a+b;return null===a?b:a},sW=function(a,b){rW(a,b.getMediaSession());b.addEventListener(cast.framework.SessionEventType.MEDIA_SESSION,a.fa);b.addMessageListener(OV,a.U)},rW=function(a,b){a.a=b;a.a&&(a.H.release(),a.G=null,a.l=null,a.l=new cast.framework.RemotePlayer,a.G=new cast.framework.RemotePlayerController(a.l),a.H.on(a.G,cast.framework.RemotePlayerEventType.CURRENT_TIME_CHANGED,
|
|
14
|
+
a.tk.bind(a)),a.H.on(a.G,cast.framework.RemotePlayerEventType.MEDIA_INFO_CHANGED,a.Cn.bind(a)),a.j&&a.j.init(),a.trigger(new _.Q(_.Fe)))},tW=function(a){return _.I(function(b){return a.Ca()?b.C(0):_.x(b,cast.framework.CastContext.getInstance().requestSession(),0)})},uW=function(a,b){var c,d,e,f,g,h,l,m,n,p,q,t,u,y,B,A,C,E,D;return _.I(function(J){switch(J.a){case 1:return c=chrome.cast.media.StreamType,d=_.Gw,_.x(J,tW(a),2);case 2:if(!b)return J["return"]();e=cast.framework.CastContext.getInstance();
|
|
15
|
+
f=e.getCurrentSession();g=new chrome.cast.media.MediaInfo(b.source.url,b.source.type);g.streamType=b.isLive?c.LIVE:c.BUFFERED;h=b;l=h.lc;m=h.hb;g.hlsVideoSegmentFormat=WV(l,d.VIDEO);g.hlsSegmentFormat=WV(m,d.AUDIO);if(!b.pb){J.C(3);break}if(!a.O){J.C(4);break}return _.x(J,Promise.resolve(a.O(b.pb)),5);case 5:if(n=J.f)b.pb=n;case 4:a.h=b.pb;a.D=_.Un(a.h);a.B=a.D.findIndex(function(P){return P.url===b.source.url});if(!b.pb.remoteTextTracks){J.C(6);break}return _.x(J,Promise.all(b.pb.remoteTextTracks.map(a.Gl.bind(a))),
|
|
16
|
+
7);case 7:p=J.f,g.tracks=p.filter(function(P){return P}),b.pb.remoteTextTracks=void 0;case 6:delete b.pb.autoplay,b.pb.startTime=null,g.customData={playerConfiguration:SV(b.pb)};case 3:q=a.Kb()||{};t=nW(q.metadataType);typeof b.Kg===_.k&&(u={metadataType:t,sectionStartAbsoluteTime:b.Kg});b.source.name&&(y={metadataType:t,title:b.source.name});B=oW(q);if(A=mW(Object.assign({},u,y,B)))g.metadata=A;C=new chrome.cast.media.LoadRequest(g);(E=b.queueData)&&E.items&&0<E.items.length&&(D=new chrome.cast.media.QueueData,
|
|
17
|
+
D.items=E.items,D.startIndex=E.startIndex,C.queueData=D);typeof b.autoplay===_.Yc&&(C.autoplay=b.autoplay);typeof b.currentTime===_.k&&(C.currentTime=b.currentTime);return _.x(J,f.loadMedia(C),0)}})},vW=function(a,b,c){c=void 0===c?0:c;var d,e;return _.I(function(f){(d=a.f.wa())&&d.language&&(a.h.preferredTextLanguage=d.language);(e=a.f.oa())&&e.language&&(a.h.preferredAudioLanguage=e.language);return _.x(f,uW(a,{source:a.getLoadedSource(),currentTime:c,isLive:a.isLive(),Kg:a.getPresentationStartTime(),
|
|
18
|
+
autoplay:b,pb:a.h}),0)})},gW=function(a){if(a){a=_.v(iW);for(var b=a.next();!b.done;b=a.next())hW(b.value)}},EW=function(a,b,c){_.zi.call(this);this.f=a;this.h=b;this.j=typeof c===_.oe?c:this.vo;this.a=zW(this);this.g=new _.L(LV);this.f&&this.forwardEventsTo(this.f)},zW=function(a){return new jW(a.h,function(){a.trigger(new _.Q(_.ed))},function(b,c){var d=a.f.getConfiguration();d.source=c.source;d.autoplay=!1;d.startTime=c.currentTime?Math.max(c.currentTime-1,0):null;d.ima&&d.startTime&&(d.ima.playAdsAfterTime=
|
|
19
|
+
d.startTime);c.th&&(d.preferredAudioLanguage=c.th);c.Gj&&(d.preferredTextLanguage=c.Gj);_.Po(a.f,null);a.trigger(new _.Q("castingended"));a.j(b,d)},function(){return JW(a)})},JW=function(a){var b;return _.I(function(c){if(1==c.a)return a.trigger(new _.Q(_.dd)),b=a.f.a,b!==a.a&&a.f&&a.a?_.x(c,a.f.release(),2):c["return"]();_.Po(a.f,a.a);_.z(c)})},KW=function(a){RV.call(this,a,"clpp.cast.StateManager");this.I=this.Ak.bind(this);this.H=this.zk.bind(this);this.w=this.yn.bind(this);this.o=this.pn.bind(this);
|
|
20
|
+
this.K=this.Ck.bind(this);this.J=this.Bk.bind(this);this.L=this.Qn.bind(this);this.G=this.Bn.bind(this);this.D=this.yk.bind(this);this.a=this.xk.bind(this)},LW=function(a,b){a=void 0===a?[]:a;b=void 0===b?0:b;_.zi.call(this);this.a=a.slice();this.f=b},MW=function(a,b){0>b||b>=a.a.length||(a.f=b,a.trigger(new _.Q(_.uf,{item:a.Lb()})))},NW=function(a){a.trigger(new _.Q(_.wf))},PW=function(a,b,c){c=void 0===c?function(){return Promise.resolve()}:c;_.zi.call(this);var d=this;this.m=a;this.a=b;this.w=
|
|
21
|
+
c;this.j=this.f=this.h=!1;this.o=function(){var e,f;return _.I(function(g){switch(g.a){case 1:if(d.f)return g["return"]();e=d.a.Lb();if(!e)return g["return"]();d.f=!0;_.F(g,2,3);return _.x(g,d.w(e),5);case 5:return _.x(g,d.m.load(Object.assign({},e.configuration,{autoplay:!0})),3);case 3:_.yh(g);d.f=!1;_.zh(g);break;case 2:throw f=_.H(g),f;}})};this.l=function(){OW(d)}},OW=function(a){QW(a);var b=Math.min(a.a.ke().length-1,a.a.getPosition()+1);MW(a.a,b)},QW=function(a){a.j||(a.a.on(_.uf,a.o),a.j=
|
|
22
|
+
!0)},RW=function(a,b,c){var d=this;this.player=a;this.Tb=new LW(c);this.Dd=new PW({load:this.player.load.bind(this.player),off:this.player.off.bind(this.player),on:this.player.on.bind(this.player)},this.Tb,function(){return _.I(function(e){_.z(e)})});this.a=new EW(this.player,b,function(e,f){var g;return _.I(function(h){if(1==h.a)return g=d.Tb.getPosition(),d.Dd.vd(g),f.autoplay=!0,delete f.license,_.x(h,d.player.load(f),2);if(3!=h.a)return typeof f.currentTime!==_.k?h.C(3):_.x(h,d.player.seek(Math.max(f.currentTime-
|
|
23
|
+
1,0)),3);d.player.play();_.z(h)})});this.f=function(e){e&&e.type===HV&&typeof e.index===_.k&&MW(d.Tb,e.index)};this.a.addMessageListener(this.f)},SW=function(a){return a.map(function(b){var c={};c.media={contentId:b.configuration.source};c.customData={skippable:!1!==b.skippable};return c})},TW=function(a,b,c,d,e){this.a=a;this.f=b;this.l=typeof c===_.k?c:1;this.h=typeof d===_.k?d:1;this.j=typeof e===_.k?e:0},UW=function(a){this.a=a},WW=function(a){this.m=a;this.a=null;this.h=this.Dk.bind(this);this.f=
|
|
24
|
+
[cast.framework.events.EventType.PLAYER_LOADING,cast.framework.events.EventType.BREAK_CLIP_LOADING,cast.framework.events.EventType.BREAK_STARTED,cast.framework.events.EventType.BREAK_ENDED,cast.framework.events.EventType.BREAK_CLIP_STARTED,cast.framework.events.EventType.BREAK_CLIP_ENDED,cast.framework.events.EventType.PLAYING,cast.framework.events.EventType.PAUSE,cast.framework.events.EventType.BUFFERING];VW().addEventListener(this.f,this.h)},ZW=function(a,b,c){var d,e,f,g,h,l,m;return _.I(function(n){if(1==
|
|
25
|
+
n.a){d=b.adTagUrl;if(!d)return n["return"]();_.F(n,2);XW=!1;e=_.Xk(d);return _.x(n,c.fetch(e).T,4)}if(2!=n.a){if((f=n.f)&&f.data)if(g=_.R.ea(f.data),h=new DOMParser,l=h.parseFromString(g,_.pg),l.getElementsByTagName("vmap:VMAP").length)_.Mh("VMAP detected."),a.vmapAdsRequest=YW(g);else if(l.getElementsByTagName("VAST").length){_.Mh("VAST detected.");var p=new cast.framework.messages.BreakClip("bc1");p.vastAdsRequest=YW(g);var q=new cast.framework.messages.Break("b1",[p.id],0);a.breakClips=[p];a.breaks=
|
|
26
|
+
[q]}else _.Mh("Unsupported schema."),XW=!0;return _.G(n,0)}m=_.H(n);_.Mh("Failed to fetch an ad",m);XW=!0;_.z(n)})},YW=function(a){var b=new cast.framework.messages.VastAdsRequest;b.adsResponse=a;return b},VW=function(){return cast.framework.CastReceiverContext.getInstance().getPlayerManager()},aX=function(a,b,c){if(c instanceof cast.framework.events.BreaksEvent||-1!==a.getPosition()){var d=null;(c=$W(a,c))&&(d={ad:c});a.m.trigger(new _.Q(b,d))}},bX=function(a,b){var c=new _.N(1,10,10003,{errorType:b});
|
|
27
|
+
a.m.onError(c)},$W=function(a,b){var c=null;if(a.a&&b instanceof cast.framework.events.BreaksEvent){var d=null,e=null,f;typeof b.breakClipId===_.hg&&(d=a.a.getBreakClipById(b.breakClipId));typeof b.breakId===_.hg&&(e=a.a.getBreakById(b.breakId),!e&&d&&(e=a.a.getBreaks().find(function(g){return g.breakClipIds.includes(d.id)})||null),e&&(f=a.a.getBreaks().filter(function(g){return 0<=g.position}).sort(function(g,h){return g.position-h.position}).findIndex(function(g){return g===e})));c=new TW(d,e,b.index,
|
|
28
|
+
b.total,f)}return c},cX=function(a){this.a=a;this.f=this.h.bind(this)},dX=function(){return[cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,cast.framework.events.EventType.TIMED_METADATA_CHANGED,cast.framework.events.EventType.TIMED_METADATA_ENTER,cast.framework.events.EventType.TIMED_METADATA_EXIT]},eX=function(a){var b=a.dashTimedMetadata,c=_.Gg;b&&(c=b.schemeIdUri);return{type:c.startsWith(_.Fg)?_.Vf:_.Dg,schemeIdUri:c,id:a.id||"",startTime:a.startTime,endTime:a.endTime,value:b&&b.value||
|
|
29
|
+
"",eventElement:b?b.eventElement:null}},fX=function(){this.g=new _.L("clpp.cast.TrackManager");this.m=null;this.o=1E9;this.h=[];this.j=[];this.l=this.ko.bind(this);this.a=this.f=null},gX=function(){return cast.framework.CastReceiverContext.getInstance().getPlayerManager()},iX=function(a){a.a=gX().getTextTracksManager();var b=a.a.getTracks();a.j=hX(_.ct,b)},jX=function(a,b,c,d){c=_.Ei(c).filter(function(h){return h});var e=!1,f=[];b===_.X?f=a.getAudioTracks():b===_.ct&&(f=a.pa());if(c=c.find(function(h){var l=
|
|
30
|
+
_.uo(h);return f.some(function(m){m=_.uo(m.language||"");return _.vo(l,m)})})){var g=_.uo(c);c=f.filter(function(h){h=_.uo(h.language||"");return _.vo(g,h)});f=c.length?c:f;e=e||!!c.length}_.R.zf(d)&&(c=f.filter(function(h){return h.roles.includes(d)}),f=c.length?c:f,e=e||!!c.length);e&&f[0]&&(e=f[0],a.g.info("Will select track",e),b===_.X?a.Ha(e):b===_.ct&&a.Za(e))},hX=function(a,b){for(var c=[],d=_.v(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=new _.at(e.trackId.toString(),a);f.roles=e.roles||
|
|
31
|
+
[];f.kind=e.subtype||null;f.language=e.language||null;f.originalLanguage=e.language||null;f.label=e.name||null;f.src=e.trackContentId||null;f.mimeType=e.trackContentType||null;e.customData&&(f.mimeType=e.customData.mimeType||f.mimeType,f.src=e.customData.url||f.src);f.renditions.push(new _.jt(f.id,f));c.push(f)}return c},kX=function(){_.zi.call(this);this.g=new _.L(MV);this.h=this.w=_.On();this.A=null;this.l=-1;this.G=new _.Zm;this.f=this.o=this.j=this.a=this.B=null;this.D=!1},lX=function(){return cast.framework.CastReceiverContext.getInstance().getPlayerManager()},
|
|
32
|
+
mX=function(a,b){var c=Object.assign({},a.shakaConfig,b);return Object.assign({},a,{shakaConfig:c})},pX=function(a,b){function c(){b.protectionSystem=cast.framework.ContentProtection.NONE;b.licenseUrl=void 0;b.licenseRequestHandler=void 0;b.licenseHandler=void 0}if(a&&a.drm){var d=a.drm,e=_.$n(d);if(e){var f=[_.Ed];_.Un(a)[0].type!==_.Mc&&f.unshift(_.Gd);d.preferredDrmSystem===_.Ed&&f.reverse();for(var g,h;f.length&&!h;)g=f.shift(),h=e.Pa[g];h?(d=g===_.Gd?cast.framework.ContentProtection.WIDEVINE:
|
|
33
|
+
g===_.Ed?cast.framework.ContentProtection.PLAYREADY:void 0,b.protectionSystem=d,b.licenseUrl=h.licenseUrl,d={ldlDelay:0,customData:{}},nX(b,h,a,d),oX(b,h,a,d)):c()}else c()}else c()},nX=function(a,b,c,d){b.modifiers.licenseRequest?a.licenseRequestHandler=function(e){var f=_.Xk({method:_.qb,uris:[e.url]});e.headers&&(f.headers=e.headers);f.body=e.content;f.allowCrossSiteCredentials=e.withCredentials;b.modifiers.licenseRequest(c,f,d);e.url=f.uris[0];e.headers=f.headers;e.content=f.body;e.withCredentials=
|
|
34
|
+
f.allowCrossSiteCredentials}:a.licenseRequestHandler=void 0},oX=function(a,b,c,d){b.modifiers.licenseResponse?a.licenseHandler=function(e,f){var g;return _.I(function(h){return 1==h.a?(g=_.al(Object.assign({},f.headers),e.buffer,200,""),_.x(h,b.modifiers.licenseResponse(c,g,d),2)):h["return"](_.Ni(g.data))})}:a.licenseHandler=void 0},qX=function(){this.a=!1;this.g=new _.L(NV);this.f=this.m=null;this.j=new Set;this.D=this.An.bind(this);this.B=this.vk.bind(this);this.o=null;this.A=new _.si;this.l=this.h=
|
|
35
|
+
this.w=null},sX=function(){return rX||(rX=new qX)},tX=function(){return cast.framework.CastReceiverContext.getInstance()},uX=function(){var a=tX().getPlayerManager().getMediaInformation();return a&&a.metadata?a.metadata:null},vX=function(a,b){var c=tX().getPlayerManager().getMediaInformation();if(c){b?c.metadata=b:delete c.metadata;var d=!0;d=void 0===d?!1:d;tX().getPlayerManager().setMediaInformation(c,d)}else a.g.warn("No mediaInformation is present. Skipping metadata update.")},xX=function(a,b){a.g.debug("Detected HLS, parsing");
|
|
36
|
+
var c=cast.framework.messages.HlsVideoSegmentFormat,d=tX();c=(tX().getPlayerManager().getMediaInformation()||{}).hlsVideoSegmentFormat===c.FMP4?_.Pg:_.Og;b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");for(var e=b.split(/\n+/m),f=[],g=0;g<e.length;){var h=e[g].trim();if(e[g].startsWith("#EXT-X-STREAM-INF")){var l=wX(h,_.ta),m=wX(h,_.zb),n=_.v([]),p=n.next().value;n=n.next().value;m&&(m=_.v(m.split("x").map(function(q){return+q})),p=m.next().value,n=m.next().value);if(!d.canDisplayType(c,l,p,n)){g+=2;continue}}f.push(h);
|
|
37
|
+
++g}return f.join("\n")},wX=function(a,b){b+="\x3d";var c=a.indexOf(b);if(0<=c){var d=a.substring(c+b.length);d.startsWith('"')?(d=d.substring(1),d=d.substring(0,d.indexOf('"'))):(c=d.indexOf(","),0<=c&&(d=d.substring(0,c)))}return d},yX=function(a){a=_.v(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c={};b.customData&&_.M.Pb(b.customData)&&(c=b.customData);b.roles&&(c.roles=b.roles);b.audioTrackInfo&&(c.audioTrackInfo=b.audioTrackInfo);_.M.Pb(c)&&(b.customData=c)}},zX=function(a){this.f=
|
|
38
|
+
a;this.a=null;this.h=new _.si;this.j=[cast.framework.RemotePlayerEventType.IS_PLAYING_BREAK_CHANGED,cast.framework.RemotePlayerEventType.CURRENT_BREAK_CLIP_NUMBER_CHANGED,cast.framework.RemotePlayerEventType.MEDIA_INFO_CHANGED,cast.framework.RemotePlayerEventType.IS_PAUSED_CHANGED]},BX=function(a,b){var c=null,d=AX(a);d&&(c={ad:d});a.f.trigger(new _.Q(b,c))},AX=function(a){var b=null;if(a.a&&a.a.mediaInfo){b=a.a.mediaInfo;var c=null,d=null,e=a.a.currentBreakClipNumber;if(b.breaks&&(c=b.breaks.find(function(h){return h.id===
|
|
39
|
+
a.a.breakId})||null)){var f=c.breakClipIds.length;var g=0>=c.position?c.position:b.breaks.filter(function(h){return 0<=h.position}).sort(function(h,l){return h.position-l.position}).findIndex(function(h){return h===c})}b.breakClips&&(d=b.breakClips.find(function(h){return h.id===a.a.breakClipId})||null);b=new TW(d,c,e,f,g)}return b},CX=function(){},DX=function(){};_.r=RV.prototype;_.r.release=function(){this.Ba(_.gu)};_.r.destroy=function(){this.j=this.player=null;return Promise.resolve()};
|
|
40
|
+
_.r.getState=function(){return this.f};_.r.onError=function(a){a.severity===_.O&&this.Ba(_.Ko)};
|
|
41
|
+
_.r.Ba=function(a){if(a!==this.f)if(this.f===_.Ko&&a!==_.gu)this.log.debug("Player is in ERROR state and can not switch to",a);else{var b=Date.now();this.l=this.f;this.f=a;2===this.f?(this.A=b,this.player.trigger(new _.Q(_.$c,{detail:{bufferedTimeMS:-1,reason:this.h}}))):2===this.l&&this.player.trigger(new _.Q(_.Zc,{detail:{bufferedTimeMS:b-this.A,reason:this.h}}));a={currentState:this.f,previousState:this.l,timeSinceLastStateChangeMS:b-this.B};this.B=b;this.j&&_.$t(this.j,this.f);this.player.trigger(new _.Q(_.eg,
|
|
42
|
+
{detail:a}))}};var EX;_.K("clpp.cast.CastUtils",function(){});var XV=0,lW={GENERIC:XV,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4,AUDIOBOOK_CHAPTER:5},FX="addMissingTimelineCues alwaysStreamText bufferBehind bufferingGoal durationBackoff gapDetectionThreshold ignoreTextStreamFailures lowLatencyMode rebufferingGoal retryParameters safeSeekOffset stallEnabled stallSkip stallThreshold startAtSegmentBoundary".split(" "),GX="bandwidthDowngradeTarget bandwidthUpgradeTarget defaultBandwidthEstimate enabled initialRestrictions restrictions switchInterval".split(" ");_.w($V,RV);$V.prototype.init=function(){var a=this.player,b=a.a;b&&(this.a&&this.a.removeUpdateListener(this.w),this.a=b,this.a.addUpdateListener(this.w),this.o=a.l)};$V.prototype.destroy=function(){var a=this;return _.I(function(b){a.a&&(a.a.removeUpdateListener(a.w),a.a=null);return _.x(b,RV.prototype.destroy.call(a),0)})};$V.prototype.Ba=function(a){var b=this.player.l;b&&b.isPlayingBreak||RV.prototype.Ba.call(this,a)};
|
|
43
|
+
$V.prototype.gc=function(){if(this.a&&this.o&&!this.o.isPlayingBreak)switch(this.a.playerState){case chrome.cast.media.PlayerState.IDLE:switch(this.a.idleReason){case chrome.cast.media.IdleReason.FINISHED:this.Ba(5);break;case chrome.cast.media.IdleReason.ERROR:this.Ba(_.Ko);break;default:this.Ba(_.gu)}break;case chrome.cast.media.PlayerState.PLAYING:this.Ba(3);break;case chrome.cast.media.PlayerState.PAUSED:this.Ba(4);break;case chrome.cast.media.PlayerState.BUFFERING:this.Ba(2)}};_.w(aW,_.zt);_.r=aW.prototype;_.r.initialize=function(a){this.a=a};_.r.release=function(){this.h=[];this.f={}};
|
|
44
|
+
_.r.load=function(){this.release();var a=this.a.a;a&&(a=a.media)&&(this.h=(a=a.tracks)?a.map(function(b){switch(b.type){case chrome.cast.media.TrackType.VIDEO:var c=_.dt;break;case chrome.cast.media.TrackType.AUDIO:c=_.X;break;case chrome.cast.media.TrackType.TEXT:c=_.ct}c=new _.at(b.trackId.toString(),c);c.kind=b.subtype;c.language=b.language;c.label=b.name;c.src=b.trackContentId;c.mimeType=b.trackContentType;if(b.customData){c.src=b.customData.url||c.src;c.mimeType=b.customData.mimeType||c.mimeType;
|
|
45
|
+
var d=b.customData.roles;d&&(c.roles=d);if(b=b.customData.audioTrackInfo)void 0!==b.numAudioChannels&&(c.channelsCount=b.numAudioChannels),void 0!==b.spatialAudio&&(c.spatialAudio=b.spatialAudio)}c.renditions.push(new _.jt(c.id,c));return c}):[],this.a.trigger(new _.Q(_.wg)))};_.r.destroy=function(){this.a=null};_.r.getVideoTracks=function(){return cW(this,_.dt)};_.r.getAudioTracks=function(){return cW(this,_.X)};_.r.pa=function(){return cW(this,_.ct)};
|
|
46
|
+
_.r.qa=function(){var a=this.Ma();return a?a.renditions[0]:null};_.r.Ta=function(){var a=this.oa();return a?a.renditions[0]:null};_.r.Ya=function(){var a=this.wa();return a?a.renditions[0]:null};_.r.yb=function(){return this.f[_.dt]||null};_.r.Mb=function(){return this.f[_.X]||null};_.r.Nb=function(){return this.f[_.ct]||null};_.r.Ma=function(){return dW(this,_.dt)};_.r.oa=function(){return dW(this,_.X)};_.r.wa=function(){return dW(this,_.ct)};_.r.Gb=function(a){fW(this,_.dt,a)};
|
|
47
|
+
_.r.Ha=function(a){fW(this,_.X,a)};_.r.Za=function(a){fW(this,_.ct,a)};_.r.qb=function(a){this.Gb(a&&a.track)};_.r.Eb=function(a){this.Ha(a&&a.track)};_.r.Fb=function(a){this.Za(a&&a.track)};_.r.addTextTrack=function(){return _.I(function(a){_.z(a)})};_.r.xa=function(){return!0};aW.prototype.isAbrEnabled=aW.prototype.xa;aW.prototype.addTextTrack=aW.prototype.addTextTrack;aW.prototype.setTextRendition=aW.prototype.Fb;aW.prototype.setAudioRendition=aW.prototype.Eb;aW.prototype.setVideoRendition=aW.prototype.qb;
|
|
48
|
+
aW.prototype.setTextTrack=aW.prototype.Za;aW.prototype.setAudioTrack=aW.prototype.Ha;aW.prototype.setVideoTrack=aW.prototype.Gb;aW.prototype.getTextTrack=aW.prototype.wa;aW.prototype.getAudioTrack=aW.prototype.oa;aW.prototype.getVideoTrack=aW.prototype.Ma;aW.prototype.getLoadingTextRendition=aW.prototype.Nb;aW.prototype.getLoadingAudioRendition=aW.prototype.Mb;aW.prototype.getLoadingVideoRendition=aW.prototype.yb;aW.prototype.getTextRendition=aW.prototype.Ya;aW.prototype.getAudioRendition=aW.prototype.Ta;
|
|
49
|
+
aW.prototype.getVideoRendition=aW.prototype.qa;aW.prototype.getTextTracks=aW.prototype.pa;aW.prototype.getAudioTracks=aW.prototype.getAudioTracks;aW.prototype.getVideoTracks=aW.prototype.getVideoTracks;_.w(jW,_.zi);_.r=jW.prototype;_.r.init=function(a,b){this.h=this.J=b};_.r.unload=function(){var a=this;return new Promise(function(b,c){a.f&&a.f.release();a.a&&!a.a.idleReason||b();a.a.stop(null,b,c)})};_.r.release=function(){var a=this;return this.unload().then(function(){a.j&&a.j.release()})};_.r.getTimeline=function(){return null};_.r.setupPlaylist=function(){return Promise.reject(_.mb)};_.r.appendLoad=function(){return Promise.reject(_.mb)};_.r.seekWith=function(){return Promise.reject(_.mb)};
|
|
50
|
+
_.r.setSeekInterceptor=function(){};_.r.setPlaybackSessionId=function(){};_.r.getBandwidthEstimate=function(){return null};_.r.destroy=function(){return _.I(function(a){_.z(a)})};_.r.He=function(a){this.O=a};_.r.Nc=function(){return this.w};_.r.Ca=function(){return this.A};_.r.qg=function(){return this.ka};
|
|
51
|
+
_.r.sendMessage=function(a,b){var c=this,d,e,f;return _.I(function(g){switch(g.a){case 1:e=cast.framework.CastContext.getInstance().getCurrentSession();if(!e){d=new _.N(1,8,8004,void 0);g.C(2);break}_.F(g,3);return _.x(g,e.sendMessage(a,SV(b)),5);case 5:_.G(g,2);break;case 3:f=_.H(g),d=new _.N(1,8,8E3,{detailedErrorCode:f});case 2:if(d)c.onError(d);_.z(g)}})};
|
|
52
|
+
_.r.cast=function(){var a=this,b,c;return _.I(function(d){if(1==d.a){if(!a.Nc())throw a.g.warn(JV),new _.N(1,8,8001,void 0);if(!pW)throw a.g.warn(GV),new _.N(1,8,8002,void 0);if(a.Ca())throw a.g.warn("Already casting"),new _.N(1,8,8003,void 0);_.F(d,2);return _.x(d,tW(a),4)}if(2!=d.a)return _.G(d,0);b=_.H(d);c={};b instanceof chrome.cast.Error?(c.detailedErrorCode=b.code,c.details=b.details,c.reason=b.description):c.detailedErrorCode=b;throw new _.N(1,8,8E3,c);})};_.r.lf=function(){this.Ca()&&cast.framework.CastContext.getInstance().endCurrentSession(!0)};
|
|
53
|
+
_.r.addMessageListener=function(a){typeof a===_.oe&&this.I.add(a)};_.r.removeMessageListener=function(a){typeof a===_.oe&&this.I["delete"](a)};_.r.play=function(){var a=this;return this.isEnded()?vW(this,!0):new Promise(function(b,c){if(!a.a)return c(FV);a.a.play(null,b,c)})};_.r.pause=function(){var a=this;return new Promise(function(b,c){a.isEnded()&&b();if(!a.a)return c(FV);a.a.pause(null,b,c)})};_.r.isPaused=function(){return!!this.a&&this.a.playerState===chrome.cast.media.PlayerState.PAUSED};
|
|
54
|
+
_.r.isEnded=function(){return 5===this.getState()};_.r.seek=function(a){var b=this;return this.isEnded()?vW(this,!1,a):new Promise(function(c,d){b.a||d(FV);b.l.isPlayingBreak&&d(DV);var e=new chrome.cast.media.SeekRequest;e.currentTime=a;b.trigger(new _.Q(_.Ig));b.a.seek(e,function(){b.trigger(new _.Q(_.Hg));c()},d)})};_.r.getPosition=function(){return this.getMediaPosition()};_.r.getMediaPosition=function(){return this.a&&this.a.getEstimatedTime()||0};_.r.getDuration=function(){return this.getMediaDuration()};
|
|
55
|
+
_.r.getMediaDuration=function(){if(!this.a||!this.a.media)return-1;var a=this.a.media.duration;return typeof a!==_.k?-1:-1===a?Infinity:a};_.r.setDrmCustomDataModifier=function(){};_.r.setCdnErrorCallback=function(){};_.r.detach=function(){};_.r.getPlaybackRate=function(){return this.a&&this.a.playbackRate||0};_.r.setPlaybackRate=function(a){this.a&&0<a&&this.sendMessage(PV,{type:"SET_PLAYBACK_RATE",requestId:ZV(),mediaSessionId:this.a.mediaSessionId,playbackRate:a})};
|
|
50
56
|
_.r.getVolume=function(){return this.a&&this.a.volume.level};_.r.setVolume=function(a){this.a&&0<=a&&1>=a&&(a=new chrome.cast.media.VolumeRequest(new chrome.cast.Volume(a)),this.a.setVolume(a))};_.r.isMuted=function(){return this.a&&this.a.volume.muted};_.r.setMuted=function(a){this.a&&(a=new chrome.cast.media.VolumeRequest(new chrome.cast.Volume(void 0,a)),this.a.setVolume(a))};
|
|
51
|
-
_.r.getPresentationStartTime=function(){if(!this.a||!this.a.media||!this.a.media.metadata)return null;var a=this.a.media.metadata.sectionStartAbsoluteTime;return typeof a!==_.k?null:1E-8===a?0:a};_.r.getSeekRange=function(){var a={start:0,end:this.getDuration()};if(this.isLive()){var b=this.a.getEstimatedLiveSeekableRange();b&&typeof b.start===_.k&&typeof b.end===_.k&&(a={start:b.start,end:b.end})}return a};_.r.getState=function(){return this.j?this.j.getState():
|
|
52
|
-
_.r.getStats=function(){return this.a&&this.a.customData&&this.a.customData.stats?
|
|
53
|
-
_.r.
|
|
54
|
-
_.r.
|
|
55
|
-
_.r.
|
|
56
|
-
_.r.
|
|
57
|
-
_.r.
|
|
58
|
-
isLive:this.isLive()},currentTime:
|
|
59
|
-
_.r.
|
|
60
|
-
window.__onGCastApiAvailable=
|
|
61
|
-
_.r.cast=function(a){var
|
|
62
|
-
(
|
|
63
|
-
|
|
64
|
-
_.r.
|
|
65
|
-
_.r.addMessageListener=function(a){this.a?this.a.addMessageListener(a):this.g.warn(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
_.r.init=function(){var a=cast.framework.events.EventType,b=cast.framework.CastReceiverContext.getInstance().getPlayerManager();b.addEventListener(a.PLAYING,this.I);b.addEventListener(a.PAUSE,this.H);b.addEventListener(a.MEDIA_FINISHED,this.w);b.addEventListener(a.BUFFERING,this.o);b.addEventListener(a.SEEKING,this.K);b.addEventListener(a.SEEKED,this.J);b.addEventListener(a.STALLED,this.L);b.addEventListener(a.PLAYER_LOADING,this.G);b.addEventListener(a.ERROR,this.
|
|
57
|
+
_.r.getPresentationStartTime=function(){if(!this.a||!this.a.media||!this.a.media.metadata)return null;var a=this.a.media.metadata.sectionStartAbsoluteTime;return typeof a!==_.k?null:1E-8===a?0:a};_.r.getSeekRange=function(){var a={start:0,end:this.getDuration()};if(this.isLive()){var b=this.a.getEstimatedLiveSeekableRange();b&&typeof b.start===_.k&&typeof b.end===_.k&&(a={start:b.start,end:b.end})}return a};_.r.getState=function(){return this.j?this.j.getState():7};
|
|
58
|
+
_.r.getStats=function(){return this.a&&this.a.customData&&this.a.customData.stats?TV(this.a.customData.stats):_.fu()};_.r.isLive=function(){return Infinity===this.getDuration()};_.r.load=function(a){var b=this,c,d;return _.I(function(e){if(!b.Nc())return b.g.warn(JV),e["return"]();if(!pW)return b.g.warn(GV),e["return"]();b.D=_.Un(a);b.h=_.Qn([b.J,a]);c=b.D[b.B];d={source:c,isLive:c.isLive,autoplay:b.h.autoplay,pb:b.h,lc:c.lc,hb:c.hb};return _.x(e,uW(b,d),0)})};_.r.getBufferInfo=function(){return new _.ci};
|
|
59
|
+
_.r.getTrackManager=function(){return this.f};_.r.getConfiguration=function(){return this.h};_.r.getSurface=function(){return null};_.r.setNetworkEngine=function(a){this.L=a};_.r.getNetworkEngine=function(){return this.L};_.r.getSourceIndex=function(){return this.B};_.r.setSourceIndex=function(a){this.B=a};_.r.setCmsdManager=function(){};_.r.getLoadedSource=function(){return this.D[this.B]};_.r.getPeriods=function(){return[]};_.r.getDrmInfo=function(){return null};_.r.getTimelineCues=function(){return[]};
|
|
60
|
+
_.r.getCueTimeline=function(){return null};_.r.resetAbr=function(){this.g.warn(IV)};_.r.onError=function(a){if(a&&(this.trigger(new _.Q(_.ke,{detail:a})),this.j))this.j.onError(a)};_.r.namespace=function(){return _.rd};_.r.canPlay=function(){return this.Nc()?2:0};_.r.Kb=function(){return this.K};_.r.jc=function(a){this.K=mW(a)};_.r.ig=function(){this.K=null};_.r.Tg=function(a){var b=this.Kb()||{};a={metadataType:nW(b.metadataType),title:a};this.jc(Object.assign({},b,a))};
|
|
61
|
+
_.r.Rg=function(a){var b=this.Kb()||{},c=nW(b.metadataType);a=new chrome.cast.Image(a);this.jc(Object.assign({},b,{metadataType:c,images:[a]}))};_.r.Qg=function(a){var b=this.Kb()||{};this.jc(Object.assign({},b,{metadataType:3,artist:a}))};_.r.Sg=function(a){var b=this.Kb()||{};a={metadataType:nW(b.metadataType),releaseDate:a};this.jc(Object.assign({},b,a))};
|
|
62
|
+
_.r.rn=function(a){var b=cast.framework.CastContext.getInstance(),c=a.castState===cast.framework.CastState.CONNECTED;pW=a.castState!==cast.framework.CastState.NO_DEVICES_AVAILABLE;this.ka=c?b.getCurrentSession().getCastDevice().friendlyName:"";this.o.Zg()};
|
|
63
|
+
_.r.Nn=function(a){this.g.debug("state: "+a.sessionState+", details:",a);switch(a.sessionState){case cast.framework.SessionState.SESSION_STARTED:this.A=!0;sW(this,a.session);break;case cast.framework.SessionState.SESSION_RESUMED:this.Ca()||(this.A=!0,sW(this,a.session),this.ja());break;case cast.framework.SessionState.SESSION_ENDED:if(this.Ca()&&this.a){var b=this.a.media,c=this.f.oa(),d=this.f.wa();c=c&&c.language||void 0;d=d&&d.language||void 0;this.Z(this.getState(),{source:{url:b.contentId,type:b.contentType,
|
|
64
|
+
isLive:this.isLive()},currentTime:qW(this),Gj:d,th:c})}a.session.removeEventListener(cast.framework.SessionEventType.MEDIA_SESSION,this.fa);a.session.removeMessageListener(OV,this.U);this.A=!1;this.a=null;this.H.release();this.l=this.G=null}};_.r.Dn=function(a){this.g.debug("New media session",a.mediaSession);rW(this,a.mediaSession)};_.r.Cn=function(a){a.value&&a.value.tracks&&this.f&&this.f.load()};_.r.wn=function(a,b){if(a===OV&&0<this.I.size){var c=TV(b);this.I.forEach(function(d){return d(c)})}};
|
|
65
|
+
_.r.tk=function(){this.trigger(new _.Q(_.vg))};_.r.Gl=function(a){var b=this,c,d;return _.I(function(e){if(1==e.a)return c=null,_.x(e,VV(a,[_.og,_.Lc],b.L,b.h),2);if(d=e.f)c=new chrome.cast.media.Track(b.Ja++,chrome.cast.media.TrackType.TEXT),c.language=d.language,c.name=d.label||null,c.trackContentId=d.url,c.trackContentType=d.mimeType,c.customData={mimeType:a.mimeType,url:a.url};return e["return"](c)})};_.r.getTextDisplayer=function(){return null};var pW=!1,iW=new Set;
|
|
66
|
+
window.__onGCastApiAvailable=gW;_.w(EW,_.zi);_.r=EW.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.a?_.x(b,kW(a.a),3):b.C(2);2!=b.a&&(a.a=null);a.f&&a.stopForwardingEventsTo(a.f);_.z(b)})};_.r.vo=function(a,b){this.f&&5!==a&&a!==_.gu&&(delete b.license,this.f.load(b))};_.r.jd=function(){return!!this.a&&this.a.Nc()&&pW};_.r.Ca=function(){return!!this.a&&this.a.Ca()};_.r.qg=function(){return this.a?this.a.qg():""};_.r.He=function(a){this.a&&this.a.He(a)};
|
|
67
|
+
_.r.cast=function(a,b){var c=this,d,e,f;return _.I(function(g){switch(g.a){case 1:if(!c.a)return g["return"]();_.F(g,2);return _.x(g,c.a.cast(),4);case 4:if(!c.f||!c.a)return g["return"]();var h=null,l=c.f.getLoadedSource();if(l){var m=c.f.getTrackManager();h=m.getVideoTracks()[0];if(h&&h.mimeType)var n=h.mimeType;h=c.f.getConfiguration();var p=m.oa();if(p){if(p.mimeType)var q=p.mimeType;p.language&&(h.preferredAudioLanguage=p.language);p.roles.length&&(h.preferredAudioRole=p.roles[0])}if(m=m.wa())m.language&&
|
|
68
|
+
(h.preferredTextLanguage=m.language),m.roles.length&&(h.preferredTextRole=m.roles[0]);m=l&&typeof l.isLive===_.Yc?l.isLive:c.f.isLive();h={source:l,isLive:m,autoplay:!c.f.isPaused(),currentTime:Math.max(c.f.getPosition()-1,0),Kg:c.f.getPresentationStartTime(),lc:n,hb:q,pb:h}}d=h;b&&d&&(d.queueData={items:b.items,startIndex:b.startIndex});return _.x(g,JW(c),5);case 5:if(!c.a)return g["return"]();d&&(d.autoplay=!c.f.isPaused());if(a)return _.x(g,c.f.load(a),7);if(c.a.a){g.C(7);break}return _.x(g,uW(c.a,
|
|
69
|
+
d),7);case 7:_.G(g,0);break;case 2:e=_.H(g),c.g.error("Error while trying to cast",e),f=new _.Q(_.ke,{detail:e}),c.trigger(f),_.z(g)}})};_.r.lf=function(){this.a&&this.a.lf()};_.r.mk=function(a){var b=this;return _.I(function(c){if(1==c.a){if(a===b.h)return c["return"]();b.h=a;return b.a?_.x(c,kW(b.a),2):c.C(2)}b.a=zW(b);_.z(c)})};_.r.sendMessage=function(a){var b=this;return _.I(function(c){return b.a?_.x(c,b.a.sendMessage(OV,a),0):(b.g.warn(KV),c["return"]())})};
|
|
70
|
+
_.r.tj=function(){var a=this;return _.I(function(b){return _.x(b,a.a.sendMessage(PV,{type:"QUEUE_NEXT",requestId:ZV(),mediaSessionId:a.a.a.mediaSessionId}),0)})};_.r.uj=function(){var a=this;return _.I(function(b){return _.x(b,a.a.sendMessage(PV,{type:"QUEUE_PREV",requestId:ZV(),mediaSessionId:a.a.a.mediaSessionId}),0)})};_.r.sj=function(a){var b=this;return _.I(function(c){return _.x(c,b.a.sendMessage(PV,{type:"QUEUE_INSERT",requestId:ZV(),mediaSessionId:b.a.a.mediaSessionId,items:a}),0)})};
|
|
71
|
+
_.r.addMessageListener=function(a){this.a?this.a.addMessageListener(a):this.g.warn(KV)};_.r.removeMessageListener=function(a){this.a?this.a.removeMessageListener(a):this.g.warn(KV)};_.r.Kb=function(){return this.a&&this.a.Kb()};_.r.jc=function(a){this.a&&this.a.jc(a)};_.r.ig=function(){this.a&&this.a.ig()};_.r.Tg=function(a){this.a&&this.a.Tg(a)};_.r.Rg=function(a){this.a&&this.a.Rg(a)};_.r.Qg=function(a){this.a&&this.a.Qg(a)};_.r.Sg=function(a){this.a&&this.a.Sg(a)};_.K(LV,EW);
|
|
72
|
+
EW.prototype.setContentReleaseDate=EW.prototype.Sg;EW.prototype.setContentArtist=EW.prototype.Qg;EW.prototype.setContentImage=EW.prototype.Rg;EW.prototype.setContentTitle=EW.prototype.Tg;EW.prototype.clearContentMetadata=EW.prototype.ig;EW.prototype.setContentMetadata=EW.prototype.jc;EW.prototype.getContentMetadata=EW.prototype.Kb;EW.prototype.removeMessageListener=EW.prototype.removeMessageListener;EW.prototype.addMessageListener=EW.prototype.addMessageListener;EW.prototype.queueAddItems=EW.prototype.sj;
|
|
73
|
+
EW.prototype.queuePreviousItem=EW.prototype.uj;EW.prototype.queueNextItem=EW.prototype.tj;EW.prototype.sendMessage=EW.prototype.sendMessage;EW.prototype.changeReceiverId=EW.prototype.mk;EW.prototype.forceDisconnect=EW.prototype.lf;EW.prototype.cast=EW.prototype.cast;EW.prototype.setPlayerConfigInterceptor=EW.prototype.He;EW.prototype.getReceiverName=EW.prototype.qg;EW.prototype.isCasting=EW.prototype.Ca;EW.prototype.canCast=EW.prototype.jd;EW.prototype.destroy=EW.prototype.destroy;_.w(KW,RV);_.r=KW.prototype;
|
|
74
|
+
_.r.init=function(){var a=cast.framework.events.EventType,b=cast.framework.CastReceiverContext.getInstance().getPlayerManager();b.addEventListener(a.PLAYING,this.I);b.addEventListener(a.PAUSE,this.H);b.addEventListener(a.MEDIA_FINISHED,this.w);b.addEventListener(a.BUFFERING,this.o);b.addEventListener(a.SEEKING,this.K);b.addEventListener(a.SEEKED,this.J);b.addEventListener(a.STALLED,this.L);b.addEventListener(a.PLAYER_LOADING,this.G);b.addEventListener(a.ERROR,this.D);b.addEventListener(a.BITRATE_CHANGED,this.a)};
|
|
69
75
|
_.r.destroy=function(){var a=this,b,c;return _.I(function(d){b=cast.framework.events.EventType;c=cast.framework.CastReceiverContext.getInstance().getPlayerManager();c.removeEventListener(b.PLAYING,a.I);c.removeEventListener(b.PAUSE,a.H);c.removeEventListener(b.MEDIA_FINISHED,a.w);c.removeEventListener(b.BUFFERING,a.o);c.removeEventListener(b.SEEKING,a.K);c.removeEventListener(b.SEEKED,a.J);c.removeEventListener(b.STALLED,a.L);c.removeEventListener(b.PLAYER_LOADING,a.G);c.removeEventListener(b.ERROR,
|
|
70
|
-
a.
|
|
71
|
-
_.r.
|
|
72
|
-
_.r.
|
|
73
|
-
_.r.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
_.
|
|
83
|
-
|
|
84
|
-
_.r.
|
|
85
|
-
_.r.
|
|
86
|
-
a
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
_.r.
|
|
76
|
+
a.D);c.removeEventListener(b.BITRATE_CHANGED,a.a);return _.x(d,RV.prototype.destroy.call(a),0)})};_.r.Ak=function(){this.player.trigger(new _.Q(_.hf));this.Ba(3)};_.r.zk=function(){this.Ba(4)};_.r.yn=function(){this.Ba(5)};_.r.pn=function(a){a.isBuffering?this.Ba(2):(a=this.player.isPaused()?4:3,this.Ba(a))};_.r.Ck=function(){this.h=1;this.player.trigger(new _.Q(_.Ig))};_.r.Bk=function(){this.player.trigger(new _.Q(_.Hg))};_.r.Qn=function(){this.h=2};_.r.Bn=function(){this.Ba(1)};
|
|
77
|
+
_.r.xk=function(a){var b=this.player.getStats();this.player.trigger(new _.Q(_.Xc,{detail:{bandwidth:a.totalBitrate,width:b.width,height:b.height}}))};_.r.yk=function(a){a=new _.N(_.O,7,7300,{detailedErrorCode:a.detailedErrorCode,error:a.error,reason:a.reason});this.player.trigger(new _.Q(_.ke,{detail:a}));this.Ba(_.Ko)};_.w(LW,_.zi);_.r=LW.prototype;_.r.ke=function(){return this.a};_.r.getPosition=function(){return this.f};_.r.Lb=function(){return this.a[this.f]||null};_.r.wi=function(){return this.a[this.f+1]||null};_.r.append=function(a){this.a.push(a);NW(this)};_.r.Ci=function(a,b){0>b||b>this.a.length||(this.a.splice(b,0,a),NW(this))};_.r.remove=function(a){0>a||a>=this.a.length||a===this.f||(this.a.splice(a,1),this.f>a&&this.f--,NW(this))};_.r.clear=function(){this.a=[];this.f=0;NW(this)};_.w(PW,_.zi);_.r=PW.prototype;_.r.start=function(){this.h||this.f||(this.h=!0,this.m.on(_.je,this.l),QW(this),MW(this.a,this.a.getPosition()))};_.r.next=function(){var a=this.a.Lb();a&&!1===a.skippable||OW(this)};_.r.Ee=function(){var a=this.a.Lb();a&&!1===a.skippable||(QW(this),a=Math.max(0,this.a.getPosition()-1),MW(this.a,a))};_.r.vd=function(a){var b=this;return _.I(function(c){MW(b.a,a);_.z(c)})};_.r.stop=function(){this.h=!1;this.m.off(_.je,this.l);this.a.off(_.uf,this.o);this.j=!1};_.r=RW.prototype;_.r.In=function(a){return this.Tb.on(_.uf,a)};_.r.Jn=function(a){return this.Tb.on(_.wf,a)};_.r.sn=function(a){return this.player.on(_.ed,a)};_.r.jd=function(){return this.a.jd()};_.r.qm=function(){return this.Tb.ke()};_.r.Ca=function(){return this.a.Ca()};_.r.append=function(a){var b=this;return _.I(function(c){b.Tb.append(a);return b.a.Ca()?_.x(c,b.a.sj(SW([a])),0):c["return"]()})};_.r.fm=function(){return this.Tb.getPosition()};_.r.start=function(){this.Dd.start()};_.r.play=function(){this.player.play()};
|
|
78
|
+
_.r.pause=function(){this.player.pause()};_.r.destroy=function(){this.Dd.stop();this.a.removeMessageListener(this.f);this.a.destroy();this.player.release()};_.r.Ro=function(){var a=this,b,c;return _.I(function(d){if(a.a.Ca())return a.a.lf(),d["return"]();a.Dd.stop();b=SW(a.Tb.ke());c=a.Tb.getPosition();return _.x(d,a.a.cast(void 0,{items:b,startIndex:c}),0)})};
|
|
79
|
+
_.r.next=function(){var a=this;return _.I(function(b){return 1==b.a?a.a.Ca()?_.x(b,a.a.tj(),3):b.C(2):2!=b.a?b["return"]():_.x(b,a.Dd.next(),0)})};_.r.Ee=function(){var a=this;return _.I(function(b){return 1==b.a?a.a.Ca()?_.x(b,a.a.uj(),3):b.C(2):2!=b.a?b["return"]():_.x(b,a.Dd.Ee(),0)})};_.K("clpp.cast.playlist.CastPlaylist",RW);RW.prototype.previous=RW.prototype.Ee;RW.prototype.next=RW.prototype.next;RW.prototype.toggleCast=RW.prototype.Ro;RW.prototype.destroy=RW.prototype.destroy;
|
|
80
|
+
RW.prototype.pause=RW.prototype.pause;RW.prototype.play=RW.prototype.play;RW.prototype.start=RW.prototype.start;RW.prototype.getCurrentIndex=RW.prototype.fm;RW.prototype.append=RW.prototype.append;RW.prototype.isCasting=RW.prototype.Ca;RW.prototype.getPlaylistItems=RW.prototype.qm;RW.prototype.canCast=RW.prototype.jd;RW.prototype.onCastStatusChanged=RW.prototype.sn;RW.prototype.onPlaylistModified=RW.prototype.Jn;RW.prototype.onPlaylistItemChange=RW.prototype.In;_.r=TW.prototype;_.r.vb=function(){return"Google Cast Framework"};_.r.wb=function(){return cast.framework.VERSION};_.r.Bb=function(){return 0};_.r.getId=function(){return""};_.r.getCreativeId=function(){return""};_.r.$b=function(){return""};_.r.getApiFramework=function(){return null};_.r.getAdSystem=function(){return""};_.r.getAdvertiserName=function(){return""};_.r.getTitle=function(){return this.a.title||""};_.r.getDuration=function(){return this.a.duration||0};_.r.getPosition=function(){return 0};
|
|
81
|
+
_.r.getSkipTimeOffset=function(){return this.a.whenSkippable||0};_.r.ec=function(){return!1};_.r.xb=function(){return this.a.clickThroughUrl||null};_.r.getMediaUrl=function(){return this.a.contentUrl||this.a.contentId||null};_.r.lb=function(){return 0};_.r.kb=function(){return 0};_.r.Wa=function(){return 0};_.r.Xa=function(){switch(this.Ob()){case 0:return 0;case -1:return 2;default:return 1}};_.r.getPodIndex=function(){return this.j};_.r.Ob=function(){return this.f.position};_.r.zb=function(){return this.l};
|
|
82
|
+
_.r.nb=function(){return this.h};_.r.getWrapperAdIds=function(){return[]};_.r.canSeek=function(){return!1};_.r.getWrapperAdSystems=function(){return[]};_.r.getWrapperCreativeIds=function(){return[]};_.r.cc=function(){return null};TW.prototype.getVideoElement=TW.prototype.cc;TW.prototype.getWrapperCreativeIds=TW.prototype.getWrapperCreativeIds;TW.prototype.getWrapperAdSystems=TW.prototype.getWrapperAdSystems;TW.prototype.canSeek=TW.prototype.canSeek;TW.prototype.getWrapperAdIds=TW.prototype.getWrapperAdIds;
|
|
83
|
+
TW.prototype.getSequenceLength=TW.prototype.nb;TW.prototype.getPositionInSequence=TW.prototype.zb;TW.prototype.getPodTimeOffset=TW.prototype.Ob;TW.prototype.getPodIndex=TW.prototype.getPodIndex;TW.prototype.getPodType=TW.prototype.Xa;TW.prototype.getMediaBitrate=TW.prototype.Wa;TW.prototype.getMediaHeight=TW.prototype.kb;TW.prototype.getMediaWidth=TW.prototype.lb;TW.prototype.getMediaUrl=TW.prototype.getMediaUrl;TW.prototype.getClickThroughUrl=TW.prototype.xb;TW.prototype.isBumper=TW.prototype.ec;
|
|
84
|
+
TW.prototype.getSkipTimeOffset=TW.prototype.getSkipTimeOffset;TW.prototype.getPosition=TW.prototype.getPosition;TW.prototype.getDuration=TW.prototype.getDuration;TW.prototype.getTitle=TW.prototype.getTitle;TW.prototype.getAdvertiserName=TW.prototype.getAdvertiserName;TW.prototype.getAdSystem=TW.prototype.getAdSystem;TW.prototype.getApiFramework=TW.prototype.getApiFramework;TW.prototype.getSourceId=TW.prototype.$b;TW.prototype.getCreativeId=TW.prototype.getCreativeId;TW.prototype.getId=TW.prototype.getId;
|
|
85
|
+
TW.prototype.getTechnology=TW.prototype.Bb;TW.prototype.getAdManagerVersion=TW.prototype.wb;TW.prototype.getAdManagerName=TW.prototype.vb;UW.prototype.getCuePoints=function(){return this.a.map(function(a){return a.position})};UW.prototype.Rb=function(){return!!this.a.find(function(a){return 0===a.position})};UW.prototype.Qb=function(){return!!this.a.find(function(a){return-1===a.position})};UW.prototype.hasPostroll=UW.prototype.Qb;UW.prototype.hasPreroll=UW.prototype.Rb;UW.prototype.getCuePoints=UW.prototype.getCuePoints;_.r=WW.prototype;_.r.load=function(){var a=this;return _.I(function(b){XW&&(XW=!1,bX(a,0));_.z(b)})};_.r.start=function(){return _.I(function(a){VW().play();_.z(a)})};_.r.ld=function(){};_.r.resume=function(){-1!==this.getPosition()&&VW().play()};_.r.pause=function(){-1!==this.getPosition()&&VW().pause()};_.r.skip=function(){};_.r.getVolume=function(){return this.m.getVolume()||0};_.r.setVolume=function(a){this.m.setVolume(a)};
|
|
86
|
+
_.r.getPosition=function(){var a=this.a&&this.a.getBreakClipCurrentTimeSec();return typeof a===_.k?a:-1};_.r.hd=function(){return!0};_.r.Gc=function(){var a=this;return _.I(function(b){VW().removeEventListener(a.f,a.h);_.z(b)})};
|
|
87
|
+
_.r.Dk=function(a){var b=cast.framework.events.EndedReason;switch(a.type){case cast.framework.events.EventType.PLAYER_LOADING:this.a=VW().getBreakManager();this.a.setPlayWatchedBreak(!0);a=this.a.getBreaks();this.m.trigger(new _.Q(_.Bc,{adsTimeline:new UW(a)}));break;case cast.framework.events.EventType.BREAK_CLIP_LOADING:aX(this,_.rc,a);break;case cast.framework.events.EventType.BREAK_STARTED:aX(this,_.gc,a);break;case cast.framework.events.EventType.BREAK_ENDED:aX(this,_.hc,a);break;case cast.framework.events.EventType.BREAK_CLIP_STARTED:aX(this,
|
|
88
|
+
_.xc,a);break;case cast.framework.events.EventType.BREAK_CLIP_ENDED:a.endedReason===b.SKIPPED?(aX(this,_.wc,a),aX(this,_.yc,a)):a.endedReason===b.STOPPED?aX(this,_.yc,a):a.endedReason===b.END_OF_STREAM?(aX(this,_.kc,a),aX(this,_.yc,a)):a.endedReason===b.ERROR&&bX(this,1);break;case cast.framework.events.EventType.PLAYING:aX(this,_.vc,a);break;case cast.framework.events.EventType.PAUSE:aX(this,_.tc,a);break;case cast.framework.events.EventType.BUFFERING:a.isBuffering?aX(this,_.ic,a):aX(this,_.vc,a)}};
|
|
89
|
+
WW.prototype.getPosition=WW.prototype.getPosition;WW.prototype.setVolume=WW.prototype.setVolume;WW.prototype.getVolume=WW.prototype.getVolume;WW.prototype.skip=WW.prototype.skip;WW.prototype.pause=WW.prototype.pause;WW.prototype.resume=WW.prototype.resume;var XW=!1;cX.prototype.init=function(){cast.framework.CastReceiverContext.getInstance().getPlayerManager().addEventListener(dX(),this.f)};cX.prototype.release=function(){cast.framework.CastReceiverContext.getInstance().getPlayerManager().removeEventListener(dX(),this.f)};cX.prototype.getTimelineCues=function(){return cast.framework.CastReceiverContext.getInstance().getPlayerManager().getTimedMetadata().map(function(a){return eX(a)})};
|
|
90
|
+
cX.prototype.h=function(a){if(a instanceof cast.framework.events.TimedMetadataEvent){var b=null;switch(a.type){case cast.framework.events.EventType.TIMED_METADATA_CHANGED:b=_.rg;break;case cast.framework.events.EventType.TIMED_METADATA_ENTER:b=_.sg;break;case cast.framework.events.EventType.TIMED_METADATA_EXIT:b=_.tg}b&&this.a(new _.Q(b,{detail:eX(a.timedMetadataInfo)}))}else for(a=_.v(this.getTimelineCues()),b=a.next();!b.done;b=a.next())this.a(new _.Q(_.rg,{detail:b.value}))};_.w(fX,_.zt);_.r=fX.prototype;_.r.initialize=function(a){this.m=a;gX().addEventListener(cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,this.l)};_.r.release=function(){this.h=[];this.j=[];this.a=this.f=null};_.r.load=function(){};_.r.destroy=function(){this.m=null;gX().removeEventListener(cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,this.l)};_.r.getVideoTracks=function(){return[]};_.r.getAudioTracks=function(){return this.h};_.r.pa=function(){return this.j};_.r.qa=function(){return null};
|
|
91
|
+
_.r.Ta=function(){var a=this.oa();return a&&a.renditions[0]};_.r.Ya=function(){var a=this.wa();return a&&a.renditions[0]};_.r.yb=function(){return null};_.r.Mb=function(){return null};_.r.Nb=function(){return null};_.r.Ma=function(){return null};_.r.oa=function(){var a=null;if(this.f){var b=this.f.getActiveId();typeof b===_.k&&(b=b.toString(),a=this.getAudioTracks().find(function(c){return c.id===b})||null)}return a};
|
|
92
|
+
_.r.wa=function(){var a=null;if(this.a){var b=this.a.getActiveIds()[0];typeof b===_.k&&(b=b.toString(),a=this.pa().find(function(c){return c.id===b})||null)}return a};_.r.Gb=function(){this.g.warn("Video tracks unavailable on Cast")};_.r.Ha=function(a){a&&this.f&&this.f.setActiveById(+a.id)};_.r.Za=function(a){this.a&&(a?this.a.setActiveByIds([+a.id]):this.a.setActiveByIds([]))};_.r.qb=function(){this.g.warn("Video renditions unavailable on Cast")};_.r.Eb=function(a){this.Ha(a&&a.track)};
|
|
93
|
+
_.r.Fb=function(a){this.Za(a&&a.track)};
|
|
94
|
+
_.r.addTextTrack=function(a){var b=this,c,d,e;return _.I(function(f){if(1==f.a)return c=b.m.getConfiguration(),_.x(f,VV(a,Object.values(cast.framework.messages.CaptionMimeType),b.m.getNetworkEngine(),c),2);if((d=f.f)&&b.a){e=new cast.framework.messages.Track(b.o++,cast.framework.messages.TrackType.TEXT);e.isInband=!1;e.language=d.language;e.name=d.label;e.subtype=d.kind;e.trackContentId=d.url;e.trackContentType=d.mimeType;e.customData={mimeType:a.mimeType,url:a.url};try{b.a.addTracks([e]),iX(b)}catch(g){throw b.g.warn("failed on track",
|
|
95
|
+
a),g;}}_.z(f)})};_.r.xa=function(){return!0};_.r.ko=function(){this.f=gX().getAudioTracksManager();var a=this.f.getTracks();this.h=hX(_.X,a);iX(this);a=this.m.getConfiguration();jX(this,_.X,a.preferredAudioLanguage,a.preferredAudioRole);jX(this,_.ct,a.preferredTextLanguage,a.preferredTextRole)};fX.prototype.isAbrEnabled=fX.prototype.xa;fX.prototype.addTextTrack=fX.prototype.addTextTrack;fX.prototype.setTextRendition=fX.prototype.Fb;fX.prototype.setAudioRendition=fX.prototype.Eb;
|
|
96
|
+
fX.prototype.setVideoRendition=fX.prototype.qb;fX.prototype.setTextTrack=fX.prototype.Za;fX.prototype.setAudioTrack=fX.prototype.Ha;fX.prototype.setVideoTrack=fX.prototype.Gb;fX.prototype.getTextTrack=fX.prototype.wa;fX.prototype.getAudioTrack=fX.prototype.oa;fX.prototype.getVideoTrack=fX.prototype.Ma;fX.prototype.getLoadingTextRendition=fX.prototype.Nb;fX.prototype.getLoadingAudioRendition=fX.prototype.Mb;fX.prototype.getLoadingVideoRendition=fX.prototype.yb;fX.prototype.getTextRendition=fX.prototype.Ya;
|
|
97
|
+
fX.prototype.getAudioRendition=fX.prototype.Ta;fX.prototype.getVideoRendition=fX.prototype.qa;fX.prototype.getTextTracks=fX.prototype.pa;fX.prototype.getAudioTracks=fX.prototype.getAudioTracks;fX.prototype.getVideoTracks=fX.prototype.getVideoTracks;_.w(kX,_.zi);_.r=kX.prototype;_.r.init=function(a,b){var c=this;this.B=a;b&&(this.h=this.w=b);var d=lX();d.setMessageInterceptor(cast.framework.messages.MessageType.MEDIA_STATUS,this.uk.bind(this));d.setMediaPlaybackInfoHandler(this.bk.bind(this));this.a=new KW(this);this.a.init();this.j=new fX;this.j.initialize(this);this.o=new cX(function(e){return c.trigger(e)});this.o.init()};
|
|
98
|
+
_.r.unload=function(){var a=cast.framework.messages.PlayerState,b=lX();b.getPlayerState()!==a.IDLE&&b.stop();this.j&&this.j.release();this.o&&this.o.release();this.f=null;return Promise.resolve()};_.r.release=function(){var a=this;return this.unload().then(function(){a.a&&a.a.release()})};_.r.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.B=null,a.w=_.On(),a.h=a.w,a.l=-1,a.A=null,a.a?_.x(b,a.a.destroy(),3):b.C(2);2!=b.a&&(a.a=null);a.j&&(a.j.destroy(),a.j=null);_.z(b)})};
|
|
99
|
+
_.r.play=function(){var a=lX();if(null!==a.getBreakManager().getBreakClipCurrentTimeSec())return Promise.reject("Cannot play during ads playout.");a.play();return Promise.resolve()};_.r.pause=function(){var a=lX();if(null!==a.getBreakManager().getBreakClipCurrentTimeSec())return Promise.reject("Cannot pause during ads playout.");a.pause();return Promise.resolve()};_.r.isPaused=function(){return lX().getPlayerState()===cast.framework.messages.PlayerState.PAUSED};
|
|
100
|
+
_.r.isEnded=function(){return lX().getPlayerState()===cast.framework.messages.PlayerState.IDLE};_.r.seek=function(a){var b=lX();if(null!==b.getBreakManager().getBreakClipCurrentTimeSec())return Promise.reject(DV);b.seek(a);return Promise.resolve()};_.r.getPosition=function(){return this.getMediaPosition()};_.r.setSeekInterceptor=function(){};_.r.setPlaybackSessionId=function(){};_.r.getBandwidthEstimate=function(){return null};_.r.getMediaPosition=function(){return lX().getCurrentTimeSec()};
|
|
101
|
+
_.r.getDuration=function(){return this.getMediaDuration()};_.r.getMediaDuration=function(){var a=lX().getDurationSec();return typeof a===_.k?-1===a?Infinity:a:-1};_.r.getPlaybackRate=function(){return lX().getPlaybackRate()};_.r.setPlaybackRate=function(a){if(0<a){var b=new cast.framework.messages.SetPlaybackRateRequestData;b.playbackRate=a;lX().sendLocalMediaRequest(b)}};_.r.getVolume=function(){return cast.framework.CastReceiverContext.getInstance().getSystemVolume().level||null};
|
|
93
102
|
_.r.setVolume=function(a){0<=a&&1>=a&&cast.framework.CastReceiverContext.getInstance().setSystemVolumeLevel(a)};_.r.setMuted=function(a){cast.framework.CastReceiverContext.getInstance().setSystemVolumeMuted(a)};_.r.isMuted=function(){return cast.framework.CastReceiverContext.getInstance().getSystemVolume().muted||null};
|
|
94
|
-
_.r.getLoadedSource=function(){var a=
|
|
95
|
-
_.r.getSeekRange=function(){var a={start:0,end:this.getDuration()};if(this.isLive()){var b=
|
|
96
|
-
_.r.getStats=function(){var a=_.
|
|
97
|
-
_.r.load=function(a){var b=this,c,d;return _.I(function(e){b.f=new _.
|
|
98
|
-
_.r.getTrackManager=function(){return this.j};_.r.getConfiguration=function(){return this.h};_.r.getSurface=function(){return this.B};_.r.getTimeline=function(){return null};_.r.setupPlaylist=function(){return Promise.reject(_.
|
|
99
|
-
_.r.setSourceIndex=function(a){this.l=a};_.r.getPeriods=function(){return[]};_.r.namespace=function(){return
|
|
100
|
-
_.r.
|
|
101
|
-
(!e||e&&f)){d=
|
|
102
|
-
_.r.
|
|
103
|
-
|
|
104
|
-
_.r.start=function(){if(!this.a&&window.cast&&cast.framework&&cast.framework.CastReceiverContext){this.a=!0;var
|
|
105
|
-
d
|
|
106
|
-
_.r.stop=function(){if(this.a){this.a=!1;this.
|
|
107
|
-
_.r.removeMessageListener=function(a){typeof a===_.
|
|
108
|
-
_.r.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
break}return _.x(l,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
_.r.
|
|
118
|
-
|
|
103
|
+
_.r.getLoadedSource=function(){var a=lX().getMediaInformation();if(a){var b=lX().getPlaybackConfig();b=!!b&&b.protectionSystem!==cast.framework.ContentProtection.NONE;var c=this.A&&-1!==this.l?this.A[this.l]:null;c=c?c.name:void 0;!c&&a.metadata&&(c=a.metadata.title);return{url:a.contentId,type:a.contentType,Ap:b,name:c}}return null};_.r.getDrmInfo=function(){return null};_.r.getPresentationStartTime=function(){return lX().getStartAbsoluteTime()};
|
|
104
|
+
_.r.getSeekRange=function(){var a={start:0,end:this.getDuration()};if(this.isLive()){var b=lX().getLiveSeekableRange();b&&typeof b.start===_.k&&typeof b.end===_.k&&(a={start:b.start,end:b.end})}return a};_.r.getState=function(){return this.a?this.a.getState():7};
|
|
105
|
+
_.r.getStats=function(){var a=_.fu();if(this.f){a=lX().getStats();this.f.h=a.estimatedBandwidth||NaN;this.f.w=a.streamBandwidth||NaN;var b=this.f,c=a.height||NaN;b.A=a.width||NaN;b.j=c;b=this.f;c=typeof a.decodedFrames===_.k?a.decodedFrames:NaN;b.o=typeof a.droppedFrames===_.k?a.droppedFrames:NaN;b.l=c;a=this.f.getStats()}return a};_.r.isLive=function(){return Infinity===this.getDuration()};
|
|
106
|
+
_.r.load=function(a){var b=this,c,d;return _.I(function(e){b.f=new _.eu;b.a.j=b.f.a;b.A=_.Un(a);b.h=_.Qn([b.w,a]);if(b.D)return b.D=!1,e["return"]();c=b.A[b.l];d=new cast.framework.messages.LoadRequestData;d.autoplay=b.h.autoplay;typeof b.h.startTime===_.k&&(d.currentTime=b.h.startTime);c.type&&(d.media.contentType=c.type);d.media.contentId=c.url;d.media.customData={playerConfiguration:SV(b.h),local:!0};return _.x(e,lX().load(d),0)})};_.r.getBufferInfo=function(){this.g.warn(_.va);return new _.ci};
|
|
107
|
+
_.r.getTrackManager=function(){return this.j};_.r.getConfiguration=function(){return this.h};_.r.getSurface=function(){return this.B};_.r.getTimeline=function(){return null};_.r.setupPlaylist=function(){return Promise.reject(_.mb)};_.r.appendLoad=function(){return Promise.reject(_.mb)};_.r.seekWith=function(){return Promise.reject(_.mb)};_.r.setNetworkEngine=function(a){this.G=a};_.r.setCmsdManager=function(){};_.r.getNetworkEngine=function(){return this.G};_.r.getSourceIndex=function(){return this.l};
|
|
108
|
+
_.r.setSourceIndex=function(a){this.l=a};_.r.getPeriods=function(){return[]};_.r.namespace=function(){return MV};_.r.getTimelineCues=function(){return this.o&&this.o.getTimelineCues()||[]};_.r.getCueTimeline=function(){return null};_.r.resetAbr=function(){this.g.warn(IV)};_.r.onError=function(a){this.trigger(new _.Q(_.ke,{detail:a}))};_.r.canPlay=function(){return _.nj()?2:0};
|
|
109
|
+
_.r.uk=function(a){a=Object.assign({},a);a.customData||(a.customData={});a.customData.stats=SV(this.getStats());var b=lX(),c=a.media||b.getMediaInformation();b=b.getStartAbsoluteTime();c&&typeof b===_.k&&c.startAbsoluteTime!==b&&(this.g.info("Syncing startAbsoluteTime.Old value: "+(c.startAbsoluteTime+", new value: ")+b),c.startAbsoluteTime=b,a=Object.assign({},a,{media:c}));c=cast.framework.messages.StreamType;b=a.media;var d=!!b,e=this.isLive(),f=d&&!b.metadata,g=!!a.liveSeekableRange;if(d&&g&&
|
|
110
|
+
(!e||e&&f)){d=lX().getStartAbsoluteTime();if(typeof d===_.k){b.startAbsoluteTime=d;var h;f?h=new cast.framework.messages.GenericMediaMetadata:h=b.metadata;h.sectionStartAbsoluteTime=d;b.metadata=h}b.streamType=c.LIVE;a=Object.assign({},a,{media:b})}return a};
|
|
111
|
+
_.r.bk=function(a,b){var c=null,d=b;a.media.customData&&(c=TV(a.media.customData.playerConfiguration));var e=null,f=null;a.media.customData&&(e=TV(a.media.customData["com.castlabs.reactnative.PlayerConfiguration"]),f=TV(a.media.customData.playerConfiguration));var g=e&&e.LiveConfiguration;g=g?0===g.liveEdgeLatencyMs:!1;e=!(!e||!e.lowLatencyMode);d=null!=f&&f.lowLatencyMode||g||e?mX(d,{streaming:{lowLatencyMode:!0}}):d;if(!c)return d;f=c.chromecast||null;e=c.abr||null;g=d;e&&typeof e.defaultBandwidthEstimate===
|
|
112
|
+
_.k?g.initialBandwidth=e.defaultBandwidthEstimate:g.initialBandwidth=void 0;pX(c,d);e={};g=c.streaming||null;f&&f.useSenderStreamingConfig&&g&&(e.streaming=UV(g,FX));c=c.abr||null;f&&f.useSenderAbrConfig&&c&&(e.abr=UV(c,GX));_.M.Pb(e)&&(d=mX(d,e));return d};_.r.getTextDisplayer=function(){return null};_.r.setDrmCustomDataModifier=function(){};_.r.setCdnErrorCallback=function(){};_.r.detach=function(){};_.r=qX.prototype;_.r.init=function(a){var b=this;a&&(this.f=new kX,_.Po(a,this.f),this.m=a,this.A.on(window,"unload",function(){return _.I(function(c){return b.m&&b.m.getState()!==_.gu?_.x(c,QV(b.m),0):c.C(0)})}))};
|
|
113
|
+
_.r.start=function(){var a=this;if(!this.a&&window.cast&&cast.framework&&cast.framework.CastReceiverContext){this.a=!0;var b=tX(),c=tX().getPlayerManager(),d=new cast.framework.CastReceiverOptions;d.customNamespaces={};d.customNamespaces[OV]=cast.framework.system.MessageType.JSON;var e=new cast.framework.PlaybackConfig;e.manifestHandler=this.Tm.bind(this);e.shakaConfig={streaming:{ignoreTextStreamFailures:!0}};e.enableSmoothLiveRefresh=!0;d.playbackConfig=e;if(e=this.m&&this.m.getSurface().getMedia())d.mediaElement=
|
|
114
|
+
e;d.disableIdleTimeout=!0;d.maxInactivity=Infinity;this.h&&(d.queue=this.h);c.setMessageInterceptor(cast.framework.messages.MessageType.QUEUE_UPDATE,function(f){a.g.info("QUEUE_UPDATE message received",f);var g=a.getQueueManager();if(!g)return f;g=g.getCurrentItem();return g?(g=g.customData)&&!1===g.skippable?null:f:f});c.setMessageInterceptor(cast.framework.messages.MessageType.LOAD,this.Sm.bind(this));c.setMessageInterceptor(cast.framework.messages.MessageType.MEDIA_STATUS,this.Vm.bind(this));c.addEventListener(cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,
|
|
115
|
+
this.D);c.addEventListener(cast.framework.events.EventType.MEDIA_STATUS,this.wk.bind(this));b.start(d);b.addCustomMessageListener(OV,this.B)}};_.r.stop=function(){if(this.a){this.a=!1;this.A.release();var a=tX();tX().getPlayerManager().removeEventListener(cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,this.D);a.removeCustomMessageListener(OV,this.B);a.stop();this.l=this.h=this.m=this.f=null}};_.r.He=function(a){this.o=a};_.r.Do=function(a){this.w=a};
|
|
116
|
+
_.r.on=function(a,b){tX().addEventListener(a,b)};_.r.off=function(a,b){tX().removeEventListener(a,b)};_.r.addMessageListener=function(a){typeof a===_.oe&&this.j.add(a)};_.r.removeMessageListener=function(a){typeof a===_.oe&&this.j["delete"](a)};_.r.sendMessage=function(a,b){tX().sendCustomMessage(OV,b,SV(a))};_.r.Nc=function(){return this.a};_.r.Kb=function(){return uX()};_.r.jc=function(a){vX(this,a)};_.r.Xo=function(a){var b=uX(),c=null;a?c=Object.assign({},b,a):c=b;vX(this,c)};
|
|
117
|
+
_.r.Fo=function(a){this.h=a;this.l=null};_.r.getQueueManager=function(){return tX().getPlayerManager().getQueueManager()};_.r.wk=function(){var a=this.getQueueManager();a&&(a=a.getCurrentItemIndex(),this.l!==a&&(this.l=a,tX().sendCustomMessage(OV,void 0,{type:HV,index:a})))};
|
|
118
|
+
_.r.Tm=function(a){a=a.trim();if(a.startsWith("#EXTM3U"))return xX(this,a);try{var b=(new DOMParser).parseFromString(a,_.pg)}catch(t){return a}var c=b.getElementsByTagName("MPD")[0];if(c){a=c;this.g.debug("Detected DASH, parsing");b=tX();c=a.getElementsByTagName("Period");for(var d=c.length-1;0<=d;--d){for(var e=c[d].getElementsByTagName(_.ka),f=e.length-1;0<=f;--f){var g=e[f].getAttribute("contentType");if(g===_.Ng||g===_.Oc){g=e[f].getAttribute(_.Ne);for(var h=e[f].getElementsByTagName(_.Ab),l=
|
|
119
|
+
h.length-1;0<=l;--l){var m=h[l].getAttribute(_.Ne)||g,n=h[l].getAttribute(_.zd),p=h[l].getAttribute(_.bh)||void 0,q=h[l].getAttribute(_.pe)||void 0;void 0!==p&&(p=+p);void 0!==q&&(q=+q);b.canDisplayType(m,n,p,q)||e[f].removeChild(h[l])}e[f].getElementsByTagName(_.Ab).length||c[d].removeChild(e[f])}}c[d].getElementsByTagName(_.ka).length||a.removeChild(c[d])}return(new XMLSerializer).serializeToString(a)}if(c=b.getElementsByTagName(_.Jb)[0]){a=c;this.g.debug("Detected Smooth, parsing");b=tX();c=a.getElementsByTagName("StreamIndex");
|
|
120
|
+
for(d=c.length-1;0<=d;--d)if(c[d].getAttribute("Type")===_.Ng){e=c[d].getElementsByTagName(_.yb);for(f=e.length-1;0<=f;--f)g=e[f].getAttribute(_.db)||void 0,h=e[f].getAttribute(_.cb)||void 0,void 0!==g&&(g=+g),void 0!==h&&(h=+h),b.canDisplayType(_.Pg,void 0,g,h)||c[d].removeChild(e[f]);c[d].getElementsByTagName(_.yb).length||a.removeChild(c[d])}a=(new XMLSerializer).serializeToString(a)}return a};
|
|
121
|
+
_.r.Sm=function(a){var b=this,c,d,e,f,g,h;return _.I(function(l){switch(l.a){case 1:c=a;c.media.customData&&(d=TV(c.media.customData.playerConfiguration));if(!b.m||!d){l.C(2);break}if(!b.o){l.C(3);break}return _.x(l,Promise.resolve(b.o(d)),4);case 4:d=(e=l.f)||d;case 3:if(!d.ima){l.C(5);break}return _.x(l,ZW(c.media,d.ima,b.m.getNetworkEngine()),5);case 5:typeof d.startTime===_.k&&d.startTime!==c.currentTime?c.currentTime=d.startTime:d.startTime=c.currentTime||null;if(c.media.customData.local){l.C(7);
|
|
122
|
+
break}b.f.D=!0;return _.x(l,_.Zo(b.m,d),8);case 8:return _.x(l,_.$o(b.m),9);case 9:f=b.m.getLoadedSource(),c.media.contentId=f.url,c.media.contentType=f.type,f.lc&&(c.media.hlsVideoSegmentFormat=WV(f.lc,_.dt)),f.hb&&(c.media.hlsSegmentFormat=WV(f.hb,_.X));case 7:if((g=c.media.metadata)&&typeof g.sectionStartAbsoluteTime===_.k){var m=g.sectionStartAbsoluteTime;g.sectionStartAbsoluteTime=0===m?1E-8:m}void 0===c.autoplay&&(c.autoplay=b.m.getConfiguration().autoplay);case 2:if(!b.w){l.C(10);break}return _.x(l,
|
|
123
|
+
Promise.resolve(b.w(c)),11);case 11:(h=l.f)&&(c=h);case 10:return l["return"](c)}})};_.r.Vm=function(a){var b=a.media;b&&b.tracks&&b.tracks.length&&yX(b.tracks);if((b=a.items)&&b.length){b=_.v(b);for(var c=b.next();!c.done;c=b.next())(c=(c=c.value)&&c.media)&&c.tracks&&c.tracks.length&&yX(c.tracks)}return a};
|
|
124
|
+
_.r.An=function(a){if(this.m&&(!a.media.customData||!a.media.customData.local)){a=_.M.Fm;var b=tX().getPlayerManager(),c=b.getLiveSeekableRange();if(c){var d=c.start;c=c.end;var e=this.m.getConfiguration().startTime;typeof d!==_.k||typeof c!==_.k||typeof e!==_.k||a(e,d,c)||(b=b.getMediaTimeForAbsoluteTime(e),typeof b===_.k&&a(b,d,c)&&this.m.seek(b))}_.Uo(this.m)}};_.r.vk=function(a){if(0<this.j.size){var b=TV(a.data);this.j.forEach(function(c){return c(b)})}};_.K(NV,qX);
|
|
125
|
+
qX.prototype.getQueueManager=qX.prototype.getQueueManager;qX.prototype.setQueue=qX.prototype.Fo;qX.prototype.updateContentMetadata=qX.prototype.Xo;qX.prototype.setContentMetadata=qX.prototype.jc;qX.prototype.getContentMetadata=qX.prototype.Kb;qX.prototype.isApiReady=qX.prototype.Nc;qX.prototype.sendMessage=qX.prototype.sendMessage;qX.prototype.removeMessageListener=qX.prototype.removeMessageListener;qX.prototype.addMessageListener=qX.prototype.addMessageListener;qX.prototype.off=qX.prototype.off;
|
|
126
|
+
qX.prototype.on=qX.prototype.on;qX.prototype.setLoadRequestDataInterceptor=qX.prototype.Do;qX.prototype.setPlayerConfigInterceptor=qX.prototype.He;qX.prototype.stop=qX.prototype.stop;qX.prototype.start=qX.prototype.start;qX.prototype.init=qX.prototype.init;qX.getInstance=sX;var rX=null;_.r=zX.prototype;_.r.load=function(){var a=this,b,c,d,e,f;return _.I(function(g){a.a=a.f.l;if(a.a)for(b=a.a.controller,c=a.Sn.bind(a),d=_.v(a.j),e=d.next();!e.done;e=d.next())f=e.value,a.h.on(b,f,c);_.z(g)})};_.r.start=function(){return _.I(function(a){_.z(a)})};_.r.ld=function(){};_.r.resume=function(){this.a&&this.a.isPlayingBreak&&this.a.isPaused&&this.a.controller.playOrPause()};_.r.pause=function(){this.a&&this.a.isPlayingBreak&&!this.a.isPaused&&this.a.controller.playOrPause()};
|
|
127
|
+
_.r.skip=function(){var a=this.f.a;a&&this.f.sendMessage(PV,{type:"SKIP_AD",requestId:ZV(),mediaSessionId:a.mediaSessionId})};_.r.getVolume=function(){return this.f.getVolume()||0};_.r.setVolume=function(a){this.f.setVolume(a)};_.r.getPosition=function(){var a=-1,b=this.f.a;b&&(b=b.getEstimatedBreakClipTime(),typeof b===_.k&&(a=b));return a};_.r.hd=function(){return!0};_.r.Gc=function(){var a=this;return _.I(function(b){a.h.release();_.z(b)})};
|
|
128
|
+
_.r.Sn=function(a){switch(a.field){case "mediaInfo":a.value&&(a=a.value,a.breaks&&this.f.trigger(new _.Q(_.Bc,{adsTimeline:new UW(a.breaks)})));break;case "isPlayingBreak":a.value?BX(this,_.gc):(BX(this,_.kc),BX(this,_.yc),BX(this,_.hc));break;case "currentBreakClipNumber":0<=a.value&&(0<a.value&&(BX(this,_.kc),BX(this,_.yc)),BX(this,_.xc));break;case "isPaused":this.a.isPlayingBreak&&(a.value?BX(this,_.tc):BX(this,_.vc))}};zX.prototype.getPosition=zX.prototype.getPosition;
|
|
129
|
+
zX.prototype.setVolume=zX.prototype.setVolume;zX.prototype.getVolume=zX.prototype.getVolume;zX.prototype.skip=zX.prototype.skip;zX.prototype.pause=zX.prototype.pause;zX.prototype.resume=zX.prototype.resume;CX.prototype.name=function(){return"clpp.cast.ads.SenderAdsManagerFactory"};CX.prototype.a=function(a,b){return a.namespace()!==_.rd?!1:!(!b||!b.ima)};CX.prototype.create=function(a){return new zX(a.a)};DX.prototype.name=function(){return"clpp.cast.ads.AdsManagerFactory"};DX.prototype.a=function(a,b){return sX().Nc()?!(!b||!b.ima):!1};DX.prototype.create=function(a){return new WW(a)};_.K("clpp.cast.createCastQueue",function(){EX=function(){return cast.framework.QueueBase.apply(this,arguments)||this};_.w(EX,cast.framework.QueueBase);EX.prototype.initialize=function(a){var b=a.queueData;b||(b=new cast.framework.messages.QueueData,b.name="queue",b.description="queue",b.items=[{media:a.media}],b.startTime=a.currentTime);return b};return new EX});_.ai(new CX);_.ai(new DX);};
|
|
119
130
|
if(typeof(module)!="undefined"&&module.exports){var x=require("./cl.core.js");_ = x._;(f.call(g,this));module.exports=g;}
|
|
120
131
|
else if (typeof(define)!="undefined"&&define.amd) {define(["./cl.core"], function(c){_=c._;(f.call(g,this));return g;});}
|
|
121
132
|
else{_=this.clpp._;(f.call(g,this));}
|