shaka-player 4.6.13 → 4.6.14
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/AUTHORS +1 -0
- package/CHANGELOG.md +16 -0
- package/CONTRIBUTORS +1 -0
- package/dist/locales.js +30 -30
- package/dist/shaka-player.compiled.debug.js +72 -72
- package/dist/shaka-player.compiled.debug.map +2 -2
- package/dist/shaka-player.compiled.js +88 -89
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.debug.js +86 -86
- package/dist/shaka-player.ui.debug.map +2 -2
- package/dist/shaka-player.ui.js +93 -94
- package/dist/shaka-player.ui.map +3 -3
- package/lib/dash/segment_template.js +18 -13
- package/lib/hls/hls_parser.js +2 -2
- package/lib/media/segment_reference.js +4 -1
- package/lib/media/streaming_engine.js +2 -2
- package/lib/player.js +1 -1
- package/lib/util/periods.js +23 -1
- package/lib/util/stream_utils.js +1 -1
- package/package.json +2 -2
- package/test/dash/dash_parser_segment_template_unit.js +1 -1
- package/test/media/buffering_observer_unit.js +13 -0
- package/test/test/util/waiter.js +5 -0
- package/test/transmuxer/transmuxer_integration.js +4 -4
- package/test/util/periods_unit.js +64 -0
|
@@ -59,7 +59,7 @@ function nb(a,b,c){c=void 0===c?Infinity:c;return pb(a,void 0===b?0:b,c,Uint8Arr
|
|
|
59
59
|
N("shaka.util.BufferUtils",kb);kb.toDataView=rb;kb.toUint16=qb;kb.toUint8=nb;kb.toArrayBuffer=ob;kb.equal=lb;function sb(){}sb.prototype.init=function(){};sb.prototype.i=function(){};sb.prototype.h=function(){};sb.prototype.j=function(){};N("shaka.media.IClosedCaptionParser",sb);function tb(a){this.l=new ib;if(a=ub[a.toLowerCase()])this.l=a();this.g=new hb;if(a=vb)this.g=a()}tb.prototype.init=function(a){this.l.init(a)};tb.prototype.i=function(a){a=this.l.parse(a);a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=nb(b.packet);0<c.length&&this.g.extract(c,b.pts)}return this.g.decode()};
|
|
60
60
|
tb.prototype.h=function(){this.g.clear()};tb.prototype.j=function(){return this.g.getStreams()};N("shaka.media.ClosedCaptionParser",tb);tb.findDecoder=function(){return vb};tb.unregisterDecoder=function(){vb=null};tb.registerDecoder=function(a){vb=a};tb.findParser=function(a){return ub[a]};tb.unregisterParser=function(a){delete ub[a]};tb.registerParser=function(a,b){ub[a]=b};var ub={},vb=null;function wb(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function zb(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function Ab(a,b,c){c||(c=wb);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Wd:d.Wd},e=a.next()){d.Wd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Wd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
|
|
61
61
|
function Bb(a,b,c){c||(c=wb);if(a.length!=b.length)return!1;for(var d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0};function Cb(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Db;this.position=null;this.positionAlign=Eb;this.size=0;this.textAlign=Fb;this.direction=Gb;this.writingMode=Hb;this.lineInterpretation=Ib;this.line=null;this.lineHeight="";this.lineAlign=Jb;this.displayAlign=Kb;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Lb;this.fontStyle=Mb;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
|
|
62
|
-
"";this.textDecoration=[];this.textStrokeWidth=this.textStrokeColor=this.textShadow="";this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.rubyTag=null;this.cellResolution={
|
|
62
|
+
"";this.textDecoration=[];this.textStrokeWidth=this.textStrokeColor=this.textShadow="";this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.rubyTag=null;this.cellResolution={Hb:32,rows:15}}function Nb(a,b){a=new Cb(a,b,"");a.lineBreak=!0;return a}Cb.prototype.clone=function(){var a=new Cb(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
|
|
63
63
|
function Ob(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!Bb(a.nestedCues,b.nestedCues,Ob))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!Bb(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}N("shaka.text.Cue",Cb);Cb.equal=Ob;Cb.prototype.clone=Cb.prototype.clone;var Eb="auto";
|
|
64
64
|
Cb.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Eb};var Fb="center",Pb={LEFT:"left",RIGHT:"right",CENTER:Fb,START:"start",END:"end"};Cb.textAlign=Pb;var Kb="after",Qb={BEFORE:"before",CENTER:"center",AFTER:Kb};Cb.displayAlign=Qb;var Gb="ltr";Cb.direction={HORIZONTAL_LEFT_TO_RIGHT:Gb,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Hb="horizontal-tb";Cb.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Hb,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Ib=0;
|
|
65
65
|
Cb.lineInterpretation={LINE_NUMBER:Ib,PERCENTAGE:1};var Jb="start",Rb={CENTER:"center",START:Jb,END:"end"};Cb.lineAlign=Rb;var Sb={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Cb.defaultTextColor=Sb;var Ub={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Cb.defaultTextBackgroundColor=Ub;var Lb=400;Cb.fontWeight={NORMAL:Lb,BOLD:700};
|
|
@@ -74,10 +74,10 @@ var fc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
|
|
|
74
74
|
Copyright 2006 The Closure Library Authors
|
|
75
75
|
SPDX-License-Identifier: Apache-2.0
|
|
76
76
|
*/
|
|
77
|
-
function gc(a){var b;a instanceof gc?(hc(this,a.Za),this.Tb=a.Tb,ic(this,a.lb),jc(this,a.ic),this.Ea=a.Ea,kc(this,a.g.clone()),this.
|
|
78
|
-
r.toString=function(){var a=[],b=this.Za;b&&a.push(nc(b,oc,!0),":");if(b=this.lb){a.push("//");var c=this.Tb;c&&a.push(nc(c,oc,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.ic;null!=b&&a.push(":",String(b))}if(b=this.Ea)this.lb&&"/"!=b.charAt(0)&&a.push("/"),a.push(nc(b,"/"==b.charAt(0)?pc:qc,!0));(b=this.g.toString())&&a.push("?",b);(b=this.
|
|
77
|
+
function gc(a){var b;a instanceof gc?(hc(this,a.Za),this.Tb=a.Tb,ic(this,a.lb),jc(this,a.ic),this.Ea=a.Ea,kc(this,a.g.clone()),this.Ib=a.Ib):a&&(b=String(a).match(fc))?(hc(this,b[1]||"",!0),this.Tb=lc(b[2]||""),ic(this,b[3]||"",!0),jc(this,b[4]),this.Ea=lc(b[5]||"",!0),kc(this,b[6]||"",!0),this.Ib=lc(b[7]||"")):this.g=new mc(null)}r=gc.prototype;r.Za="";r.Tb="";r.lb="";r.ic=null;r.Ea="";r.Ib="";
|
|
78
|
+
r.toString=function(){var a=[],b=this.Za;b&&a.push(nc(b,oc,!0),":");if(b=this.lb){a.push("//");var c=this.Tb;c&&a.push(nc(c,oc,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.ic;null!=b&&a.push(":",String(b))}if(b=this.Ea)this.lb&&"/"!=b.charAt(0)&&a.push("/"),a.push(nc(b,"/"==b.charAt(0)?pc:qc,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Ib)&&a.push("#",nc(b,rc));return a.join("")};
|
|
79
79
|
r.resolve=function(a){var b=this.clone();"data"===b.Za&&(b=new gc);var c=!!a.Za;c?hc(b,a.Za):c=!!a.Tb;c?b.Tb=a.Tb:c=!!a.lb;c?ic(b,a.lb):c=null!=a.ic;var d=a.Ea;if(c)jc(b,a.ic);else if(c=!!a.Ea){if("/"!=d.charAt(0))if(this.lb&&!this.Ea)d="/"+d;else{var e=b.Ea.lastIndexOf("/");-1!=e&&(d=b.Ea.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
|
|
80
|
-
h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ea=d:c=""!==a.g.toString();c?kc(b,a.g.clone()):c=!!a.
|
|
80
|
+
h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ea=d:c=""!==a.g.toString();c?kc(b,a.g.clone()):c=!!a.Ib;c&&(b.Ib=a.Ib);return b};r.clone=function(){return new gc(this)};function hc(a,b,c){a.Za=c?lc(b,!0):b;a.Za&&(a.Za=a.Za.replace(/:$/,""))}function ic(a,b,c){a.lb=c?lc(b,!0):b}function jc(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ic=b}else a.ic=null}
|
|
81
81
|
function kc(a,b,c){b instanceof mc?a.g=b:(c||(b=nc(b,sc)),a.g=new mc(b))}function lc(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function nc(a,b,c){return null!=a?(a=encodeURI(a).replace(b,tc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function tc(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var oc=/[#\/\?@]/g,qc=/[#\?:]/g,pc=/[#\?]/g,sc=/[#\?@]/g,rc=/#/g;function mc(a){this.g=a||null}
|
|
82
82
|
function uc(a){if(!a.wa&&(a.wa={},a.Kc=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}r=mc.prototype;r.wa=null;r.Kc=null;function vc(a){uc(a);return a.Kc}r.add=function(a,b){uc(this);this.g=null;var c=this.wa.hasOwnProperty(a)?this.wa[a]:null;c||(this.wa[a]=c=[]);c.push(b);this.Kc++;return this};
|
|
83
83
|
r.set=function(a,b){uc(this);this.g=null;this.wa.hasOwnProperty(a)?this.wa[a]=[b]:this.add(a,b);return this};r.get=function(a){uc(this);return this.wa[a]||[]};r.toString=function(){if(this.g)return this.g;if(!this.wa)return"";var a=[],b;for(b in this.wa)for(var c=encodeURIComponent(b),d=this.wa[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};
|
|
@@ -128,10 +128,10 @@ function Qd(a,b){var c,d,e;return K(function(f){switch(f.g){case 1:c=Pd(b);ta(f,
|
|
|
128
128
|
function Ld(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B;return K(function(D){switch(D.g){case 1:if(e=a.some(function(F){return F.decodingInfos.length}))return D.return();f={};g=t(d);h=g.next();case 2:if(h.done){D.B(4);break}f.Xd=h.value;k=!1;l=t(a);m=l.next();case 5:if(m.done){D.B(7);break}n=m.value;q=Sd(n,b,c).filter(function(F){return function(J){return(J.keySystemConfiguration&&J.keySystemConfiguration.keySystem)===F.Xd}}(f));p=t(q);u=p.next();case 8:if(u.done){D.B(10);break}v=u.value;return C(D,
|
|
129
129
|
Qd(n,v),9);case 9:u=p.next();D.B(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();D.B(5);break;case 7:if(k)return D.return();f={Xd:f.Xd};h=g.next();D.B(2);break;case 4:y=t(a),m=y.next();case 12:if(m.done){D.B(0);break}z=m.value;x=Sd(z,b,c).filter(function(F){F=F.keySystemConfiguration&&F.keySystemConfiguration.keySystem;return!F||!d.includes(F)});A=t(x);u=A.next();case 15:if(u.done){m=y.next();D.B(12);break}B=u.value;return C(D,Qd(z,B),16);case 16:u=A.next(),D.B(15)}})}
|
|
130
130
|
function Sd(a,b,c){var d=a.audio,e=a.video;c={type:c?"file":"media-source"};if(e){var f=e.codecs;if(e.codecs.includes(",")){var g=e.codecs.split(",");f=zc("video",g);f=Nd(f);g=zc("audio",g);g=Od(g);g=Ic(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=Nd(f);f=Ic(e.mimeType,f,"video");c.video={contentType:f,width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":c.video.transferFunction=
|
|
131
|
-
"srgb";break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=
|
|
131
|
+
"srgb";break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=Od(d.codecs),f=Ic(d.mimeType,f,"audio"),c.audio={contentType:f,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,
|
|
132
132
|
[]);f.get(k.keySystem).push(k)}g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];k=t(f.keys());for(var l=k.next();!l.done;l=k.next()){var m=l.value;l=Object.assign({},c);var n=f.get(m);m={keySystem:m,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};n=t(n);for(h=n.next();!h.done;h=n.next()){h=h.value;if(h.initData&&h.initData.length){for(var q=new Set,p=t(h.initData),u=p.next();!u.done;u=p.next())q.add(u.value.initDataType);m.initDataType=h.initData[0].initDataType}h.distinctiveIdentifierRequired&&
|
|
133
133
|
(m.distinctiveIdentifier="required");h.persistentStateRequired&&(m.persistentState="required");h.sessionType&&(m.sessionTypes=[h.sessionType]);d&&(""!=h.audioRobustness?m.audio?m.audio.robustness=m.audio.robustness||h.audioRobustness:m.audio={robustness:h.audioRobustness}:m.audio||(m.audio={}));e&&(""!=h.videoRobustness?m.video?m.video.robustness=m.video.robustness||h.videoRobustness:m.video={robustness:h.videoRobustness}:m.video||(m.video={}))}l.keySystemConfiguration=m;a.push(l)}return a}
|
|
134
|
-
function Od(a){return"fLaC"
|
|
134
|
+
function Od(a){return"fLaC"!==a||yd()?"Opus"===a?"opus":a:"flac"}function Nd(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}else if("vp9"==a)return"vp09.00.41.08";return a}function Jd(a){a.textStreams=a.textStreams.filter(function(b){b=Fc(b.mimeType,b.codecs);return Oc(b)})}
|
|
135
135
|
function Kd(a){var b,c,d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:b=[],c=t(a.imageStreams),d=c.next();case 2:if(d.done){l.B(4);break}e=d.value;f=e.mimeType;"application/mp4"==f&&"mjpg"==e.codecs&&(f="image/jpg");if(Td.has(f)){l.B(5);break}g=Ud.get(f);if(!g){Td.set(f,!1);l.B(5);break}return C(l,Vd(g),7);case 7:h=l.h,Td.set(f,h);case 5:(k=Td.get(f))&&b.push(e);d=c.next();l.B(2);break;case 4:a.imageStreams=b,E(l)}})}
|
|
136
136
|
function Vd(a){return new Promise(function(b){var c=new Image;c.src=a;"decode"in c?c.decode().then(function(){b(!0)}).catch(function(){b(!1)}):c.onload=c.onerror=function(){b(2===c.height)}})}
|
|
137
137
|
function Wd(a){var b=a.audio,c=a.video,d=b?b.mimeType:null,e=c?c.mimeType:null,f=b?b.codecs:null,g=c?c.codecs:null,h=[];g&&h.push(g);f&&h.push(f);var k=[];c&&k.push(c.mimeType);b&&k.push(b.mimeType);k=k[0]||null;var l=[];b&&l.push(b.kind);c&&l.push(c.kind);l=l[0]||null;var m=new Set;if(b)for(var n=t(b.roles),q=n.next();!q.done;q=n.next())m.add(q.value);if(c)for(n=t(c.roles),q=n.next();!q.done;q=n.next())m.add(q.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,
|
|
@@ -243,7 +243,7 @@ Yg(a)&&(a.l.resolve(),a.W.U(ih))}function Cg(a){var b=a.V,c=a.ea;c.clear();b.for
|
|
|
243
243
|
function jh(){var a,b,c,d,e,f,g,h;return K(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,n,
|
|
244
244
|
q;return K(function(p){switch(p.g){case 1:ta(p,2);if("org.w3.clearkey"===l&&yd())throw Error("Unsupported keySystem");return C(p,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=p.h,q=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,rd()&&(q=!1),f.set(l,{persistentState:q}),C(p,m.createMediaKeys(),5);case 5:wa(p,0);break;case 2:xa(p),f.set(l,null),E(p)}})},h=a.map(function(l){return g(l)}),C(k,Promise.all(h),2)):k.return(Af(f))})}
|
|
245
245
|
function kh(a){var b;return K(function(c){if(1==c.g)return b=new Promise(function(d,e){(new jd(e)).U(lh)}),ta(c,2),C(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return wa(c,0);xa(c);E(c)})}
|
|
246
|
-
function Fg(a){var b;return K(function(c){b=Array.from(a.i.entries());a.i.clear();return C(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return K(function(g){if(1==g.g)return ta(g,2),a.ma||a.u.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?C(g,kh(e),5):C(g,e.remove(),5);if(2!=g.g)return wa(g,0);xa(g);E(g)})})),0)})}function
|
|
246
|
+
function Fg(a){var b;return K(function(c){b=Array.from(a.i.entries());a.i.clear();return C(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return K(function(g){if(1==g.g)return ta(g,2),a.ma||a.u.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?C(g,kh(e),5):C(g,e.remove(),5);if(2!=g.g)return wa(g,0);xa(g);E(g)})})),0)})}function mh(a,b){return a.length&&b.length&&a!==b?0<oh(a,b).length:!0}
|
|
247
247
|
function oh(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=t((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(w(d.keyIds),w(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||
|
|
248
248
|
f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break}}return c}
|
|
249
249
|
function Ng(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Dg(a){a.i.forEach(function(b,c){var d=b.Ve,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.Ve=e)})}function Yg(a){a=a.i.values();return xf(a,function(b){return b.loaded})}function Xg(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.V.get(c.value))return!1;return!0}
|
|
@@ -255,7 +255,7 @@ c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertif
|
|
|
255
255
|
function(l){g.push({box:l,Ka:1701733238})}).N("avc1",function(l){g.push({box:l,Ka:1701733238})}).N("avc3",function(l){g.push({box:l,Ka:1701733238})}).N("ac-3",function(l){g.push({box:l,Ka:1701733217})}).N("ec-3",function(l){g.push({box:l,Ka:1701733217})}).N("ac-4",function(l){g.push({box:l,Ka:1701733217})}).N("mp4a",function(l){g.push({box:l,Ka:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw bb(bg(a)),new P(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,
|
|
256
256
|
a=uh(a,e,k.box,f,k.Ka);return a}
|
|
257
257
|
function uh(a,b,c,d,e){var f=vh.value(),g=a.subarray(c.start,c.start+c.size),h=rb(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=rb(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);wh(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=od()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,wh(e,d.start,d.size+k.byteLength);k=rb(e,b.start);b=Tf(b);a=k.getUint32(b);
|
|
258
|
-
k.setUint32(b,a+1);return e}function wh(a,b,c){a=rb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var vh=new yf(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function xh(a,b,c,d,e,f,g){this.Y=a;this.Oa=b;this.va=c;this.Re=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aes128Key=void 0===g?null:g}xh.prototype.Pc=function(){return this.Oa};xh.prototype.Mc=function(){return this.va};function yh(a,b){return a&&b?a.Pc()==b.Pc()&&a.Mc()==b.Mc()&&Bb(a.Y().sort(),b.Y().sort())&&lb(a.g,b.g):a==b}N("shaka.media.InitSegmentReference",xh);xh.prototype.getEndByte=xh.prototype.Mc;xh.prototype.getStartByte=xh.prototype.Pc;
|
|
258
|
+
k.setUint32(b,a+1);return e}function wh(a,b,c){a=rb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var vh=new yf(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function xh(a,b,c,d,e,f,g){this.Y=a;this.Oa=b;this.va=c;this.Re=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aes128Key=void 0===g?null:g}xh.prototype.Pc=function(){return this.Oa};xh.prototype.Mc=function(){return this.va};function yh(a,b){return a===b?!0:a&&b?a.Pc()==b.Pc()&&a.Mc()==b.Mc()&&Bb(a.Y().sort(),b.Y().sort())&&lb(a.g,b.g):a==b}N("shaka.media.InitSegmentReference",xh);xh.prototype.getEndByte=xh.prototype.Mc;xh.prototype.getStartByte=xh.prototype.Pc;
|
|
259
259
|
function R(a,b,c,d,e,f,g,h,k,l,m,n,q,p,u,v){l=void 0===l?[]:l;p=void 0===p?zh:p;this.startTime=a;this.i=this.endTime=b;this.G=c;this.Oa=d;this.va=e;this.g=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.h=l;this.tilesLayout=void 0===m?"":m;this.F=void 0===n?null:n;this.aa=void 0===q?null:q;this.status=p;this.m=!1;this.l=!0;this.o=!1;this.aes128Key=void 0===u?null:u;this.C=null;this.j=0;this.s=void 0===v?!1:v;this.u=this.A=!1;a=t(this.h);for(b=a.next();!b.done;b=a.next())b.value.Sf();
|
|
260
260
|
this.s&&this.h.length&&this.h[this.h.length-1].Rf()}r=R.prototype;r.Y=function(){return this.G()};r.getStartTime=function(){return this.startTime};r.Kg=function(){return this.endTime};r.Pc=function(){return this.Oa};r.Mc=function(){return this.va};r.Zg=function(){return this.tilesLayout};r.Yg=function(){return this.F};r.Mb=function(){return this.status};r.ph=function(){this.status=Ah};r.Qe=function(){this.m=!0};r.lh=function(){return this.m};r.Jd=function(){this.l=!1};r.ih=function(){return this.l};
|
|
261
261
|
r.Sf=function(){this.A=!0};r.kh=function(){return this.A};r.Rf=function(){this.u=!0};r.jh=function(){return this.u};r.Qf=function(){this.o=!0};r.fh=function(){return this.o};r.gg=function(a){this.C=a};r.Xg=function(){return this.C};r.offset=function(a){this.startTime+=a;this.endTime+=a;this.i+=a;for(var b=t(this.h),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.i+=a};
|
|
@@ -292,8 +292,8 @@ function Sh(a){for(var b="mp4a",c,d;a.ha();){c=a.da();for(var e=a.da();e&128;)e=
|
|
|
292
292
|
See the License for the specific language governing permissions and
|
|
293
293
|
limitations under the License.
|
|
294
294
|
*/
|
|
295
|
-
function Vh(a,b){this.j=a;if(void 0===b?0:b){b=new Uint8Array(a.byteLength);for(var c=0,d=0;d<a.byteLength;d++)2<=d&&3==a[d]&&0==a[d-1]&&0==a[d-2]||(b[c]=a[d],c++);this.j=nb(b,0,c)}this.i=this.j.byteLength;this.g=this.h=0}function
|
|
296
|
-
function Zh(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&
|
|
295
|
+
function Vh(a,b){this.j=a;if(void 0===b?0:b){b=new Uint8Array(a.byteLength);for(var c=0,d=0;d<a.byteLength;d++)2<=d&&3==a[d]&&0==a[d-1]&&0==a[d-2]||(b[c]=a[d],c++);this.j=nb(b,0,c)}this.i=this.j.byteLength;this.g=this.h=0}function Wh(a){var b=a.j.byteLength-a.i,c=new Uint8Array(4),d=Math.min(4,a.i);0!==d&&(c.set(a.j.subarray(b,b+d)),a.h=(new Kf(c,0)).L(),a.g=8*d,a.i-=d)}function Yh(a,b){if(a.g<=b){b-=a.g;var c=Math.floor(b/8);b-=8*c;a.g-=c;Wh(a)}a.h<<=b;a.g-=b}
|
|
296
|
+
function Zh(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&Wh(a);c=b-c;return 0<c?d<<c|Zh(a,c):d}function $h(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;Wh(a);return b+$h(a)}function ai(a){Yh(a,1+$h(a))}function T(a){var b=$h(a);return Zh(a,b+1)-1}function bi(a){a=T(a);return 1&a?1+a>>>1:-1*(a>>>1)}function U(a){return 1===Zh(a,1)}function ci(a){return Zh(a,8)}
|
|
297
297
|
function di(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=bi(a),d=(c+d+256)%256),c=0===d?c:d}function ei(a){ci(a);T(a);return T(a)}N("shaka.util.ExpGolomb",Vh);function fi(){this.A=null;this.C=!1;this.m=this.F=null;this.j=[];this.g=[];this.o=this.s=null;this.i=[];this.h=[];this.u=null;this.l=[]}r=fi.prototype;r.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
|
|
298
298
|
r.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,gi(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.A=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.A:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Gd:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h<
|
|
299
299
|
k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(-1==g.audio&&0<m)for(var n=h+5,q=m;2<q;){switch(f[n]){case 106:g.audio=l;g.audioCodec="ac3";break;case 122:g.audio=l,g.audioCodec="ec3"}var p=f[n+1]+2;n+=p;q-=p}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 21:-1==g.Gd&&(g.Gd=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec=
|
|
@@ -303,16 +303,16 @@ function hi(a){if(1!==(a[0]<<16|a[1]<<8|a[2]))return null;var b={data:new Uint8A
|
|
|
303
303
|
r.vh=function(a){oe("TsParser","Please use parseNalus function instead.");return this.Ye(a)};
|
|
304
304
|
r.Ye=function(a,b,c){var d=a.pts?a.pts/9E4:null;a=a.data;var e=a.byteLength,f=1;"hvc"==this.m&&(f=2);for(var g=c||0,h=[],k=-1,l=0,m,n=0;n<e;++n){var q=a[n];if(q){if(2<=g&&1==q){b&&!h.length&&-1==k&&(q=n-(3<g?3:g),c&&0!=q&&(q=a.subarray(0,q),b.data=cg(b.data,q),b.fullData=cg(b.fullData,q)));0<=k?(g=n-((3<g?3:g)+1),h.push({data:a.subarray(k+f,g+1),fullData:a.subarray(k,g+1),type:l,time:d})):b&&!h.length&&(k=n-g,0<k&&(k=a.subarray(0,k),b.data=cg(b.data,k),b.fullData=cg(b.fullData,k)));if(n>=e-f)return h;
|
|
305
305
|
n++;k=n;l="hvc"==this.m?a[n]>>1&63:a[n]&31}g=0}else g++;n>=e-1&&0<=k&&0<=g&&(m={data:a.subarray(k+f,e),fullData:a.subarray(k,e),type:l,time:d})}m&&h.push(m);!h.length&&b&&(b.data=cg(b.data,a),b.fullData=cg(b.fullData,a));return h};r.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())c=cg.apply(Xf,w(c.value)),(c=hi(c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:Lh(c.data),dts:c.dts,pts:c.pts});return a};
|
|
306
|
-
r.
|
|
306
|
+
r.Jb=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=t(this.i),c=b.next();!c.done;c=b.next()){var d=cg.apply(Xf,w(c.value)),e=hi(d);c=this.h.length?this.h[this.h.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?(this.h.length&&e.dts<(c.dts||0)&&(a=!0),this.h.push(e)):this.h.length&&(d=e?e.data:d)&&(c=this.h.pop(),c.data=cg(c.data,d),this.h.push(c))}a&&(this.h=this.h.sort(function(f,g){var h=(f.pts||0)-(g.pts||0);return(f.dts||0)-(g.dts||0)||h}))}return this.h};
|
|
307
307
|
r.dc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=t(this.j),d=c.next();!d.done;d=c.next()){var e=cg.apply(Xf,w(d.value)),f=hi(e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=cg(d.data,e),this.g.push(d))}if(a){var g;c=t(this.g);for(d=c.next();!d.done;d=c.next())d=d.value,d.nalus=this.Ye(d,g,void 0),
|
|
308
|
-
d.nalus.length&&(g=d.nalus[d.nalus.length-1]);this.g=this.g.filter(function(h){return h.nalus.length})}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};r.getStartTime=function(a){if("audio"==a){a=null;var b=this.
|
|
308
|
+
d.nalus.length&&(g=d.nalus[d.nalus.length-1]);this.g=this.g.filter(function(h){return h.nalus.length})}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};r.getStartTime=function(a){if("audio"==a){a=null;var b=this.Jb();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.dc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};r.Lc=function(){return{audio:this.o,video:this.m}};
|
|
309
309
|
r.Cd=function(){for(var a=[],b=t(this.dc()),c=b.next();!c.done;c=b.next())a.push.apply(a,w(c.value.nalus));return a};r.bh=function(){oe("TsParser","Please use getVideoInfo function instead.");var a=this.Ee();return{height:a.height,width:a.width}};r.Ee=function(){return"hvc"==this.m?ii(this):ji(this)};
|
|
310
310
|
function ji(a){var b={height:null,width:null,ga:null};a=a.Cd();if(!a.length)return b;a=a.find(function(q){return 7==q.type});if(!a)return b;a=new Vh(a.data);var c=ci(a),d=ci(a),e=ci(a);ai(a);if(ki.includes(c)){var f=T(a);3===f&&Yh(a,1);ai(a);ai(a);Yh(a,1);if(U(a)){f=3!==f?8:12;for(var g=0;g<f;g++)U(a)&&(6>g?di(a,16):di(a,64))}}ai(a);f=T(a);if(0===f)T(a);else if(1===f)for(Yh(a,1),ai(a),ai(a),f=T(a),g=0;g<f;g++)ai(a);ai(a);Yh(a,1);f=T(a);g=T(a);var h=Zh(a,1);0===h&&Yh(a,1);Yh(a,1);var k=0,l=0,m=0,n=
|
|
311
311
|
0;U(a)&&(k=T(a),l=T(a),m=T(a),n=T(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.ga="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b}
|
|
312
312
|
function ii(a){var b={height:null,width:null,ga:null};a=a.Cd();if(!a.length)return b;a=a.find(function(B){return 33==B.type});if(!a)return b;var c=new Vh(a.fullData,!0);ci(c);ci(c);Zh(c,4);var d=Zh(c,3);U(c);var e=Zh(c,2),f=Zh(c,1),g=Zh(c,5),h=Zh(c,32);a=ci(c);for(var k=ci(c),l=ci(c),m=ci(c),n=ci(c),q=ci(c),p=ci(c),u=[],v=[],y=0;y<d;y++)u.push(U(c)),v.push(U(c));if(0<d)for(y=d;8>y;y++)Zh(c,2);for(y=0;y<d;y++)u[y]&&Zh(c,88),v[y]&&ci(c);T(c);d=T(c);3==d&&Zh(c,1);u=T(c);v=T(c);var z=y=0,x=0,A=0;U(c)&&
|
|
313
313
|
(y+=T(c),z+=T(c),x+=T(c),A+=T(c));b.width=String(u-(y+z)*(1===d||2===d?2:1));b.height=String(v-(x+A)*(1===d?2:1));c=function(B){for(var D=0,F=0;32>F;F++)D|=(B>>F&1)<<31-F;return D>>>0}(h);f=1==f?"H":"L";e="hvc1"+("."+["","A","B","C"][e]+g);e+="."+c.toString(16).toUpperCase();e+="."+f+p;q&&(e+="."+q.toString(16).toUpperCase());n&&(e+="."+n.toString(16).toUpperCase());m&&(e+="."+m.toString(16).toUpperCase());l&&(e+="."+l.toString(16).toUpperCase());k&&(e+="."+k.toString(16).toUpperCase());a&&(e+="."+
|
|
314
314
|
a.toString(16).toUpperCase());b.ga=e;return b}function li(a){return 0>gi(a)?!1:!0}function gi(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71==a[c]&&71==a[c+188]&&71==a[c+376])return c;c++}return-1}N("shaka.util.TsParser",fi);fi.syncOffset=gi;fi.probe=li;fi.prototype.getVideoInfo=fi.prototype.Ee;fi.prototype.getVideoResolution=fi.prototype.bh;fi.prototype.getVideoNalus=fi.prototype.Cd;fi.prototype.getCodecs=fi.prototype.Lc;fi.prototype.getStartTime=fi.prototype.getStartTime;
|
|
315
|
-
fi.prototype.getVideoData=fi.prototype.dc;fi.prototype.getAudioData=fi.prototype.
|
|
315
|
+
fi.prototype.getVideoData=fi.prototype.dc;fi.prototype.getAudioData=fi.prototype.Jb;fi.prototype.getMetadata=fi.prototype.getMetadata;fi.prototype.parseNalus=fi.prototype.Ye;fi.prototype.parseAvcNalus=fi.prototype.vh;fi.prototype.parse=fi.prototype.parse;fi.prototype.clearData=fi.prototype.clearData;fi.Timescale=9E4;var ki=[100,110,122,244,44,83,86,118,128,138,139,134];function mi(a,b,c){this.g=null;this.o=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Ua("Could not find LCEVC Library dependencies on this page");if("undefined"!==typeof LCEVCdec)this.h=LCEVCdec;else if("undefined"!==typeof LcevcDil)this.h=LcevcDil,this.j=!0,oe("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Ua("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Ua("Could not find LCEVC Library on this page"),
|
|
316
316
|
a=!1):(this.h.SupportObject.SupportStatus||Ua(this.h.SupportObject.SupportError),a="undefined"!==typeof this.h&&"undefined"!==typeof libDPIModule&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}a&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function ni(a){a.g&&a.i.classList.add("shaka-hidden")}
|
|
317
317
|
mi.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function oi(a,b,c){var d=pi,e=qi;switch(b.mimeType){case "video/webm":d=ri;break;case "video/mp4":d=si}switch(c){case "DASH":e=ti;break;case "HLS":e=ui}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}N("shaka.lcevc.Dec",mi);mi.prototype.release=mi.prototype.release;var pi=0,ri=1,si=2,ui=0,ti=1,qi=-1;function vi(a,b,c,d){var e=this;this.i=a;this.C=null;this.F=b;this.g={};this.G={};this.la={};this.h=null;this.W=!1;this.ya=c||function(){};this.O=d||null;this.j={};this.s=new rf;this.m={};this.H=null;this.J=new Oe;this.K="";this.Z=!1;this.l=wi(this,this.J);this.A=!1;this.I=new pf(function(){return xi(e)});this.u=!1;this.V="UNKNOWN";this.ea=this.ma=!1;this.za=new Oe;this.o=!1;this.ba=!0}
|
|
318
318
|
function wi(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.s.D(c,"startstreaming",function(){a.ba=!0});a.s.D(c,"endstreaming",function(){a.ba=!1});a.s.ia(c,"sourceopen",function(){URL.revokeObjectURL(a.K);b.resolve()});a.s.ia(a.i,"playing",function(){a.Z=!0});a.K=yi(c);a.i.src=a.K;return c}c=new MediaSource;a.s.ia(c,"sourceopen",function(){URL.revokeObjectURL(a.K);b.resolve()});a.s.ia(a.i,"playing",function(){a.Z=!0});a.K=yi(c);a.i.src=a.K;return c}
|
|
@@ -345,9 +345,9 @@ function Ti(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u;return K(function(v){if(1==v.g){i
|
|
|
345
345
|
$i(a,d),3)}return v.return(!0)})}function aj(a,b,c){if(b==Cc)var d=!1;else{d=Kc(Mc(a.G[b]))[0];var e=Lc(a.G[b]),f=Fc(c.mimeType,c.codecs),g=a.C.forceTransmux;if(!cb(f)||!a.u&&Gc.includes(f))g=!0;c=Hc(c.mimeType,c.codecs);g&&(g=ac(c))&&(g=g(),f=g.convertCodecs(b,c),g.destroy());b=Kc(Mc(f))[0];f=Lc(f);d=d!==b||e!==f}return d?"smooth"!==a.C.codecSwitchingStrategy||!gb()||a.o:!1}var yi=window.URL.createObjectURL,Bi="sequence";function bj(a,b,c){this.i=a;this.o=b;this.u=this.j=Infinity;this.g=1;this.h=this.l=null;this.s=0;this.C=!0;this.F=0;this.A=void 0===c?!0:c;this.G=0;this.m=!1}r=bj.prototype;r.getDuration=function(){return this.j};r.Qg=function(){return this.g};r.kf=function(a){this.i=a};r.Na=function(a){this.j=a};r.Ug=function(){return this.i};r.dg=function(a){this.s=a};r.kc=function(a){this.C=a};r.Sd=function(a){this.u=a};r.eg=function(a){this.o=a};r.Jg=function(){return this.o};
|
|
346
346
|
r.Wf=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.Nd(a[0].start+b);this.g=a.reduce(function(d,e){return Math.max(d,e.end-e.start)},this.g);this.h=Math.max(this.h,c);null!=this.i&&this.A&&!this.m&&(this.i=(Date.now()+this.s)/1E3-this.h-this.g)}};
|
|
347
347
|
r.Vc=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.s)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.Nd(b);this.h=Math.max(this.h,c);null!=this.i&&this.A&&!this.m&&(this.i=d-this.h-this.g)}};r.Id=function(){this.m=!0};r.mh=function(){return this.m};r.Nd=function(a){this.l=null==this.l?a:Math.min(this.l,a)};
|
|
348
|
-
r.Te=function(a){this.g=Math.max(this.g,a)};r.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};r.P=function(){return Infinity==this.j&&!this.C};r.Ob=function(){return Infinity!=this.j&&!this.C};r.cb=function(){return Math.max(this.F,this.
|
|
349
|
-
r.Oc=function(a){var b=Math.max(this.l,this.F);return Infinity==this.u?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.
|
|
350
|
-
bj.prototype.getSeekRangeEnd=bj.prototype.nb;bj.prototype.getSeekRangeStart=bj.prototype.bc;bj.prototype.getSafeSeekRangeStart=bj.prototype.Oc;bj.prototype.getSegmentAvailabilityEnd=bj.prototype.
|
|
348
|
+
r.Te=function(a){this.g=Math.max(this.g,a)};r.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};r.P=function(){return Infinity==this.j&&!this.C};r.Ob=function(){return Infinity!=this.j&&!this.C};r.cb=function(){return Math.max(this.F,this.Ab()-this.u)};r.hg=function(a){this.F=a};r.Ab=function(){return this.P()||this.Ob()?Math.min(Math.max(0,(Date.now()+this.s)/1E3-this.g-this.i)+this.G,this.j):this.h?Math.min(this.h,this.j):this.j};
|
|
349
|
+
r.Oc=function(a){var b=Math.max(this.l,this.F);return Infinity==this.u?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Ab()-this.u+a,this.nb()))};r.bc=function(){return this.Oc(0)};r.nb=function(){return Math.max(0,this.Ab()-(this.P()||this.Ob()?this.o:0))};r.kg=function(){return null==this.i||null!=this.h&&this.A?!1:!0};r.cg=function(a){this.G=a};N("shaka.media.PresentationTimeline",bj);bj.prototype.setAvailabilityTimeOffset=bj.prototype.cg;bj.prototype.usingPresentationStartTime=bj.prototype.kg;
|
|
350
|
+
bj.prototype.getSeekRangeEnd=bj.prototype.nb;bj.prototype.getSeekRangeStart=bj.prototype.bc;bj.prototype.getSafeSeekRangeStart=bj.prototype.Oc;bj.prototype.getSegmentAvailabilityEnd=bj.prototype.Ab;bj.prototype.setUserSeekStart=bj.prototype.hg;bj.prototype.getSegmentAvailabilityStart=bj.prototype.cb;bj.prototype.isInProgress=bj.prototype.Ob;bj.prototype.isLive=bj.prototype.P;bj.prototype.offset=bj.prototype.offset;bj.prototype.notifyMaxSegmentDuration=bj.prototype.Te;
|
|
351
351
|
bj.prototype.notifyMinSegmentStartTime=bj.prototype.Nd;bj.prototype.isStartTimeLocked=bj.prototype.mh;bj.prototype.lockStartTime=bj.prototype.Id;bj.prototype.notifySegments=bj.prototype.Vc;bj.prototype.notifyTimeRange=bj.prototype.Wf;bj.prototype.getDelay=bj.prototype.Jg;bj.prototype.setDelay=bj.prototype.eg;bj.prototype.setSegmentAvailabilityDuration=bj.prototype.Sd;bj.prototype.setStatic=bj.prototype.kc;bj.prototype.setClockOffset=bj.prototype.dg;bj.prototype.getPresentationStartTime=bj.prototype.Ug;
|
|
352
352
|
bj.prototype.setDuration=bj.prototype.Na;bj.prototype.setPresentationStartTime=bj.prototype.kf;bj.prototype.getMaxSegmentDuration=bj.prototype.Qg;bj.prototype.getDuration=bj.prototype.getDuration;function cj(a,b,c){this.j=c;this.l=a;this.s=dj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.u=b;this.i=function(){}}cj.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function ej(a,b){a.i=b}function fj(a){this.g=a}function dj(a){if(a.g.paused||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Eh(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function gj(a,b,c,d,e){var f=this;this.u=e;this.g=a;this.A=b;this.s=c;this.l=new rf;this.j=!1;this.F=a.readyState;this.C=this.i=0;this.h=d;this.o=!1;this.l.D(a,"waiting",function(){return hj(f)});this.m=(new jd(function(){hj(f)})).Ya(this.s.gapJumpTimerTime)}gj.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.A=this.u=null};gj.prototype.We=function(){this.o=!0;hj(this)};
|
|
353
353
|
function hj(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.F&&(a.F=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.l,d=dj(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.s!=d)b.m=f,b.g=e,b.s=d,b.h=!1;e=f-b.m;if(d=e>=b.u&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.o++,b.j(new Q("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Fh(c,b,a.s.gapDetectionThreshold),null==
|
|
@@ -359,21 +359,21 @@ function sj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.
|
|
|
359
359
|
g.g.bc():g.g.nb():0>h&&(h=g.g.nb()+h);return vj(g,wj(g,h))});this.m=new jd(function(){if(0!=g.i.readyState&&!g.i.paused){var h=nj(g.h),k=g.g.bc(),l=g.g.nb();3>l-k&&(k=l-3);h<k&&(h=uj(g,h),g.i.currentTime=h)}})}r=sj.prototype;r.ce=function(){this.m.Ya(.25)};r.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.u=function(){}};r.de=function(a){oj(this.h,a)};
|
|
360
360
|
r.nd=function(){var a=nj(this.h);return 0<this.i.readyState&&!this.i.paused?wj(this,a):a};r.wf=function(){return this.o?this.o.o:0};r.vf=function(){return this.j.C};r.Vf=function(){this.j.We()};function vj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
|
|
361
361
|
function uj(a,b){var c=Math.max(a.A,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.bc(),f=a.g.nb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Oc(c),k=a.g.Oc(d);c=a.g.Oc(c+d);return b>=g?vj(a,b):b>f?f:b<e?Ch(a.i.buffered,k)?k:c:b>=h||Ch(a.i.buffered,b)?b:c}function wj(a,b){var c=a.g.bc();if(b<c)return c;a=a.g.nb();return b>a?a:b}
|
|
362
|
-
function tj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new cj(new fj(a),b.stallThreshold,c);ej(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function xj(a){this.g=a;this.
|
|
362
|
+
function tj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new cj(new fj(a),b.stallThreshold,c);ej(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function xj(a){this.g=a;this.m=null;this.j=0;this.o=!1}r=xj.prototype;r.zb=function(){return this.g.length};r.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};r.qh=function(){this.o=!0};function yj(a,b){a=t(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}r.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.j}return this.g.length&&a<this.g[0].startTime?this.j:null};
|
|
363
363
|
r.get=function(a){if(0==this.g.length)return null;a-=this.j;return 0>a||a>=this.g.length?null:this.g[a]};r.offset=function(a){if(!this.o)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};r.Ld=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,w(a))}};
|
|
364
364
|
r.Uc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Ld(a);this.ab(b)};r.ab=function(a){if(!this.o){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.j+=b-this.g.length}};
|
|
365
365
|
r.Yb=function(a,b,c){c=void 0===c?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.j++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new R(a.startTime,b,a.G,a.Oa,a.va,a.g,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.h,a.tilesLayout,a.F,a.aa,a.status,a.aes128Key),this.g[this.g.length-1].j=a.j)}};
|
|
366
|
-
r.Td=function(a,b){var c=this;this.o||(this.
|
|
367
|
-
xj.prototype.
|
|
368
|
-
xj.prototype.getIteratorForTime=xj.prototype.
|
|
366
|
+
r.Td=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new jd(function(){var d=b();d?c.g.push.apply(c.g,w(d)):(c.m.stop(),c.m=null)}),this.m.Ya(a))};xj.prototype[Symbol.iterator]=function(){return this.Kb(0)};
|
|
367
|
+
xj.prototype.Kb=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.h.length)for(var e=c.h.length-1;0<=e;--e){var f=c.h[e];if(a>=f.startTime&&a<f.endTime){for(;e&&!f.l;)e--,f=c.h[e];if(!f.l)return Ta("No independent partial segment found!"),null;b++;d=e-1;break}}return new zj(this,b,d)};function Aj(a,b,c){a=new R(a,a+b,function(){return c},0,null,null,a,a,a+b);return new xj([a])}N("shaka.media.SegmentIndex",xj);xj.forSingleSegment=Aj;
|
|
368
|
+
xj.prototype.getIteratorForTime=xj.prototype.Kb;xj.prototype.updateEvery=xj.prototype.Td;xj.prototype.fit=xj.prototype.Yb;xj.prototype.evict=xj.prototype.ab;xj.prototype.mergeAndEvict=xj.prototype.Uc;xj.prototype.offset=xj.prototype.offset;xj.prototype.get=xj.prototype.get;xj.prototype.find=xj.prototype.find;xj.prototype.markImmutable=xj.prototype.qh;xj.prototype.release=xj.prototype.release;function zj(a,b,c){this.i=a;this.g=b;this.h=c}zj.prototype.Ag=function(){return this.g};
|
|
369
369
|
zj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.h.length&&a.s&&this.h>=a.h.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.h.length?a.h[this.h]:a};zj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.h.length?(this.h++,a.s&&this.h==a.h.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};N("shaka.media.SegmentIterator",zj);zj.prototype.next=zj.prototype.next;zj.prototype.current=zj.prototype.current;
|
|
370
|
-
zj.prototype.currentPosition=zj.prototype.Ag;function Bj(){xj.call(this,[]);this.h=[]}pa(Bj,xj);r=Bj.prototype;r.clone=function(){var a=new Bj;a.h=this.h.slice();return a};r.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};r.find=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.j+d.
|
|
371
|
-
r.get=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.j+d.
|
|
370
|
+
zj.prototype.currentPosition=zj.prototype.Ag;function Bj(){xj.call(this,[]);this.h=[]}pa(Bj,xj);r=Bj.prototype;r.clone=function(){var a=new Bj;a.h=this.h.slice();return a};r.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};r.find=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.j+d.zb()}return null};
|
|
371
|
+
r.get=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.j+d.zb()}return null};r.offset=function(){};r.Ld=function(){};r.ab=function(){};r.Uc=function(){};r.Yb=function(){};r.Td=function(){};N("shaka.media.MetaSegmentIndex",Bj);Bj.prototype.updateEvery=Bj.prototype.Td;Bj.prototype.fit=Bj.prototype.Yb;Bj.prototype.mergeAndEvict=Bj.prototype.Uc;Bj.prototype.evict=Bj.prototype.ab;Bj.prototype.merge=Bj.prototype.Ld;Bj.prototype.offset=Bj.prototype.offset;
|
|
372
372
|
Bj.prototype.get=Bj.prototype.get;Bj.prototype.find=Bj.prototype.find;Bj.prototype.release=Bj.prototype.release;function Cj(a){var b=this;this.g=a;this.h=this.g.Bd();this.i=new jd(function(){b.g.Tf(.25*b.h)})}Cj.prototype.release=function(){this.set(this.ac());this.i&&(this.i.stop(),this.i=null);this.g=null};Cj.prototype.set=function(a){if(this.h!=a)a:{this.h=a,this.i.stop();if(0<=this.h)try{var b=this.h;this.g.Bd()!=b&&this.g.lf(b);break a}catch(c){}this.i.Ya(.25);0!=this.g.Bd()&&this.g.lf(0)}};Cj.prototype.ac=function(){return this.g.ac()};function Dj(a){var b=this;this.h=a;this.g=new Set;this.i=(new jd(function(){Ej(b,!1)})).Ya(.25)}Dj.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Ej(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Fj(a){Ye.call(this);this.g=new Map;this.h=a}pa(Fj,Ye);Fj.prototype.release=function(){this.g.clear();Ye.prototype.release.call(this)};function Gj(a,b){var c=a.g.get(b);c||(c={Xc:[],Cf:null,contentType:b},a.g.set(b,c));return c}function Hj(a,b,c){var d=Gj(a,b.contentType);Ij(a,d);a={Re:b,position:c};d=d.Xc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
|
|
373
373
|
Fj.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Xc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Re;break a}}d=null}if(e=d)e=c.Cf,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width);
|
|
374
374
|
if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.Cf=d,JSON.stringify(d),c=new Q("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Ij(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Xc;b.Xc=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Xc=[]};function Jj(a){Ye.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new jd(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new Q("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Ya(2)}pa(Jj,Ye);Jj.prototype.release=function(){this.g.clear();this.h.stop();Ye.prototype.release.call(this)};function Kj(a,b){Ye.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Vb:null,Ub:Lj,Nb:function(d,e){return Mj(c,"enter",d,e)}},{Vb:Nj,Ub:Lj,Nb:function(d,e){return Mj(c,"enter",d,e)}},{Vb:Oj,Ub:Lj,Nb:function(d,e){return Mj(c,"enter",d,e)}},{Vb:Lj,Ub:Nj,Nb:function(d,e){return Mj(c,"exit",d,e)}},{Vb:Lj,Ub:Oj,Nb:function(d,e){return Mj(c,"exit",d,e)}},{Vb:Nj,Ub:Oj,Nb:function(d,e){return Mj(c,"skip",d,e)}},{Vb:Oj,Ub:Nj,Nb:function(d,e){return Mj(c,"skip",d,e)}}];this.h=new rf;this.h.D(this.i,
|
|
375
375
|
"regionremove",function(d){c.g.delete(d.region)})}pa(Kj,Ye);Kj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;Ye.prototype.release.call(this)};Kj.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?Nj:a>d.endTime?Oj:Lj;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Vb==e&&h.Ub==f&&h.Nb(d,b)}}};
|
|
376
|
-
function Mj(a,b,c,d){b=new Q(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Nj=1,Lj=2,Oj=3;function Pj(a,b,c){this.i=a;this.h=b;this.j=0;this.l=c;this.g=new Map}function Qj(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex){var d=a.h.segmentIndex.
|
|
376
|
+
function Mj(a,b,c,d){b=new Q(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Nj=1,Lj=2,Oj=3;function Pj(a,b,c){this.i=a;this.h=b;this.j=0;this.l=c;this.g=new Map}function Qj(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex){var d=a.h.segmentIndex.Kb(Math.max(b.startTime,a.j));if(d){var e=b;c&&(e=d.next().value)&&e.startTime==b.startTime&&e.endTime==b.endTime&&(e=null);for(;a.g.size<a.i&&null!=e;)b=!0,e.m&&null!=e.va&&(b=!1),2==e.Mb()&&(b=!1),b&&!a.g.has(e)&&(b=new Rj(a.l),Sj(b,e,a.h),a.g.set(e,b)),a.j=e.startTime,e=d.next().value}}}
|
|
377
377
|
function Tj(a,b){if(a.h.segmentIndex&&a.g.size<a.i&&!a.g.has(b)){var c=new Rj(a.l);Sj(c,b,a.h);a.g.set(b,c)}}function Uj(a){if(0!==a.g.size){for(var b=t(a.g.keys()),c=b.next();!c.done;c=b.next())(c=c.value)&&Vj(a,c);a.j=0}}function Wj(a,b){b&&b!==a.h&&(Uj(a),a.h=b)}function Vj(a,b){var c=a.g.get(b);a.g.delete(b);c&&c.abort()}function Rj(a){this.i=a;this.g=this.h=null}
|
|
378
378
|
function Sj(a,b,c){var d=new Uint8Array(0);a.g=a.i(b,c,function(e){return K(function(f){if(1==f.g)return 0<d.byteLength?d=cg(d,e):d=e,a.h?C(f,a.h(d),3):f.B(0);d=new Uint8Array(0);E(f)})})}Rj.prototype.abort=function(){this.g&&this.g.abort()};function Xj(a,b,c,d,e){a=gf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function Yj(a,b){var c=this;this.g=b;this.m=a;this.i=null;this.u=1;this.o=this.j=null;this.F=0;this.C=!1;this.h=new Map;this.A=!1;this.G=null;this.s=!1;this.l=new pf(function(){return Zj(c)})}r=Yj.prototype;r.destroy=function(){return this.l.destroy()};function Zj(a){var b,c,d,e;return K(function(f){if(1==f.g){b=[];c=t(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,ak(e),b.push(bk(e));return C(f,Promise.all(b),2)}a.h.clear();a.g=null;a.m=null;a.i=null;E(f)})}
|
|
379
379
|
r.configure=function(a){this.i=a;this.G=new Le({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0);for(var b=t(this.h.keys()),c=b.next();!c.done;c=b.next())if(c=this.h.get(c.value),c.qa){var d=c.qa,e=a.segmentPrefetchLimit;d.i=e;for(var f=Array.from(d.g.keys());f.length>e;){var g=f.pop();g&&Vj(d,g)}0<a.segmentPrefetchLimit||
|
|
@@ -391,7 +391,7 @@ function qk(a,b){var c,d,e,f,g;return K(function(h){switch(h.g){case 1:qf(a.l);i
|
|
|
391
391
|
xa(h),C(h,sk(a,b,e),8);case 8:return h.return();case 7:f=Array.from(a.h.values());if(!a.A||!f.every(function(k){return k.endOfStream})){h.B(0);break}return C(h,a.g.T.endOfStream(),10);case 10:qf(a.l),g=a.g.T.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.Na(g),E(h)}})}
|
|
392
392
|
function rk(a,b){if(tk(b))return Oi(a.g.T,b.stream.originalId||""),null;b.type==Cc&&Pi(a.g.T);if(!a.g.T.ba&&b.type!=Cc)return a.i.updateIntervalSeconds/2;var c=a.g.zd(),d=b.Aa?b.Aa.endTime:c,e=Hi(a.g.T,b.type,c),f=Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal,a.i.bufferingGoal)*a.u,g=a.m.presentationTimeline.getDuration()-d,h=Gi(a.g.T,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.h.get(Cc))&&tk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.i.updateIntervalSeconds/
|
|
393
393
|
2;e=uk(a,b,c,h);if(!e)return a.i.updateIntervalSeconds;f=Infinity;g=Array.from(a.h.values());g=t(g);for(h=g.next();!h.done;h=g.next())h=h.value,tk(h)||h.X&&!h.X.current()||(f=Math.min(f,h.Aa?h.Aa.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.i.updateIntervalSeconds;b.qa&&b.X&&(d=e.g,!d||b.Aa&&yh(d,b.ec)||Tj(b.qa,d),Qj(b.qa,e));vk(a,b,c,e).catch(function(){});return null}
|
|
394
|
-
function uk(a,b,c,d){if(b.X)return b.X.current();if(b.Aa||d)return c=b.Aa?b.Aa.endTime:d,b.Se=!0,b.X=b.stream.segmentIndex.
|
|
394
|
+
function uk(a,b,c,d){if(b.X)return b.X.current();if(b.Aa||d)return c=b.Aa?b.Aa.endTime:d,b.Se=!0,b.X=b.stream.segmentIndex.Kb(c),b.X&&b.X.next().value;a=a.i.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.X=b.stream.segmentIndex.Kb(d),e=b.X&&b.X.next().value);e||(b.X=b.stream.segmentIndex.Kb(c),e=b.X&&b.X.next().value);return e}
|
|
395
395
|
function vk(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A;return K(function(B){switch(B.g){case 1:e=Dc;f=b.stream;g=b.X;b.Ba=!0;ta(B,2);if(2==d.Mb())throw new P(1,1,1011);return C(B,wk(a,b,d),4);case 4:qf(a.l);if(a.s)return B.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.i.lowLatencyMode&&k&&h&&("HLS"!=a.m.type||d.o))return n=new Uint8Array(0),p=q=!1,v=function(D){var F,J,G,H;return K(function(I){switch(I.g){case 1:if(q)return I.return();p=!0;qf(a.l);if(a.s)return I.return();
|
|
396
396
|
ta(I,2);n=xk(n,D);F=!1;J=0;(new Nf).box("mdat",function(L){J=L.size+L.start;F=!0}).parse(n,!1,!0);if(!F){I.B(4);break}G=n.subarray(0,J);n=n.subarray(J);return C(I,yk(a,b,c,f,d,G,!0),5);case 5:b.qa&&b.X&&Qj(b.qa,d,!0);case 4:wa(I,0);break;case 2:u=H=xa(I),E(I)}})},C(B,zk(a,b,d,v),9);l=zk(a,b,d);return C(B,l,7);case 7:m=B.h;qf(a.l);if(a.s)return B.return();qf(a.l);return b.sb?(b.Ba=!1,gk(a,b,0),B.return()):C(B,yk(a,b,c,f,d,m),6);case 9:y=B.h;if(u)throw u;if(p){B.B(10);break}q=!0;qf(a.l);return a.s?
|
|
397
397
|
B.return():b.sb?(b.Ba=!1,gk(a,b,0),B.return()):C(B,yk(a,b,c,f,d,y),10);case 10:b.qa&&b.X&&Qj(b.qa,d,!0);case 6:qf(a.l);if(a.s)return B.return();b.Aa=d;g.next();b.Ba=!1;b.af=!1;z=a.g.T.mb();x=z[b.type];Za(JSON.stringify(x));b.sb||a.g.We(d.startTime,d.endTime,b.type);gk(a,b,0);wa(B,0);break;case 2:A=xa(B);qf(a.l,A);if(a.s)return B.return();b.Ba=!1;if(7001==A.code)b.Ba=!1,ak(b),gk(a,b,0),B.B(0);else if(b.type==e.ja&&a.i.ignoreTextStreamFailures)a.h.delete(e.ja),B.B(0);else if(3017==A.code)Ak(a,b,A),
|
|
@@ -404,7 +404,7 @@ new Map,a.j.audio&&z.set(d.R,a.j.audio),a.j.video&&z.set(d.fa,a.j.video),ta(D,2)
|
|
|
404
404
|
function yk(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,q;return K(function(p){switch(p.g){case 1:h=d.closedCaptions&&0<d.closedCaptions.size;l=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.i.dispatchAllEmsgBoxes;m=a.i.parsePrftBox&&!a.C;if(l||m)k=new Nf;l&&k.N("emsg",function(u){var v=d.emsgSchemeIdUris;if(0===u.version){var y=u.reader.Yc();var z=u.reader.Yc();var x=u.reader.L();var A=u.reader.L();var B=u.reader.L();var D=u.reader.L();var F=e.startTime+A/x}else x=u.reader.L(),F=u.reader.jc()/
|
|
405
405
|
x+e.timestampOffset,A=F-e.startTime,B=u.reader.L(),D=u.reader.L(),y=u.reader.Yc(),z=u.reader.Yc();u=u.reader.qb(u.reader.getLength()-u.reader.pa());if(v&&v.includes(y)||a.i.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==y?a.g.th():(v=(new Map).set("detail",{startTime:F,endTime:F+B/x,schemeIdUri:y,value:z,timescale:x,presentationTimeDelta:A,eventDuration:B,id:D,messageData:u}),v=new Q("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=y&&"https://developer.apple.com/streaming/emsg-id3"!=
|
|
406
406
|
y||(y=Lh(u),y.length&&e&&a.g.uh([{cueTime:e.startTime,data:u,frames:y,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.N("prft",function(u){if(!a.C&&e.g.timescale){var v=u.reader,y=u.version;v.L();u=v.L();var z=v.L();u=1E3*u+z/Math.pow(2,32)*1E3;0===y?v=v.L():(y=v.L(),v=v.L(),v=y*Math.pow(2,32)+v);u=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+u)).getTime();v=(new Map).set("detail",{wallClockTime:u,programStartDate:new Date(u-v/e.g.timescale*1E3)});v=new Q("prft",v);a.g.onEvent(v);
|
|
407
|
-
a.C=!0}});(l||m)&&k.parse(f);return C(p,Ck(a,b,c),2);case 2:return qf(a.l),n=b.ad,b.ad=!1,q=b.xf,b.xf=!1,C(p,a.g.yf(b.type,f),3);case 3:return C(p,Ji(a.g.T,b.type,f,e,d,h,n,q,g),4);case 4:qf(a.l),E(p)}})}function Ck(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g){d=Math.max(a.i.bufferBehind,a.m.presentationTimeline.g);e=Ei(a.g.T,b.type);if(null==e)return h.return();f=c-e;g=f-d;return
|
|
407
|
+
a.C=!0}});(l||m)&&k.parse(f);return C(p,Ck(a,b,c),2);case 2:return qf(a.l),n=b.ad,b.ad=!1,q=b.xf,b.xf=!1,C(p,a.g.yf(b.type,f),3);case 3:return C(p,Ji(a.g.T,b.type,f,e,d,h,n,q,g),4);case 4:qf(a.l),E(p)}})}function Ck(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g){d=Math.max(a.i.bufferBehind,a.m.presentationTimeline.g);e=Ei(a.g.T,b.type);if(null==e)return h.return();f=c-e;g=f-d;return 1>=g?h.return():C(h,a.g.T.remove(b.type,e,e+g),2)}qf(a.l);E(h)})}
|
|
408
408
|
function tk(a){return a&&a.type==Cc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
|
|
409
409
|
function zk(a,b,c,d){var e,f,g,h,k;return K(function(l){switch(l.g){case 1:if(c instanceof xh&&(e=c.g))return l.return(e);f=null;if(b.qa){var m=b.qa;if(m.g.has(c)){var n=m.g.get(c);d&&(n.h=d);m.g.delete(c);f=n.g}else f=null}f||(f=pk(a,c,b.stream,d));g=0;b.X&&(g=b.X.g);b.La=f;return C(l,f.promise,2);case 2:h=l.h;b.La=null;k=h.data;if(!c.aes128Key){l.B(3);break}return C(l,Bk(k,c.aes128Key,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
|
|
410
410
|
function pk(a,b,c,d){var e=b instanceof R?b:void 0,f=e?1:0;b=Xj(b.Y(),b.Oa,b.va,a.i.retryParameters,d);return a.g.Qb.request(nf,b,{type:f,stream:c,segment:e})}
|
|
@@ -447,7 +447,7 @@ function Zk(a,b,c){try{if(!a.g.enabled)return b;var d=$k(a);a:{switch(c.toLowerC
|
|
|
447
447
|
!0;var f=dl(d);return el(b,f)}catch(g){return Va("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function $k(a){a.i||(a.i=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.o,sid:a.i,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}
|
|
448
448
|
function fl(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,$k(a));c.pr=a.h.yd();var e=c.ot===gl||c.ot===bl;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=hl(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=dl(c);f&&(b.uris=b.uris.map(function(g){return el(g,f)}))}}}
|
|
449
449
|
function il(a){if(0===a.type)return jl;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?bl:gl;if("audio"==b)return al;if("text"==b)return"application/mp4"===a.mimeType?kl:ol}}function pl(a,b){b=a.h.mb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN}
|
|
450
|
-
function ql(a,b){var c=a.h.
|
|
450
|
+
function ql(a,b){var c=a.h.Bb();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case gl:return a.videoBandwidth||NaN;case al:return a.audioBandwidth||NaN;default:return a.bandwidth}}
|
|
451
451
|
function dl(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
|
|
452
452
|
l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function hl(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=dl(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
|
|
453
453
|
function el(a,b){if(!b||a.includes("offline:"))return a;a=new gc(a);a.g.set("CMCD",b);return a.toString()}var cl="m",al="a",gl="v",bl="av",jl="i",ol="c",kl="tt";N("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",ng:"s",OTHER:"o"});function rl(){}
|
|
@@ -472,7 +472,7 @@ function El(a,b,c){var d=c;"AUTO"==d&&(d=window.matchMedia("(color-gamut: p3)").
|
|
|
472
472
|
h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Cc&&"image"!=c.type||b.push(c);return b}N("shaka.util.PlayerConfiguration",Cl);Cl.mergeConfigObjects=Fl;Cl.createDefault=Dl;function Gl(){this.g=null;this.h=[]}function Hl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Il(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Jl(){this.i=this.h=null;this.g=[]}function Kl(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Ll(){this.u=this.A=this.G=this.C=this.s=this.j=this.F=this.m=this.i=this.K=this.O=this.H=this.I=this.J=this.l=this.o=NaN;this.g=new Gl;this.h=new Jl};function V(a,b){Ye.call(this);var c=this;this.l=Ml;this.td=this.g=null;this.Z=!1;this.wd=new rf;this.xb=new rf;this.o=new rf;this.za=new rf;this.C=this.G=this.m=this.H=null;this.Fd=0;this.W=new vl;this.la=this.ba=this.i=this.Hd=this.F=this.j=this.ma=this.J=this.Uf=this.V=this.ya=this.K=this.I=this.jb=null;this.Hc=!1;this.Ie=this.s=null;this.Pe=1E9;this.Gc=[];this.O=NaN;this.h=Nl(this);this.Dd={width:Infinity,height:Infinity};this.u=null;this.$a=new ze(this.h.preferredAudioLanguage,this.h.preferredVariantRole,
|
|
473
473
|
this.h.preferredAudioChannelCount,this.h.preferredVideoHdrLevel,this.h.preferredVideoLayout,this.h.preferredAudioLabel,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);this.ib=this.h.preferredTextLanguage;this.Ec=this.h.preferredTextRole;this.nc=this.h.preferForcedSubs;this.Dc=[];b&&b(this);this.V=Ol(this);this.H=Pl(this);this.H.hf(this.h.streaming.forceHTTPS);this.A=null;Ql&&(this.A=Ql(),this.A.configure(this.h.ads));this.wd.D(window,"online",function(){Rl(c);c.bf()});
|
|
474
474
|
this.ud=new jd(function(){return Sl(c)});a&&(oe("Player","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Fc(a,!0))}pa(V,Ye);function Tl(a){null!=a.J&&(ni(a.J),a.J.release(),a.J=null)}
|
|
475
|
-
function Ul(a,b){if(b.lcevc.enabled){var c=a.
|
|
475
|
+
function Ul(a,b){if(b.lcevc.enabled){var c=a.Bb();c&&c[0]&&"video/mp2t"==c[0].videoMimeType&&(nd()||navigator.userAgent.match(/Edge\//))&&(b.mediaSource.forceTransmux||Ua("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled."));Tl(a);null==a.J&&(a.J=new mi(a.g,a.Uf,b.lcevc),a.G&&(a.G.O=a.J))}else Tl(a)}function Vl(a,b){return new Q(a,b)}r=V.prototype;
|
|
476
476
|
r.destroy=function(){var a=this,b;return K(function(c){switch(c.g){case 1:if(a.l==Wl)return c.return();Tl(a);b=a.detach();a.l=Wl;return C(c,b,2);case 2:a.wd&&(a.wd.release(),a.wd=null);a.xb&&(a.xb.release(),a.xb=null);a.o&&(a.o.release(),a.o=null);a.za&&(a.za.release(),a.za=null);a.Ie=null;a.h=null;a.u=null;a.td=null;a.V=null;if(!a.H){c.B(3);break}return C(c,a.H.destroy(),4);case 4:a.H=null;case 3:a.s&&(a.s.release(),a.s=null),Ye.prototype.release.call(a),E(c)}})};
|
|
477
477
|
function Xl(a,b){a.dispatchEvent(Vl("onstatechange",(new Map).set("state",b)))}
|
|
478
478
|
r.Fc=function(a,b){b=void 0===b?!0:b;var c=this,d,e;return K(function(f){switch(f.g){case 1:if(c.l==Wl)throw new P(2,7,7E3);if(!c.g||c.g==a){f.B(2);break}return C(f,c.detach(),2);case 2:return C(f,Yl(c,"attach"),4);case 4:if(f.h)return f.return();ta(f,5,6);Xl(c,"attach");d=function(){var g=Zl(c);g&&$l(c,g)};c.xb.D(a,"error",d);c.g=a;if(!b||!kd()||c.G){f.B(6);break}return C(f,am(c),6);case 6:ya(f);c.W.release();za(f,0);break;case 5:return e=xa(f),C(f,c.detach(),10);case 10:throw e;}})};
|
|
@@ -486,7 +486,7 @@ d.la=b;d.Hc=!1;d.dispatchEvent(Vl("loading"));h=Date.now()/1E3;d.u=new Ll;d.ba=a
|
|
|
486
486
|
fm(d,c),0)})},"parseManifestInner_"),13);case 13:return C(m,g(function(){return K(function(n){return C(n,gm(d),0)})},"initializeDrmInner_"),14);case 14:return C(m,g(function(){return K(function(n){return C(n,hm(d,h),0)})},"loadInner_"),10);case 16:return C(m,g(function(){return K(function(n){return C(n,im(d,h,c),0)})},"srcEqualsInner_"),10);case 10:d.dispatchEvent(Vl("loaded"));wa(m,0);break;case 5:l=xa(m);if(7E3==l.code){m.B(18);break}return C(m,d.mc(!1),18);case 18:throw l;}})};
|
|
487
487
|
function cm(a){var b,c;return K(function(d){if(1==d.g)return b=a.h.manifest.retryParameters,C(d,Dk(a.ba,a.H,b),2);c=d.h;"application/x-mpegurl"==c&&vd()&&(c="application/vnd.apple.mpegurl");return d.return(c)})}function dm(a,b){if(!kd())return!0;if(b){if(""==(a.g||md()).canPlayType(b))return!1;if(!(kd()&&b in sh))return!0;if("application/x-mpegurl"===b||"application/vnd.apple.mpegurl"===b){if(a.h.streaming.preferNativeHls)return!0;if(vd())return a.h.streaming.useNativeHlsOnSafari}}return!1}
|
|
488
488
|
function am(a){var b,c,d,e,f;return K(function(g){if(1==g.g)return Xl(a,"media-source"),b=a.h.textDisplayFactory,c=b(),a.Je=b,d=jm(a.g,c,function(h,k,l){km(a,h,k,l)},a.J),d.configure(a.h.mediaSource),e=a.h.manifest,f=e.segmentRelativeVttTiming,d.W=f,C(g,d.J,2);a.G=d;E(g)})}
|
|
489
|
-
function fm(a,b){var c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g)return c=a.H,Xl(a,"manifest-parser"),a.Hd=rh(a.ba,b||null),a.F=a.Hd(),d=Ze(a.h.manifest),a.g&&"AUDIO"===a.g.nodeName&&(d.disableVideo=!0),a.F.configure(d),a.ya=new Jj(function(){return a.
|
|
489
|
+
function fm(a,b){var c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g)return c=a.H,Xl(a,"manifest-parser"),a.Hd=rh(a.ba,b||null),a.F=a.Hd(),d=Ze(a.h.manifest),a.g&&"AUDIO"===a.g.nodeName&&(d.disableVideo=!0),a.F.configure(d),a.ya=new Jj(function(){return a.Cb()}),a.ya.addEventListener("regionadd",function(n){n=n.region;lm(a,"timelineregionadded",n);if(a.A)a.A.onDashTimedMetadata(n)}),a.ma=null,a.h.streaming.observeQualityChanges&&(a.ma=new Fj(function(){return a.mb()}),a.ma.addEventListener("qualitychange",
|
|
490
490
|
function(n){var q=n.quality;n=n.position;q=(new Map).set("mediaQuality",{bandwidth:q.bandwidth,audioSamplingRate:q.audioSamplingRate,codecs:q.codecs,contentType:q.contentType,frameRate:q.frameRate,height:q.height,mimeType:q.mimeType,channelsCount:q.channelsCount,pixelAspectRatio:q.pixelAspectRatio,width:q.width}).set("position",n);a.dispatchEvent(Vl("mediaqualitychanged",q))})),e={networkingEngine:c,filter:function(n){return mm(a,n)},makeTextStreamsForClosedCaptions:function(n){return nm(a,n)},onTimelineRegionAdded:function(n){var q=
|
|
491
491
|
a.ya;a:{var p=t(q.g);for(var u=p.next();!u.done;u=p.next())if(u=u.value,u.schemeIdUri==n.schemeIdUri&&u.id==n.id&&u.startTime==n.startTime&&u.endTime==n.endTime){p=u;break a}p=null}null==p&&(q.g.add(n),n=new Q("regionadd",new Map([["region",n]])),q.dispatchEvent(n))},onEvent:function(n){return a.dispatchEvent(n)},onError:function(n){return $l(a,n)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",
|
|
492
492
|
!0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(n){var q=a.m?a.m.g:null;q&&a.m.s&&om(a,q.keySystem,n)},onManifestUpdated:function(){var n=(new Map).set("isLive",a.P());a.dispatchEvent(Vl("manifestupdated",n));if(a.A)a.A.onManifestUpdated(a.P())},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()}},f=Date.now()/1E3,Xl(a,"manifest"),g=a,C(m,a.F.start(a.ba,e),2);g.i=m.h;h=Vl("manifestparsed");a.dispatchEvent(h);if(0==a.i.variants.length)throw new P(2,4,4036);
|
|
@@ -505,7 +505,7 @@ function im(a,b,c){var d,e,f,g,h,k,l,m,n,q;return K(function(p){if(1==p.g)return
|
|
|
505
505
|
"ratechange",h),"none"!=d.preload&&a.o.ia(d,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b}),d.audioTracks&&(a.o.D(d.audioTracks,"addtrack",function(){return tm(a)}),a.o.D(d.audioTracks,"removetrack",function(){return tm(a)}),a.o.D(d.audioTracks,"change",function(){return tm(a)})),d.textTracks&&(a.o.D(d.textTracks,"addtrack",function(u){if(u.track)switch(u=u.track,u.kind){case "metadata":Mm(a,u);break;case "chapters":Am(a,u);break;default:tm(a)}}),a.o.D(d.textTracks,"removetrack",function(){return tm(a)}),
|
|
506
506
|
a.o.D(d.textTracks,"change",function(){return tm(a)})),d.src=Zk(a.V,a.ba,c),(qd()||pd("Web0S"))&&d.load(),a.l=Nm,a.dispatchEvent(Vl("streaming")),k=new Oe,ij(d,HTMLMediaElement.HAVE_METADATA,a.o,function(){a.C.ce();k.resolve()}),ij(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.o,function(){var u;return K(function(v){if(1==v.g)return Om(a),u=Pm(a),u.find(function(y){return"disabled"!=y.mode})?(0<u.length&&(a.Z=!0),v.B(2)):C(v,new Promise(function(y){a.o.ia(d.textTracks,"change",y);(new jd(y)).U(1)}),2);if(e)return v.return();
|
|
507
507
|
Qm(a);E(v)})}),d.error?k.reject(Zl(a)):"none"==d.preload&&(Ua('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),k.resolve()),a.o.ia(d,"error",function(){k.reject(Zl(a))}),C(p,k,2);(l=a.P())&&a.h.streaming.liveSync?(m=function(){return Km(a)},a.o.D(d,"timeupdate",m)):l||(n=function(){return Lm(a)},a.o.D(d,"timeupdate",
|
|
508
|
-
n),Lm(a));a.A&&(a.A.onManifestUpdated(l),l&&(q=a.
|
|
508
|
+
n),Lm(a));a.A&&(a.A.onManifestUpdated(l),l&&(q=a.Cb().end,a.o.D(d,"progress",function(){var u=a.Cb().end;q!=u&&(a.A.onManifestUpdated(a.P()),q=u)})));a.Hc=!0;E(p)})}function Om(a){var b=a.h.preferredAudioLanguage;""!=b&&a.ag(b,a.h.preferredVariantRole)}function Qm(a){var b=a.h.preferredTextLanguage;""!=b&&a.ef(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
|
|
509
509
|
function Mm(a,b){if("metadata"==b.kind){b.mode="hidden";a.o.D(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,Rm(a,e.startTime,e.endTime,e.type,e.value),a.A)a.A.onCueMetadataChange(e.value)});var c=(new jd(function(){var d=Sm(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).lc().U(.5);a.Dc.push(function(){c.stop()})}}
|
|
510
510
|
function km(a,b,c,d){b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.data&&e.cueTime&&e.frames){var f=e.cueTime+c,g=d;g&&f>g&&(g=f);for(var h=t(e.frames),k=h.next();!k.done;k=h.next())Rm(a,f,g,"org.id3",k.value);if(a.A)a.A.onHlsTimedMetadata(e,f)}}function Rm(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(Vl("metadata",b))}
|
|
511
511
|
function Am(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new jd(function(){b.mode="hidden"})).lc().U(.5);a.Dc.push(function(){c.stop()})}}function pm(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.includes(",")}a.variants.some(b)&&(a.variants=a.variants.filter(b))}r.Ah=function(){for(var a=this.W;a.g;)a.release()};function qm(a,b){return new Bg(b,a.h.drm.updateExpirationTime)}
|
|
@@ -514,30 +514,30 @@ function Pl(a){return new cf(function(b,c,d){a.s&&a.s.segmentDownloaded(b,c,d)},
|
|
|
514
514
|
"Could not generate segment CMCD data.",m)}break;case 2:case 5:case 6:fl(e,c,{ot:"k"});break;case 4:fl(e,c,{ot:"o"})}},function(b,c,d,e){a.F&&a.F.banLocation&&a.F.banLocation(e)})}function Cm(a,b){return new sj(a.g,a.i,a.h.streaming,b,function(){a.jb&&Ej(a.jb,!0);a.j&&a.j.ad();a.K&&Tm(a)},function(c){return a.dispatchEvent(c)})}
|
|
515
515
|
function Dm(a,b){b=new Kj(a.ya,a.P()||0<b);b.addEventListener("enter",function(d){lm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){lm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(lm(a,"timelineregionenter",e),lm(a,"timelineregionexit",e))});var c=new Dj(a.g);c.g.add(b);a.ma&&c.g.add(a.ma);return c}
|
|
516
516
|
function Em(a,b,c){a.K=new He;a.K.g=Je;Ke(a.K,c,Math.min(.5,c/2));bm(a);a.o.D(b,"waiting",function(){return Tm(a)});a.o.D(b,"stalled",function(){return Tm(a)});a.o.D(b,"canplaythrough",function(){return Tm(a)});a.o.D(b,"progress",function(){return Tm(a)})}
|
|
517
|
-
function Tm(a){switch(a.l){case Nm:if(a.g.ended)var b=!0;else{var c=Bh(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case zm:a:if(a.g.ended||Di(a.G))b=!0;else{if(a.i.presentationTimeline.P()){c=a.i.presentationTimeline.
|
|
518
|
-
function Ol(a){return new Yk({getBandwidthEstimate:function(){return a.s?a.s.getBandwidthEstimate():NaN},mb:function(){return a.mb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},yd:function(){return a.yd()},
|
|
517
|
+
function Tm(a){switch(a.l){case Nm:if(a.g.ended)var b=!0;else{var c=Bh(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case zm:a:if(a.g.ended||Di(a.G))b=!0;else{if(a.i.presentationTimeline.P()){c=a.i.presentationTimeline.Ab();var d=Bh(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Dh(a.g.buffered,a.g.currentTime);c=a.K;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Ie:Je;c.g=d;b!=d&&bm(a)}function jm(a,b,c,d){return new vi(a,b,c,d)}
|
|
518
|
+
function Ol(a){return new Yk({getBandwidthEstimate:function(){return a.s?a.s.getBandwidthEstimate():NaN},mb:function(){return a.mb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},yd:function(){return a.yd()},Lb:function(){return a.Lb()},Bb:function(){return a.Bb()},P:function(){return a.P()}},a.h.cmcd)}
|
|
519
519
|
function ym(a){return new Yj(a.i,{zd:function(){return a.C?a.C.nd():0},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},T:a.G,Qb:a.H,onError:function(b){return $l(a,b)},onEvent:function(b){return a.dispatchEvent(b)},th:function(){a.F&&a.F.update&&a.F.update()},We:function(b,c,d){a.C&&a.C.Vf();Tm(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(Vl("segmentappended",b))},sh:function(b,c){(c=c.Re)&&a.ma&&Hj(a.ma,c,b)},yf:function(b,c){var d=a.m;if(d.h.parseInbandPsshEnabled&&
|
|
520
520
|
!d.F&&["audio","video"].includes(b)){c=new dg(nb(c));var e=0,f=t(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=t(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;Rg(d,"cenc",e);d=d.l}}else d=Promise.resolve();return d},uh:function(b,c,d){km(a,b,c,d)},ke:function(b,c){return a.ke(b,c)}})}
|
|
521
521
|
r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=tl(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(oe("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(oe("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);
|
|
522
522
|
a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=.01),void 0==a.streaming.segmentPrefetchLimit&&(a.streaming.segmentPrefetchLimit=2));var c=Fl(this.h,a,Nl(this));Um(this);return c};
|
|
523
523
|
function Um(a){if(a.F){var b=Ze(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.F.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{Vm(a,a.i)}catch(f){$l(a,f)}a.s&&Jm(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||Wm(a)}a.H&&a.H.hf(a.h.streaming.forceHTTPS);if(a.G&&(a.G.configure(a.h.mediaSource),a.G.W=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Je!=b)){var c=b(),d=a.G,e=d.F;d.F=c;e&&(c.setTextVisibility(e.isTextVisible()),
|
|
524
524
|
e.destroy());d.h&&(d.h.j=c);a.Je=b;a.j&&(b=a.j,(c=b.h.get(Cc))&&jk(b,c.stream,!0,0,!0))}a.s&&(a.s.configure(a.h.abr),a.h.abr.enabled?a.s.enable():a.s.disable(),Im(a));a.K&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Ke(a.K,b,Math.min(.5,b/2)));a.i&&wm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.A&&a.A.configure(a.h.ads);a.V&&a.V.configure(a.h.cmcd)}r.getConfiguration=function(){var a=Nl(this);Fl(a,this.h,Nl(this));return a};
|
|
525
|
-
r.Gg=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.
|
|
526
|
-
r.
|
|
527
|
-
r.
|
|
525
|
+
r.Gg=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.Cb().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};r.Eh=function(){for(var a in this.h)delete this.h[a];Fl(this.h,Nl(this),Nl(this));Um(this)};r.Ng=function(){return this.l};r.Ce=function(){return this.i?this.i.type:null};r.Rg=function(){return this.g};
|
|
526
|
+
r.Lb=function(){return this.H};r.Be=function(){return this.ba};r.If=function(){return this.A?this.A:null};r.P=function(){return this.i?this.i.presentationTimeline.P():this.g&&this.g.src?Infinity==this.g.duration:!1};r.Ob=function(){return this.i?this.i.presentationTimeline.Ob():!1};r.gh=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1};
|
|
527
|
+
r.Cb=function(){if(this.i){if(!this.Hc&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.bc(),end:a.nb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};r.dh=function(){this.P()&&(this.g.currentTime=this.Cb().end)};r.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};r.drmInfo=function(){return this.m?this.m.g:null};r.Nc=function(){return this.m?this.m.Nc():Infinity};
|
|
528
528
|
r.Ae=function(){return this.m?this.m.Ae():[]};r.xd=function(){return this.m?this.m.xd():{}};r.Fe=function(){return this.K?this.K.g==Je:!1};r.yd=function(){return this.g?this.I?this.I.h:1:0};
|
|
529
|
-
r.rf=function(a){var b=this;0==a?Ua("A trick play rate of 0 is unsupported!"):(this.za.Xa(),this.g.paused&&this.g.play(),this.I.set(a),this.l==zm&&(this.s.playbackRateChanged(a),ik(this.j,1<Math.abs(a))),this.P()&&this.za.D(this.g,"timeupdate",function(){var c=b.g.currentTime,d=b.
|
|
530
|
-
r.
|
|
529
|
+
r.rf=function(a){var b=this;0==a?Ua("A trick play rate of 0 is unsupported!"):(this.za.Xa(),this.g.paused&&this.g.play(),this.I.set(a),this.l==zm&&(this.s.playbackRateChanged(a),ik(this.j,1<Math.abs(a))),this.P()&&this.za.D(this.g,"timeupdate",function(){var c=b.g.currentTime,d=b.Cb(),e=b.h.streaming.safeSeekOffset;0<a?c>=d.end&&b.rd():c<=d.start+e&&b.rd()}))};r.rd=function(){var a=this.I.ac();this.l==Nm&&this.I.set(a);this.l==zm&&(this.I.set(a),this.s.playbackRateChanged(a),ik(this.j,!1));this.za.Xa()};
|
|
530
|
+
r.Bb=function(){if(this.i){for(var a=this.j?this.j.j:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,de(e)){var f=Wd(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(g){return ce(g)}):[]};
|
|
531
531
|
r.cc=function(){if(this.i){for(var a=this.j?this.j.o:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=Xd(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Pm(this).map(function(f){return ae(f)}):[]};r.Mg=function(){var a=this.Gc;this.i&&(a=this.i.imageStreams);return a.map(function(b){return Yd(b)})};
|
|
532
|
-
r.Dg=function(a){var b=this,c,d,e,f;return K(function(g){if(1==g.g){if(b.l!=zm&&b.l!=Nm)return g.return(null);c=b.Gc;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.B(2):C(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],yj(d.segmentIndex,function(h){var k=Xm(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.
|
|
533
|
-
function Xm(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{
|
|
534
|
-
r.Lf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B;return K(function(D){if(1==D.g){if(c.l!=zm&&c.l!=Nm)return D.return(null);d=c.Gc;c.i&&(d=c.i.imageStreams);return(e=d.find(function(F){return F.id==a}))?e.segmentIndex?D.B(2):C(D,e.createSegmentIndex(),2):D.return(null)}f=e.segmentIndex.find(b);if(null==f)return D.return(null);g=e.segmentIndex.get(f);h=Xm(g.tilesLayout||e.tilesLayout);if(!h)return D.return(null);k=e.width||0;l=e.height||0;m=k/h.
|
|
535
|
-
u=g.F||p/q;v=g.startTime;z=y=0;1<q&&(x=Math.floor((b-g.startTime)/u),v=g.startTime+x*u,y=x%h.
|
|
532
|
+
r.Dg=function(a){var b=this,c,d,e,f;return K(function(g){if(1==g.g){if(b.l!=zm&&b.l!=Nm)return g.return(null);c=b.Gc;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.B(2):C(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],yj(d.segmentIndex,function(h){var k=Xm(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Hb;for(var l=h.i-h.startTime,m=0;m<k;m++)e.push(b.Lf(a,h.startTime+l*m/k))}}),C(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
|
|
533
|
+
function Xm(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Hb:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
|
|
534
|
+
r.Lf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B;return K(function(D){if(1==D.g){if(c.l!=zm&&c.l!=Nm)return D.return(null);d=c.Gc;c.i&&(d=c.i.imageStreams);return(e=d.find(function(F){return F.id==a}))?e.segmentIndex?D.B(2):C(D,e.createSegmentIndex(),2):D.return(null)}f=e.segmentIndex.find(b);if(null==f)return D.return(null);g=e.segmentIndex.get(f);h=Xm(g.tilesLayout||e.tilesLayout);if(!h)return D.return(null);k=e.width||0;l=e.height||0;m=k/h.Hb;n=l/h.rows;q=h.Hb*h.rows;p=g.i-g.startTime;
|
|
535
|
+
u=g.F||p/q;v=g.startTime;z=y=0;1<q&&(x=Math.floor((b-g.startTime)/u),v=g.startTime+x*u,y=x%h.Hb*m,z=Math.floor(x/h.Hb)*n);A=!1;if(B=g.C)A=!0,n=B.height,y=B.positionX,z=B.positionY,m=B.width;return D.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:y,positionY:z,startTime:v,duration:u,uris:g.Y(),width:m,sprite:A})})};
|
|
536
536
|
r.bg=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.o&&(Kl(this.u.h,b,!1),lk(this.j,b),Ym(this),this.ib=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Pm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Zd(c)==a.id?c.mode=this.Z?"showing":"hidden":c.mode="disabled";Ym(this)}};
|
|
537
537
|
r.ff=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){this.h.abr.enabled&&Ua("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.i.variants.find(function(e){return e.id==a.id});d&&de(d)&&(xm(this,d,!1,b,c),this.$a=new ye(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),Jm(this))}else if(this.g&&this.g.audioTracks)for(b=
|
|
538
|
-
Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,Zd(c)==a.id){Zm(this,c);break}};r.Fg=function(){return $m(this.
|
|
538
|
+
Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,Zd(c)==a.id){Zm(this,c);break}};r.Fg=function(){return $m(this.Bb())};r.Wg=function(){return $m(this.cc())};r.Eg=function(){return Array.from(an(this.Bb()))};r.Vg=function(){return Array.from(an(this.cc()))};
|
|
539
539
|
r.ag=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.C){this.$a=new ze(a,b||"",c,"","","",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);a=function(g,h){return g.video||h.video?g.video&&h.video?Math.abs((g.video.height||0)-(h.video.height||0))+Math.abs((g.video.width||0)-(h.video.width||0)):Infinity:0};b=this.j.j;var e=this.$a.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())if(f=f.value,!c||a(c,b)>a(f,b))c=
|
|
540
|
-
f;c?(a=Wd(c),this.ff(a,!0,d)):Wm(this)}else this.g&&this.g.audioTracks&&(d=fe(this.
|
|
540
|
+
f;c?(a=Wd(c),this.ff(a,!0,d)):Wm(this)}else this.g&&this.g.audioTracks&&(d=fe(this.Bb(),a,b||"",!1)[0])&&this.ff(d)};r.ef=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.C){if(this.ib=a,this.Ec=b||"",this.nc=c,(a=fe(this.i.textStreams,this.ib,this.Ec,this.nc)[0]||null)&&a!=this.j.o&&(Kl(this.u.h,a,!1),this.h.streaming.alwaysStreamText||this.He()))lk(this.j,a),Ym(this)}else(a=fe(this.cc(),a,b||"",c)[0])&&this.bg(a)};
|
|
541
541
|
r.Kh=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.C){for(var d=null,e=t(this.i.variants),f=e.next();!f.done;f=e.next())if(f=f.value,f.audio.label==a){d=f;break}null!=d&&(this.$a=new ze(d.language,"",0,"","",a,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),Wm(this,b,c))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=t(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&Zm(this,b)}};
|
|
542
542
|
r.He=function(){var a=this.Z;return this.G&&this.l==zm?this.G.F.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Pm(this).some(function(b){return"showing"==b.mode}):a};r.Jf=function(){return this.g&&this.g.src&&this.g.textTracks?bn(this).map(function(a){return ae(a)}):[]};
|
|
543
543
|
r.Hg=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=$c(a),c=bn(this).filter(function(h){return $c(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=t(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
|
|
@@ -553,7 +553,7 @@ r.qg=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,q,p,u,v,y,z,x,
|
|
|
553
553
|
l&&D.label==(f||"")&&D.kind==c}))return tm(h),B.return(n);throw new P(1,2,2012);case 4:q=Dc;p=h.g.duration;h.i&&(p=h.i.presentationTimeline.getDuration());if(Infinity==p)throw new P(1,4,4033);if(!k.length){B.B(6);break}return C(B,en(h,a,h.H,h.h.streaming.retryParameters),7);case 7:u=B.h,v=fn(h,u,d,k),y=new Blob([v],{type:"text/vtt"}),a=yi(y),d="text/vtt";case 6:z={id:h.Pe++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Aj(0,p,[a]),mimeType:d||"",
|
|
554
554
|
codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:q.ja,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1};x=Fc(z.mimeType,z.codecs);A=Oc(x);if(!A)throw new P(2,2,2014,d);h.i.textStreams.push(z);tm(h);return B.return(Xd(z))}})};
|
|
555
555
|
r.rg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x;return K(function(A){switch(A.g){case 1:if(c.l!=zm&&c.l!=Nm)throw new P(1,7,7004);if(b){A.B(2);break}return C(A,cn(c,a),3);case 3:b=A.h;case 2:if("text/vtt"!=b)throw new P(1,2,2017,a);d=Dc;e=c.g.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new P(1,4,4045);return C(A,en(c,a,c.H,c.h.streaming.retryParameters),4);case 4:f=A.h;g=Pc[b];if(!g)throw new P(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
|
|
556
|
-
vttOffset:0};l=nb(f);m=h.parseMedia(l,k,a);n=[];q={};p=t(m);for(u=p.next();!u.done;q={yc:q.yc,
|
|
556
|
+
vttOffset:0};l=nb(f);m=h.parseMedia(l,k,a);n=[];q={};p=t(m);for(u=p.next();!u.done;q={yc:q.yc,Eb:q.Eb},u=p.next())q.Eb=u.value,q.yc=null,v=function(B){return function(){null==B.yc&&(B.yc=xc([a],[B.Eb.payload]));return B.yc||[]}}(q),y=new R(q.Eb.startTime,q.Eb.endTime,v,0,null,null,0,0,Infinity),q.Eb.payload.includes("#xywh")&&(z=q.Eb.payload.split("#xywh=")[1].split(","),4===z.length&&y.gg({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],10)})),
|
|
557
557
|
n.push(y);x={id:c.Pe++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new xj(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.Cc,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1};c.l==Nm?c.Gc.push(x):
|
|
558
558
|
c.i.imageStreams.push(x);tm(c);return A.return(Yd(x))}})};
|
|
559
559
|
r.pg=function(a,b,c){var d=this,e,f,g,h;return K(function(k){switch(k.g){case 1:if(d.l!=zm&&d.l!=Nm)throw new P(1,7,7004);if(c){k.B(2);break}return C(k,cn(d,a),3);case 3:c=k.h;case 2:return e=[],d.A&&(e=d.A.getCuePoints()),C(k,dn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Jf();h=g.find(function(l){return l.language==b});if(!h){k.B(5);break}return C(k,new Promise(function(l,m){d.o.ia(f,"load",l);d.o.ia(f,"error",function(){m(new P(1,2,2015))})}),6);case 6:return tm(d),k.return(h);case 5:throw new P(1,
|
|
@@ -567,10 +567,10 @@ function nm(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.nex
|
|
|
567
567
|
createSegmentIndex:function(){return Promise.resolve()},segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:l,originalLanguage:l,label:null,type:Cc,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1};b.textStreams.push(h);c.add(g)}}
|
|
568
568
|
function mm(a,b){return K(function(c){if(1==c.g)return C(c,gn(a,b),2);Vm(a,b);E(c)})}function gn(a,b){return K(function(c){if(1==c.g)return C(c,Hd(a.m,b),2);if(!b.variants.some(de))throw new P(2,4,4032);E(c)})}function Vm(a,b){if(a.l!=Wl){Gd(b.variants,a.h.restrictions,a.Dd)&&a.j&&tm(a);var c=a.m?a.m.g:null;if(c&&a.m.s)for(var d=t(b.variants),e=d.next();!e.done;e=d.next())e=e.value,om(a,c.keySystem,e.video),om(a,c.keySystem,e.audio);hn(a,b)}}
|
|
569
569
|
function om(a,b,c){if(c){c=t(c.drmInfos);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.keySystem==b){d=t(d.initData||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,Rg(a.m,e.initDataType,e.initData)}}}
|
|
570
|
-
function Fm(a,b){var c,d,e,f,g;return K(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,q;return K(function(p){if(1==p.g)return k?C(p,k.createSegmentIndex(),2):p.return(null);n=(m=k.segmentIndex.
|
|
570
|
+
function Fm(a,b){var c,d,e,f,g;return K(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,q;return K(function(p){if(1==p.g)return k?C(p,k.createSegmentIndex(),2):p.return(null);n=(m=k.segmentIndex.Kb(l))?m.next().value:null;if(!n)return p.return(null);q=n.startTime;return p.return(q)})},C(h,e(c,b),2);if(3!=h.g)return f=h.h,C(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h.return(Math.max(g,f)):null!=g?h.return(g):null!=f?h.return(f):h.return(b)})}
|
|
571
571
|
function bm(a){var b=a.Fe();if(a.u&&a.K&&a.C){if(a.V){var c=a.V;b||c.j||(c.j=!0);c.j&&b&&(c.l=!0);c.m=b}um(a)}b=(new Map).set("buffering",b);a.dispatchEvent(Vl("buffering",b))}function vm(a){var b=a.g.playbackRate;0!=b&&(a.I&&a.I.set(b),b=Vl("ratechange"),a.dispatchEvent(b))}
|
|
572
572
|
function um(a){if(a.u&&a.K){var b=a.u.g,c="playing";a.K.g==Je?c="buffering":a.g.paused?c="paused":a.g.ended&&(c="ended");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent(Vl("statechanged",c)))}}
|
|
573
|
-
function Km(a){if(a.P()){var b=a.
|
|
573
|
+
function Km(a){if(a.P()){var b=a.Cb();if(Number.isFinite(b.end)&&!(a.g.currentTime<b.start)){if(a.h.streaming.liveSync){var c=a.h.streaming.liveSyncMaxLatency;var d=a.h.streaming.liveSyncPlaybackRate}else a.i&&a.i.serviceDescription&&(c=a.i.serviceDescription.maxLatency||a.h.streaming.liveSyncMaxLatency,d=a.i.serviceDescription.maxPlaybackRate||a.h.streaming.liveSyncPlaybackRate);if(a.h.streaming.liveSync){var e=a.h.streaming.liveSyncMinLatency;var f=a.h.streaming.liveSyncMinPlaybackRate}else a.i&&
|
|
574
574
|
a.i.serviceDescription&&(e=a.i.serviceDescription.minLatency||a.h.streaming.liveSyncMinLatency,f=a.i.serviceDescription.minPlaybackRate||a.h.streaming.liveSyncMinPlaybackRate);var g=a.g.playbackRate,h=b.end-a.g.currentTime,k=0;if(a.l==Nm){var l=a.g.buffered;0<l.length&&(k=l.end(l.length-1),k=Math.max(d,k-b.end))}c&&d&&h-k>c?g!=d&&a.rf(d):e&&f&&h-k<e?g!=f&&a.rf(f):g!==a.I.ac()&&a.rd()}}}
|
|
575
575
|
function Lm(a){if(a.g){var b=!1,c=a.g.currentTime/a.g.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.O)?(a.O=c,b=!0):(c=Math.max(a.O,c),a.O!=c&&(a.O=c,b=!0)));if(b){var d;0==a.O?d=Vl("started"):25==a.O?d=Vl("firstquartile"):50==a.O?d=Vl("midpoint"):75==a.O?d=Vl("thirdquartile"):100==a.O&&(d=Vl("complete"));d&&a.dispatchEvent(d)}}}function Jm(a){try{hn(a,a.i)}catch(c){return $l(a,c),!1}var b=ee(a.i.variants);b=a.$a.create(b);a.s.setVariants(Array.from(b.values()));return!0}
|
|
576
576
|
function Bm(a,b){b=void 0===b?!1:b;return Jm(a)?a.s.chooseVariant(b):null}
|
|
@@ -588,21 +588,21 @@ missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new P(2,4,4012,a)
|
|
|
588
588
|
function $m(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=$c(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){k=t(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var n=null;c.has(l)&&c.get(l).has(m)&&(n=c.get(l).get(m));
|
|
589
589
|
h.push({language:l,role:m,label:n})}});return h}N("shaka.Player",V);V.prototype.setVideoContainer=V.prototype.ig;V.prototype.getManifestParserFactory=V.prototype.Pg;V.prototype.getManifest=V.prototype.Og;V.prototype.retryStreaming=V.prototype.bf;V.prototype.setMaxHardwareResolution=V.prototype.jf;V.prototype.addChaptersTrack=V.prototype.pg;V.prototype.addThumbnailsTrack=V.prototype.rg;V.prototype.addTextTrackAsync=V.prototype.qg;V.prototype.getStats=V.prototype.getStats;
|
|
590
590
|
V.prototype.getBufferedInfo=V.prototype.mb;V.prototype.getPresentationStartTimeAsDate=V.prototype.Kf;V.prototype.getPlayheadTimeAsDate=V.prototype.Tg;V.prototype.setTextTrackVisibility=V.prototype.fg;V.prototype.getChapters=V.prototype.Hg;V.prototype.getChaptersTracks=V.prototype.Jf;V.prototype.isTextTrackVisible=V.prototype.He;V.prototype.selectVariantsByLabel=V.prototype.Kh;V.prototype.selectTextLanguage=V.prototype.ef;V.prototype.selectAudioLanguage=V.prototype.ag;
|
|
591
|
-
V.prototype.getTextLanguages=V.prototype.Vg;V.prototype.getAudioLanguages=V.prototype.Eg;V.prototype.getTextLanguagesAndRoles=V.prototype.Wg;V.prototype.getAudioLanguagesAndRoles=V.prototype.Fg;V.prototype.selectVariantTrack=V.prototype.ff;V.prototype.selectTextTrack=V.prototype.bg;V.prototype.getThumbnails=V.prototype.Lf;V.prototype.getAllThumbnails=V.prototype.Dg;V.prototype.getImageTracks=V.prototype.Mg;V.prototype.getTextTracks=V.prototype.cc;V.prototype.getVariantTracks=V.prototype.
|
|
592
|
-
V.prototype.cancelTrickPlay=V.prototype.rd;V.prototype.trickPlay=V.prototype.rf;V.prototype.getPlaybackRate=V.prototype.yd;V.prototype.isBuffering=V.prototype.Fe;V.prototype.getKeyStatuses=V.prototype.xd;V.prototype.getActiveSessionsMetadata=V.prototype.Ae;V.prototype.getExpiration=V.prototype.Nc;V.prototype.drmInfo=V.prototype.drmInfo;V.prototype.keySystem=V.prototype.keySystem;V.prototype.goToLive=V.prototype.dh;V.prototype.seekRange=V.prototype.
|
|
593
|
-
V.prototype.isInProgress=V.prototype.Ob;V.prototype.isLive=V.prototype.P;V.prototype.getAdManager=V.prototype.If;V.prototype.getAssetUri=V.prototype.Be;V.prototype.getNetworkingEngine=V.prototype.
|
|
591
|
+
V.prototype.getTextLanguages=V.prototype.Vg;V.prototype.getAudioLanguages=V.prototype.Eg;V.prototype.getTextLanguagesAndRoles=V.prototype.Wg;V.prototype.getAudioLanguagesAndRoles=V.prototype.Fg;V.prototype.selectVariantTrack=V.prototype.ff;V.prototype.selectTextTrack=V.prototype.bg;V.prototype.getThumbnails=V.prototype.Lf;V.prototype.getAllThumbnails=V.prototype.Dg;V.prototype.getImageTracks=V.prototype.Mg;V.prototype.getTextTracks=V.prototype.cc;V.prototype.getVariantTracks=V.prototype.Bb;
|
|
592
|
+
V.prototype.cancelTrickPlay=V.prototype.rd;V.prototype.trickPlay=V.prototype.rf;V.prototype.getPlaybackRate=V.prototype.yd;V.prototype.isBuffering=V.prototype.Fe;V.prototype.getKeyStatuses=V.prototype.xd;V.prototype.getActiveSessionsMetadata=V.prototype.Ae;V.prototype.getExpiration=V.prototype.Nc;V.prototype.drmInfo=V.prototype.drmInfo;V.prototype.keySystem=V.prototype.keySystem;V.prototype.goToLive=V.prototype.dh;V.prototype.seekRange=V.prototype.Cb;V.prototype.isAudioOnly=V.prototype.gh;
|
|
593
|
+
V.prototype.isInProgress=V.prototype.Ob;V.prototype.isLive=V.prototype.P;V.prototype.getAdManager=V.prototype.If;V.prototype.getAssetUri=V.prototype.Be;V.prototype.getNetworkingEngine=V.prototype.Lb;V.prototype.getMediaElement=V.prototype.Rg;V.prototype.getManifestType=V.prototype.Ce;V.prototype.getLoadMode=V.prototype.Ng;V.prototype.resetConfiguration=V.prototype.Eh;V.prototype.getBufferFullness=V.prototype.Gg;V.prototype.getConfiguration=V.prototype.getConfiguration;V.prototype.configure=V.prototype.configure;
|
|
594
594
|
V.prototype.releaseAllMutexes=V.prototype.Ah;V.prototype.load=V.prototype.load;V.prototype.updateStartTime=V.prototype.Th;V.prototype.unload=V.prototype.mc;V.prototype.detach=V.prototype.detach;V.prototype.attachCanvas=V.prototype.tg;V.prototype.attach=V.prototype.Fc;
|
|
595
595
|
V.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return K(function(h){if(1==h.g)return b={},a?C(h,jh(),3):h.B(2);2!=h.g&&(b=h.h);var k={};if(kd())for(var l in sh)k[l]=!0;l=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var m=l.next();!m.done;m=l.next())m=m.value,k[m]=kd()?!!sh[m]:ld(m);c=k;l='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(w(Gc));
|
|
596
596
|
k={};l=t(l);for(m=l.next();!m.done;m=l.next()){m=m.value;k[m]=kd()?Oc(m)?!0:cb(m)||(ac(m)?!0:!1):ld(m);var n=m.split(";")[0];k[n]=k[n]||k[m]}d=k;e={manifest:c,media:d,drm:b};f=mn;for(g in f)e[g]=f[g]();return h.return(e)})};
|
|
597
597
|
V.isBrowserSupported=function(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||pd("Trident/"))return!1;var a=yd();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:kd()?!0:ld("application/x-mpegurl")};V.setAdManagerFactory=function(a){Ql=a};
|
|
598
|
-
V.registerSupportPlugin=function(a,b){mn[a]=b};V.prototype.destroy=V.prototype.destroy;var Wl=0,Ml=1,zm=2,Nm=3;V.LoadMode={DESTROYED:Wl,NOT_LOADED:Ml,MEDIA_SOURCE:zm,SRC_EQUALS:Nm};V.version="v4.6.
|
|
598
|
+
V.registerSupportPlugin=function(a,b){mn[a]=b};V.prototype.destroy=V.prototype.destroy;var Wl=0,Ml=1,zm=2,Nm=3;V.LoadMode={DESTROYED:Wl,NOT_LOADED:Ml,MEDIA_SOURCE:zm,SRC_EQUALS:Nm};V.version="v4.6.14";var nn=["4","6"];pe=new function(a){this.g=a;this.i=qe;this.h=re}(new ne(Number(nn[0]),Number(nn[1])));var ln=["output-restricted","internal-error"],mn={},Ql=null;function on(){this.h=[];this.j=this.i=this.g=0};function pn(a,b,c){var d=this;this.g=a;this.h=b;this.j=c;this.i=!1;this.l=this.h.getVolume();this.m=new rf;this.m.D(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.D(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}r=pn.prototype;r.getDuration=function(){return this.g.getDuration()};r.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.h.getRemainingTime()};r.isPaused=function(){return this.i};
|
|
599
599
|
r.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};r.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};r.canSkipNow=function(){return this.h.getAdSkippableState()};r.skip=function(){return this.h.skip()};r.pause=function(){return this.h.pause()};r.play=function(){return this.h.resume()};r.getVolume=function(){return this.h.getVolume()};r.setVolume=function(a){this.j.volume=a;return this.h.setVolume(a)};
|
|
600
600
|
r.isMuted=function(){return 0==this.h.getVolume()};r.isLinear=function(){return this.g.isLinear()};r.resize=function(a,b){var c=!1,d=this.j;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};r.setMuted=function(a){(this.j.muted=a)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)};
|
|
601
601
|
r.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};r.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};r.getTitle=function(){return this.g.getTitle()};r.getDescription=function(){return this.g.getDescription()};r.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};r.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};r.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};
|
|
602
602
|
r.getAdId=function(){return this.g.getAdId()};r.getCreativeAdId=function(){return this.g.getCreativeAdId()};r.getAdvertiserName=function(){return this.g.getAdvertiserName()};r.getMediaUrl=function(){return this.g.getMediaUrl()};r.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};r.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};r.release=function(){this.h=this.g=null};N("shaka.ads.ClientSideAd",pn);pn.prototype.release=pn.prototype.release;
|
|
603
603
|
pn.prototype.getPodIndex=pn.prototype.getPodIndex;pn.prototype.getTimeOffset=pn.prototype.getTimeOffset;pn.prototype.getMediaUrl=pn.prototype.getMediaUrl;pn.prototype.getAdvertiserName=pn.prototype.getAdvertiserName;pn.prototype.getCreativeAdId=pn.prototype.getCreativeAdId;pn.prototype.getAdId=pn.prototype.getAdId;pn.prototype.getVastMediaWidth=pn.prototype.getVastMediaWidth;pn.prototype.getVastMediaHeight=pn.prototype.getVastMediaHeight;pn.prototype.getVastMediaBitrate=pn.prototype.getVastMediaBitrate;
|
|
604
604
|
pn.prototype.getDescription=pn.prototype.getDescription;pn.prototype.getTitle=pn.prototype.getTitle;pn.prototype.getPositionInSequence=pn.prototype.getPositionInSequence;pn.prototype.getSequenceLength=pn.prototype.getSequenceLength;pn.prototype.setMuted=pn.prototype.setMuted;pn.prototype.resize=pn.prototype.resize;pn.prototype.isLinear=pn.prototype.isLinear;pn.prototype.isMuted=pn.prototype.isMuted;pn.prototype.setVolume=pn.prototype.setVolume;pn.prototype.getVolume=pn.prototype.getVolume;
|
|
605
|
-
pn.prototype.play=pn.prototype.play;pn.prototype.pause=pn.prototype.pause;pn.prototype.skip=pn.prototype.skip;pn.prototype.canSkipNow=pn.prototype.canSkipNow;pn.prototype.getTimeUntilSkippable=pn.prototype.getTimeUntilSkippable;pn.prototype.isSkippable=pn.prototype.isSkippable;pn.prototype.isPaused=pn.prototype.isPaused;pn.prototype.getRemainingTime=pn.prototype.getRemainingTime;pn.prototype.getMinSuggestedDuration=pn.prototype.getMinSuggestedDuration;pn.prototype.getDuration=pn.prototype.getDuration;function qn(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.A=!1;this.s=this.C=null;this.F=NaN;this.m=e;this.j=null;this.h=new rf;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);a=new google.ima.AdDisplayContainer(this.o,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.6.
|
|
605
|
+
pn.prototype.play=pn.prototype.play;pn.prototype.pause=pn.prototype.pause;pn.prototype.skip=pn.prototype.skip;pn.prototype.canSkipNow=pn.prototype.canSkipNow;pn.prototype.getTimeUntilSkippable=pn.prototype.getTimeUntilSkippable;pn.prototype.isSkippable=pn.prototype.isSkippable;pn.prototype.isPaused=pn.prototype.isPaused;pn.prototype.getRemainingTime=pn.prototype.getRemainingTime;pn.prototype.getMinSuggestedDuration=pn.prototype.getMinSuggestedDuration;pn.prototype.getDuration=pn.prototype.getDuration;function qn(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.A=!1;this.s=this.C=null;this.F=NaN;this.m=e;this.j=null;this.h=new rf;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);a=new google.ima.AdDisplayContainer(this.o,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.6.14");this.g=null;this.u=d||new google.ima.AdsRenderingSettings;this.h.D(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
|
|
606
606
|
function(g){rn(f,g)});this.h.D(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){sn(f,g)});this.h.D(this.i,"ended",function(){f.l.contentComplete()});this.h.ia(this.i,"play",function(){f.A=!0})}qn.prototype.configure=function(a){this.C=a};qn.prototype.stop=function(){this.g&&this.g.stop();this.o&&Nk(this.o)};qn.prototype.release=function(){this.stop();this.s&&this.s.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy()};
|
|
607
607
|
function sn(a,b){b.getError();b=(new Map).set("originalEvent",b);a.m(new Q("ad-error",b));tn(a,null);a.m(new Q("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
|
|
608
608
|
function rn(a,b){a.m(new Q("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));if(a.C.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.u);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.D(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.D(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.u);a.m(new Q("ima-ad-manager-loaded",(new Map).set("imaAdManager",
|
|
@@ -652,8 +652,8 @@ function Kn(a,b){a.i(new Q("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-
|
|
|
652
652
|
r.release=function(){this.h&&(this.h.release(),this.h=null);this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);Ye.prototype.release.call(this)};r.onAssetUnload=function(){this.h&&this.h.stop();this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new Q("ad-stopped"));this.j=new on};r.requestClientSideAds=function(a){if(!this.h)throw new P(1,10,10001);var b=this.h;b.g&&b.g.destroy();b.l&&b.l.contentComplete();b.F=Date.now()/1E3;b.l.requestAds(a)};
|
|
653
653
|
r.updateClientSideAdsRenderingSettings=function(a){if(!this.h)throw new P(1,10,10001);var b=this.h;b.u=a;b.g&&b.g.updateAdsRenderingSettings(b.u)};r.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new xn(a,b,c,function(e){return Ln(d,e)})};r.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new P(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new P(1,10,10004)):(d.l=new Oe,An(d,a,b),d.G=c||"",d.W=Date.now()/1E3,a=d.l);return a};
|
|
654
654
|
r.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new P(2,10,10002);this.g&&this.g.release();this.g=new Jn(a,b,this.m,function(d){return Ln(c,d)});this.g.configure(this.l)};
|
|
655
|
-
r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.6.
|
|
656
|
-
(c.G=!0),c.j=new Oe,c.g.requestStream(a),c.A=b||"",c.F=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.6.
|
|
655
|
+
r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.6.14";c=this.g;c.j?a=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
|
|
656
|
+
(c.G=!0),c.j=new Oe,c.g.requestStream(a),c.A=b||"",c.F=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.6.14";this.g.g.replaceAdTagParameters(a)};
|
|
657
657
|
r.getServerSideCuePoints=function(){oe("AdManager","Please use getCuePoints function.");return this.getCuePoints()};r.getCuePoints=function(){var a=[];this.g&&(a=a.concat(this.g.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};r.getStats=function(){var a=this.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};r.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)};
|
|
658
658
|
r.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,a.startTime)}};r.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};r.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};
|
|
659
659
|
function Ln(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.j.h.push(b.loadTime);break;case "ad-started":a.j.g++;break;case "ad-complete":a.j.i++;break;case "ad-skipped":a.j.j++}a.dispatchEvent(b)}N("shaka.ads.AdManager",Y);Y.prototype.onCueMetadataChange=Y.prototype.onCueMetadataChange;Y.prototype.onHlsTimedMetadata=Y.prototype.onHlsTimedMetadata;Y.prototype.onDashTimedMetadata=Y.prototype.onDashTimedMetadata;Y.prototype.onManifestUpdated=Y.prototype.onManifestUpdated;Y.prototype.getStats=Y.prototype.getStats;
|
|
@@ -687,7 +687,7 @@ function ro(a){var b=new Q(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
|
|
|
687
687
|
function to(a){for(var b=t(Wn),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();d=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;c=null;d||(c=a.g.get("video","currentTime"));var g;(d=a.g.get("player","getTextTracks")())&&d.length&&(g=d.find(function(l){return l.active}));var h=a.g.get("player","isTextTrackVisible")();e&&(a.i.autoplay=!1,b=a.h.load(e,c));var k={};c=t(Rn);for(d=c.next();!d.done;d=c.next())d=
|
|
688
688
|
d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(Rn),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=t(Xn);for(m=l.next();!m.done;m=l.next()){var n=m.value;m=n[1];n=a.g.get("player",n[0])();a.h[m](n)}a.h.fg(h);g&&a.h.ef(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play()}},function(l){l=(new Map).set("detail",l);l=new Q("error",l);a.h.dispatchEvent(l)})}
|
|
689
689
|
function wo(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.Ia()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Ia()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
|
|
690
|
-
function yo(a,b){a.u.has(b)&&(b=a.u.get(b));if("addEventListener"==b)return function(c,d,e){return a.o.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.o.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.
|
|
690
|
+
function yo(a,b){a.u.has(b)&&(b=a.u.get(b));if("addEventListener"==b)return function(c,d,e){return a.o.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.o.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Lb()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.If()};
|
|
691
691
|
if("setVideoContainer"==b)return function(c){return a.h.ig(c)};if(a.g.Ia()){if("getManifest"==b||"drmInfo"==b)return function(){Ua(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ua(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Ia()&&0==Object.keys(a.g.g.video).length&&(Tn[b]||Un[b])||!a.g.Ia()?a.h[b].bind(a.h):a.g.get("player",b)}
|
|
692
692
|
function so(a,b,c){a.g.Ia()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}N("shaka.cast.CastProxy",po);po.prototype.changeReceiverId=po.prototype.wg;po.prototype.forceDisconnect=po.prototype.Zb;po.prototype.suggestDisconnect=po.prototype.Ph;po.prototype.setAppData=po.prototype.gf;po.prototype.cast=po.prototype.cast;po.prototype.receiverName=po.prototype.$e;po.prototype.isCasting=po.prototype.Ia;po.prototype.canCast=po.prototype.vg;po.prototype.getPlayer=po.prototype.Sg;
|
|
693
693
|
po.prototype.getVideo=po.prototype.ah;po.prototype.destroy=po.prototype.destroy;function Ao(a,b,c,d){Ye.call(this);var e=this;this.g=a;this.h=b;this.j=new rf;this.H={video:a,player:b};this.C=c||function(){};this.I=d||function(f){return f};this.i=null;this.F=!1;this.o=!0;this.m=0;this.A=!1;this.u=!0;this.s=this.l=null;this.G=new jd(function(){Bo(e)});Co(this)}pa(Ao,Ye);r=Ao.prototype;r.isConnected=function(){return this.F};r.hh=function(){return this.o};r.Nh=function(a){this.i=a};r.zg=function(){this.i=null};
|
|
@@ -766,23 +766,22 @@ function Lq(a,b,c,d,e,f,g){var h,k,l,m,n,q,p,u,v,y,z,x,A,B,D;return K(function(F
|
|
|
766
766
|
J=G.g.byteOffset;G=new xq(G.g);for(var H=null;G.ha();){var I=yq(G);if(357149030==I.id){H=I;break}}if(!H)throw new P(2,3,3010);H=new xq(H.g);I=1E6;for(G=null;H.ha();){var L=yq(H);if(2807729==L.id)I=Cq(L);else if(17545==L.id)if(4==L.g.byteLength)G=L.g.getFloat32(0);else if(8==L.g.byteLength)G=L.g.getFloat64(0);else throw new P(2,3,3003);}if(null==G)throw new P(2,3,3011);H=I/1E9;G*=H;I=yq(new xq(y));if(475249515!=I.id)throw new P(2,3,3007);J=Dq(I,J,H,G,d,c,A,B,D)}x=J;h.Vc(x);p=new xj(x);k&&p.Yb(B,D,
|
|
767
767
|
!0);return F.return(p)})}function Iq(a){return a.bd}function Kq(a){var b=rq(a,Iq,"RepresentationIndex");a=qq(a,Iq,"indexRange");a=rg(a||"");b&&(a=og(b,"range",rg,a));return a}function Jq(a,b){Mq(a,b);if(!Kq(a))throw new P(2,4,4002);}function Mq(a,b){var c=a.M.mimeType.split("/")[1];if(a.M.contentType!=Cc&&"mp4"!=c&&"webm"!=c)throw new P(2,4,4006);if("webm"==c&&!b)throw new P(2,4,4005);}
|
|
768
768
|
function Gq(a){var b=a.M;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.Od,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Nq(a,b,c){var d=Fq(a,Oq,c),e=Pq(a);if(!e.xa&&!e.timeline&&1<e.fc.length)throw new P(2,4,4002);if(!e.xa&&!a.$.duration&&!e.timeline&&1==e.fc.length)throw new P(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new P(2,4,4002);var f=null,g=null;a.sa.id&&a.M.id&&(g=b[a.sa.id+","+a.M.id])&&(f=g.segmentIndex);var h=Qq(a.$.start,a.$.duration,a.M.bb,e,d,c);b=!f;f?f.Uc(h,a.presentationTimeline.cb()):f=new xj(h);a.presentationTimeline.Vc(h);a.yb&&a.$.Ge||f.Yb(a.$.start,a.$.duration?a.$.start+a.$.duration:
|
|
769
|
-
Infinity,b);g&&(g.segmentIndex=f);return{$b:function(){f&&0!=f.
|
|
769
|
+
Infinity,b);g&&(g.segmentIndex=f);return{$b:function(){f&&0!=f.zb()||f.Ld(h);return Promise.resolve(f)}}}function Oq(a){return a.Db}function Pq(a){var b=Rq(a);a=pq(a,Oq);var c=a.dd;0==c&&(c=1);var d=0;a.xa?d=a.xa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{xa:a.xa,startTime:d,dd:c,rb:a.rb,timeline:a.timeline,fc:b}}
|
|
770
770
|
function Qq(a,b,c,d,e,f){var g=d.fc.length;d.timeline&&d.timeline.length!=d.fc.length&&(g=Math.min(d.timeline.length,d.fc.length));for(var h=a-d.rb,k=b?a+b:Infinity,l=[],m=d.startTime,n={},q=0;q<g;n={zc:n.zc,vc:n.vc},q++){n.vc=d.fc[q];var p=void 0;p=null!=d.xa?m+d.xa:d.timeline?d.timeline[q].end:m+b;n.zc=null;l.push(new R(a+m,a+p,function(u){return function(){null==u.zc&&(u.zc=xc(c(),[u.vc.rh]));return u.zc}}(n),n.vc.start,n.vc.end,e,h,a,k,[],"",null,null,zh,f));m=p}return l}
|
|
771
|
-
function Rq(a){return[a.M.
|
|
772
|
-
Infinity,p=!(a.yb&&a.$.Ge);m?(c=m,Xq(c,k,n,q,p,h),c.ab(a.presentationTimeline.cb())):m=new Yq(k,a.M.id,a.bandwidth,a.M.bb,n,q,h,p,g,a.M.df);k.timeline&&"image"!==a.na.contentType&&a.presentationTimeline.Wf(k.timeline,n);d&&a.yb&&(d.segmentIndex=m);return{$b:function(){m instanceof Yq&&0==m.
|
|
771
|
+
function Rq(a){return[a.M.Db,a.na.Db,a.sa.Db].filter(Xc).map(function(b){return gg(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Nf&&(a.Nf=!0);var c=b.getAttribute("media");b=og(b,"mediaRange",rg,{start:0,end:null});return{rh:c,start:b.start,end:b.end}})};function Sq(a,b,c,d,e,f,g){var h=Tq(a,g),k=Uq(a);Vq(k);var l=$e(a);if(k.Sc)return Mq(a,h),{$b:function(){var u=oq(k.Sc,l.M.id,null,null,l.bandwidth||null,null);u=xc(l.M.bb(),[u]);return Lq(l,b,h,u,0,null,k.rb)}};if(k.xa)return d||"image"===a.na.contentType||(a.presentationTimeline.Te(k.xa),a.presentationTimeline.Nd(a.$.start)),{$b:function(){return Wq(l,k,e,h,f,g)}};var m=null;d=d=null;a.sa.id&&a.M.id&&(d=a.sa.id+","+a.M.id,d=c[d])&&(m=d.segmentIndex);var n=a.$.start,q=a.$.duration?n+a.$.duration:
|
|
772
|
+
Infinity,p=!(a.yb&&a.$.Ge);m?(c=m,Xq(c,k,n,q,p,h),c.ab(a.presentationTimeline.cb())):m=new Yq(k,a.M.id,a.bandwidth,a.M.bb,n,q,h,p,g,a.M.df);k.timeline&&"image"!==a.na.contentType&&a.presentationTimeline.Wf(k.timeline,n);d&&a.yb&&(d.segmentIndex=m);return{$b:function(){m instanceof Yq&&0==m.zb()&&Xq(m,k,n,q,p,h);return Promise.resolve(m)}}}function Zq(a){return a.cd}
|
|
773
773
|
function Uq(a){var b=pq(a,Zq),c=qq(a,Zq,"media");a=qq(a,Zq,"index");return{xa:b.xa,timescale:b.timescale,dd:b.dd,rb:b.rb,tf:b.tf,timeline:b.timeline,hc:c,Sc:a}}function Vq(a){var b=a.Sc?1:0;b+=a.timeline?1:0;b+=a.xa?1:0;if(0==b)throw new P(2,4,4002);1!=b&&(a.Sc&&(a.timeline=null),a.xa=null);if(!a.Sc&&!a.hc)throw new P(2,4,4002);}
|
|
774
|
-
function Wq(a,b,c,d,e,f){function g(I){var L=(I-u)*p,M=L+b.rb,O=L+m;L=O+p;var S=Math.min(L,k());O=new R(O,S,function(){var ca=M*v;"BigInt"in window&&ca>Number.MAX_SAFE_INTEGER&&(ca=BigInt(M)*BigInt(v));ca=oq(y,x,I,null,z,ca);return xc(A(),[ca])},0,null,d,B,m,k(),[],"",null,null,zh,f);O.i=L;return O}function h(){var I=[Math.max(l.cb(),m),Math.min(l.
|
|
775
|
-
return I?m+I:Infinity}var l=a.presentationTimeline,m=a.$.start,n=a.sa.id,q=a.$.duration,p=b.xa,u=b.dd,v=b.timescale,y=b.hc,z=a.bandwidth||null,x=a.M.id,A=a.M.bb,B=m-b.rb,D=h();a=a.yb?Math.max(D[0],D[1]-c+1):D[0];D=D[1];c=[];for(var F=a;F<=D;++F){var J=g(F);c.push(J)}var G=new xj(c);c=l.
|
|
776
|
-
function Tq(a,b){var c=qq(a,Zq,"initialization");if(!c)return null;var d=a.M.id,e=a.bandwidth||null,f=a.M.bb;return new xh(function(){var g=oq(c,d,null,null,e,null);return xc(f(),[g])},0,null,Gq(a),null,null,b)}function Yq(a,b,c,d,e,f,g,h,k,l){xj.call(this,[]);this.h=a;this.F=b;this.A=c;this.C=d;this.i=e;this.
|
|
777
|
-
r.ab=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.i<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.j+=b,0===this.
|
|
778
|
-
function $q(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.
|
|
779
|
-
r.
|
|
780
|
-
|
|
781
|
-
0==this.G?0<m&&n.Jd():0!=m%this.G&&n.Jd();h.push(n)}c=new R(this.i+e.start,this.i+e.end,function(){return 0<e.eb?[]:ar(d,b.F,f,b.A,g,null,b.C)},0,null,this.s,c,this.i,this.m,h,"",null,null,zh,this.u,0<e.eb);this.g[a]=c}return c};function ar(a,b,c,d,e,f,g){a=oq(a,b,c,f,d||null,e);return xc(g(),[a]).map(function(h){return h.toString()})};function br(a){this.o=null;this.u=a;this.G=new af;this.j=[];this.h=null;this.m=[];this.A=null;this.F=[];this.C=300;this.l=new Map;this.i=new Map;this.g=null;this.s="UNKNOWN"}br.prototype.configure=function(a){this.o=a};br.prototype.destroy=function(){this.u=this.o=null;this.j=[];this.h=null;this.m=[];this.F=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.G.destroy()};br.prototype.setManifestType=function(a){this.s=a};
|
|
774
|
+
function Wq(a,b,c,d,e,f){function g(I){var L=(I-u)*p,M=L+b.rb,O=L+m;L=O+p;var S=Math.min(L,k());O=new R(O,S,function(){var ca=M*v;"BigInt"in window&&ca>Number.MAX_SAFE_INTEGER&&(ca=BigInt(M)*BigInt(v));ca=oq(y,x,I,null,z,ca);return xc(A(),[ca])},0,null,d,B,m,k(),[],"",null,null,zh,f);O.i=L;return O}function h(){var I=[Math.max(l.cb(),m),Math.min(l.Ab(),k())].map(function(L){return L-m});return[Math.ceil(I[0]/p),Math.ceil(I[1]/p)-1].map(function(L){return L+u})}function k(){var I=null!=n&&e[n]||q;
|
|
775
|
+
return I?m+I:Infinity}var l=a.presentationTimeline,m=a.$.start,n=a.sa.id,q=a.$.duration,p=b.xa,u=b.dd,v=b.timescale,y=b.hc,z=a.bandwidth||null,x=a.M.id,A=a.M.bb,B=m-b.rb,D=h();a=a.yb?Math.max(D[0],D[1]-c+1):D[0];D=D[1];c=[];for(var F=a;F<=D;++F){var J=g(F);c.push(J)}var G=new xj(c);c=l.Ab()<k();F=l.P();if(c||F){var H=Math.max(a,D+1);G.Td(p,function(){var I=l.cb();G.ab(I);var L=t(h());L.next();L=L.next().value;for(var M=[];H<=L;){var O=g(H);M.push(O);H++}return I>k()&&!M.length?null:M})}return Promise.resolve(G)}
|
|
776
|
+
function Tq(a,b){var c=qq(a,Zq,"initialization");if(!c)return null;var d=a.M.id,e=a.bandwidth||null,f=a.M.bb;return new xh(function(){var g=oq(c,d,null,null,e,null);return xc(f(),[g])},0,null,Gq(a),null,null,b)}function Yq(a,b,c,d,e,f,g,h,k,l){xj.call(this,[]);this.h=a;this.F=b;this.A=c;this.C=d;this.i=e;this.l=f;this.s=g;this.u=k;this.G=l;h&&$q(this)}pa(Yq,xj);r=Yq.prototype;r.zb=function(){return this.h?this.h.timeline.length:0};r.release=function(){xj.prototype.release.call(this);this.h=null};
|
|
777
|
+
r.ab=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.i<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.j+=b,0===this.zb()&&this.release())}};function Xq(a,b,c,d,e,f){a.s=f;if(a.h){c=a.h.timeline;a.h.hc=b.hc;var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end});0<b.length&&a.h.timeline.push.apply(a.h.timeline,w(b));a.l!==d&&(a.l=d)}else a.h=b,a.i=c,a.l=d;e&&$q(a)}
|
|
778
|
+
function $q(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.l)b.pop();else break;a.ab(a.i)}}r.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.i)return this.j;if(!this.h)return null;var b=this.h.timeline;if(a<this.i||a>=this.l)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.i;e=d<c?b[d+1].start+this.i:Infinity===this.l?e.end+this.i:this.l;if(a>=f&&a<e)return d+this.j}return null};
|
|
779
|
+
r.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.zb()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.hc,e=this.h.timeline[a],f=e.Jh,g=this.h.tf+e.uf;c=this.i-this.h.rb;var h=this.i+e.end,k=h;a===this.zb()-1&&Infinity!==this.l&&(k=this.l);for(var l=[],m=(e.end-e.start)/e.eb,n={},q=0;q<e.eb;n={Ac:n.Ac,ae:n.ae},q++){var p=e.start+m*q,u=p+m;n.ae=q+1;n.Ac=null;p=new R(this.i+p,this.i+u,function(v){return function(){if(!b.h)return[];null==v.Ac&&(v.Ac=ar(b.h.hc,b.F,f,b.A,g,v.ae,b.C));return v.Ac}}(n),
|
|
780
|
+
0,null,this.s,c,this.i,this.l,[],"",null,null,zh,this.u);0==this.G?0<q&&p.Jd():0!=q%this.G&&p.Jd();l.push(p)}c=new R(this.i+e.start,k,function(){return 0<e.eb?[]:ar(d,b.F,f,b.A,g,null,b.C)},0,null,this.s,c,this.i,this.l,l,"",null,null,zh,this.u,0<e.eb);c.i=h;this.g[a]=c}return c};function ar(a,b,c,d,e,f,g){a=oq(a,b,c,f,d||null,e);return xc(g(),[a]).map(function(h){return h.toString()})};function br(a){this.o=null;this.u=a;this.G=new af;this.j=[];this.h=null;this.m=[];this.A=null;this.F=[];this.C=300;this.l=new Map;this.i=new Map;this.g=null;this.s="UNKNOWN"}br.prototype.configure=function(a){this.o=a};br.prototype.destroy=function(){this.u=this.o=null;this.j=[];this.h=null;this.m=[];this.F=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.G.destroy()};br.prototype.setManifestType=function(a){this.s=a};
|
|
782
781
|
function cr(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g)return c=xc(a.j,[dr(a,b)]),d=gf(c,a.o.retryParameters),e=a.u.networkingEngine.request(8,d),bf(a.G,e),ta(l,2),C(l,e.promise,4);if(2!=l.g)return f=l.h,g=Df(f.data),h=JSON.parse(g),1==h.VERSION&&er(a,h,f.uri),wa(l,0);if((k=xa(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new jd(function(){cr(a,b)});a.g.U(a.C);E(l)})}
|
|
783
782
|
function dr(a,b){if(!a.m.length)return b;b=new gc(b);var c=a.A||a.m[0],d=Math.round(a.u.getBandwidthEstimate()),e=b.g;"DASH"==a.s?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.s&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));vc(e)&&kc(b,e);return b.toString()}function er(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new jd(function(){cr(a,d)});if(c=b.TTL)a.C=c;a.g.U(a.C);a.m=b["PATHWAY-PRIORITY"]||[];a.F=b["PATHWAY-CLONES"]||[]}
|
|
784
783
|
function fr(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}
|
|
785
|
-
function gr(a,b){b=a.l.get(b)||new Map;for(var c=[],d={},e=t(a.m),f=e.next();!f.done;d={
|
|
784
|
+
function gr(a,b){b=a.l.get(b)||new Map;for(var c=[],d={},e=t(a.m),f=e.next();!f.done;d={Gb:d.Gb},f=e.next())if(d.Gb=f.value,f=b.get(d.Gb))c.push({Ze:d.Gb,location:f});else if(f=a.F.find(function(h){return function(k){return k.ii==h.Gb}}(d))){var g=b.get(f["BASE-ID"]);g&&(f["URI-REPLACEMENT"].mg?(g=new gc(g),ic(g,f["URI-REPLACEMENT"].mg),c.push({Ze:d.Gb,location:g.toString()})):c.push({Ze:d.Gb,location:g}))}d=Date.now();e=t(a.i.keys());for(f=e.next();!f.done;f=e.next())f=f.value,g=a.i.get(f),d>g&&
|
|
786
785
|
a.i.delete(f);c=c.filter(function(h){for(var k=t(a.i.keys()),l=k.next();!l.done;l=k.next())if(l.value.includes((new gc(h.location)).lb))return!1;return!0});c.length&&(a.A=c[0].Ze);c=c.map(function(h){return h.location});if(!c.length&&a.h)for(d=t(a.h.split(",")),f=d.next();!f.done;f=d.next())if(e=b.get(f.value))a.A=a.h,c.push(e);if(!c.length)for(b=t(b.values()),d=b.next();!d.done;d=b.next())c.push(d.value);return xc(a.j,c)};function hr(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.m=new Set}r=hr.prototype;r.release=function(){for(var a=t(this.h.concat(this.g,this.l,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.l=[];this.i=[];this.j=[]};r.$g=function(){return this.j};r.De=function(){return this.l.slice()};r.Lg=function(){return this.i};
|
|
787
786
|
r.Af=function(a,b){var c,d,e,f,g=this,h,k,l,m,n,q,p,u,v,y,z,x,A,B,D,F,J,G,H,I,L,M,O,S,ca,W,da,Ba,Sa,xb;return K(function(db){if(1==db.g){h=Dc;ir(a);if(!b&&1==a.length)return k=a[0],g.h=k.audioStreams,g.g=k.videoStreams,g.l=k.textStreams,g.i=k.imageStreams,db.B(2);l=-1;for(m=0;m<a.length;m++)n=a[m],g.m.has(n.id)||(g.m.add(n.id),-1==l&&(l=m));if(-1==l)return db.return();for(var Tb=[],ua=[],eb=[],$a=[],yb=t(a),ab=yb.next();!ab.done;ab=yb.next())ab=ab.value,Tb.push(ab.audioStreams),ua.push(ab.videoStreams),
|
|
788
787
|
eb.push(ab.textStreams),$a.push(ab.imageStreams);c=Tb;d=ua;e=eb;f=$a;q=c;p=d;u=e;v=f;y=t(u);for(z=y.next();!z.done;z=y.next())x=z.value,x.push(jr(h.ja));A=t(v);for(B=A.next();!B.done;B=A.next())D=B.value,D.push(jr(h.Cc));return C(db,Promise.all([kr(g.h,q,l,lr,mr),kr(g.g,p,l,lr,mr),kr(g.l,u,l,lr,mr),kr(g.i,v,l,lr,mr)]),2)}F=0;J=[];if(g.g.length&&g.h.length)for(O=t(g.h),S=O.next();!S.done;S=O.next())for(ca=S.value,W=t(g.g),da=W.next();!da.done;da=W.next())Ba=da.value,Sa=oh(ca.drmInfos,Ba.drmInfos),
|
|
@@ -804,24 +803,24 @@ function mr(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));b.emsgSche
|
|
|
804
803
|
(a.closedCaptions=new Map);c=t(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=lr(b.trickModeVideo),a.trickModeVideo.createSegmentIndex=function(){a.trickModeVideo.segmentIndex=a.segmentIndex.clone();return Promise.resolve()}),mr(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&mr(a.trickModeVideo,b)}
|
|
805
804
|
function rr(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(w(a.keyIds),w(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,w(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=t(b.closedCaptions),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;a.closedCaptions.set(c,d)}}
|
|
806
805
|
function ur(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=b,f={audio:xr,video:xr,text:yr,image:zr}[e.type],g={audio:Ar,video:Br,text:Cr,image:Dr}[e.type],h=null;d=t(d.value);for(var k=d.next();!k.done;k=d.next())k=k.value,!f(e,k)||h&&!g(e,h,k)||(h=k);e=h;if(!e)return;c.push(e)}b.matchedStreams=c}
|
|
807
|
-
function xr(a,b){function c(d){if(!Er.has(d)){var e=Jc(d);Er.set(d,e)}return Er.get(d)}return b.mimeType!=a.mimeType||c(b.codecs)!=c(a.codecs)||a.drmInfos&&!
|
|
808
|
-
function Ar(a,b,c){if(a.id==c.id)return!0;var d=dd(a.language,b.language),e=dd(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1;
|
|
809
|
-
d=Fr(a.channelsCount,b.channelsCount,c.channelsCount);if(d==Gr)return!0;if(d==Hr)return!1;d=Fr(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==Gr?!0:d==Hr?!1:a.bandwidth&&Ir(a.bandwidth,b.bandwidth,c.bandwidth)==Gr?!0:!1}
|
|
806
|
+
function xr(a,b){function c(d){if(!Er.has(d)){var e=Jc(d);Er.set(d,e)}return Er.get(d)}return b.mimeType!=a.mimeType||c(b.codecs)!=c(a.codecs)||a.drmInfos&&!mh(a.drmInfos,b.drmInfos)?!1:!0}function yr(a,b){return a.language?b.language?a.forced!==b.forced||0==dd(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function zr(a){return a.tilesLayout?!0:!1}
|
|
807
|
+
function Ar(a,b,c){if(a.id==c.id)return!0;var d=dd(a.language,b.language),e=dd(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(b.label!==c.label){if(a.label===b.label)return!1;if(a.label===c.label)return!0}if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1;
|
|
808
|
+
if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;d=Fr(a.channelsCount,b.channelsCount,c.channelsCount);if(d==Gr)return!0;if(d==Hr)return!1;d=Fr(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==Gr?!0:d==Hr?!1:a.bandwidth&&Ir(a.bandwidth,b.bandwidth,c.bandwidth)==Gr?!0:!1}
|
|
810
809
|
function Br(a,b,c){if(a.id==c.id)return!0;var d=Fr(a.width*a.height,b.width*b.height,c.width*c.height);if(d==Gr)return!0;if(d==Hr)return!1;if(a.frameRate){d=Fr(a.frameRate,b.frameRate,c.frameRate);if(d==Gr)return!0;if(d==Hr)return!1}return a.bandwidth&&Ir(a.bandwidth,b.bandwidth,c.bandwidth)==Gr?!0:!1}
|
|
811
|
-
function Cr(a,b,c){if(a.id==c.id)return!0;var d=dd(a.language,b.language),e=dd(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&
|
|
812
|
-
a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function Dr(a,b,c){return a.id==c.id?!0:Fr(a.width*a.height,b.width*b.height,c.width*c.height)==Gr?!0:!1}
|
|
810
|
+
function Cr(a,b,c){if(a.id==c.id)return!0;var d=dd(a.language,b.language),e=dd(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(b.label!==c.label){if(a.label===b.label)return!1;if(a.label===c.label)return!0}if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&
|
|
811
|
+
b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function Dr(a,b,c){return a.id==c.id?!0:Fr(a.width*a.height,b.width*b.height,c.width*c.height)==Gr?!0:!1}
|
|
813
812
|
function pr(a){return{id:0,originalId:"",groupId:null,primary:!1,type:a,mimeType:"",codecs:"",language:"",originalLanguage:null,label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1,fastSwitching:!1}}
|
|
814
813
|
function jr(a){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new xj([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1}}
|
|
815
814
|
function Fr(a,b,c){if(b==a&&a!=c)return Hr;if(c==a&&a!=b)return Gr;if(b>a){if(c<=a||c-a<b-a)return Gr;if(c-a>b-a)return Hr}else{if(c>a)return Hr;if(a-c<a-b)return Gr;if(a-c>a-b)return Hr}return Jr}function Ir(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Gr:b<a?Hr:Jr}N("shaka.util.PeriodCombiner",hr);hr.prototype.combinePeriods=hr.prototype.Af;hr.prototype.getImageStreams=hr.prototype.Lg;hr.prototype.getTextStreams=hr.prototype.De;hr.prototype.getVariants=hr.prototype.$g;
|
|
816
815
|
var Gr=1,Jr=0,Hr=-1,Er=new Map;function Kr(){var a=this;this.i=this.g=null;this.o=[];this.j=null;this.I=1;this.m={};this.K={};this.l=new hr;this.F=0;this.H=new Oa(5);this.G=new jd(function(){Lr(a)});this.C=new af;this.u=null;this.J=[];this.A=Infinity;this.s=!1;this.h=null}r=Kr.prototype;r.configure=function(a){this.g=a;this.h&&this.h.configure(this.g)};r.start=function(a,b){var c=this,d;return K(function(e){if(1==e.g)return c.s=b.isLowLatencyMode(),c.o=[a],c.i=b,C(e,Mr(c),2);d=e.h;c.i&&Nr(c,d);if(!c.i)throw new P(2,7,7001);return e.return(c.j)})};
|
|
817
816
|
r.stop=function(){for(var a=t(Object.values(this.m)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.l&&this.l.release();this.g=this.i=null;this.o=[];this.j=null;this.m={};this.l=null;null!=this.G&&(this.G.stop(),this.G=null);this.h&&this.h.destroy();return this.C.destroy()};r.update=function(){var a=this,b;return K(function(c){if(1==c.g)return ta(c,2),C(c,Mr(a),4);if(2!=c.g)return wa(c,0);b=xa(c);if(!a.i||!b)return c.return();a.i.onError(b);E(c)})};
|
|
818
|
-
r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(a){if(this.j&&this.j.presentationTimeline.P()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.j.presentationTimeline.
|
|
817
|
+
r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(a){if(this.j&&this.j.presentationTimeline.P()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.j.presentationTimeline.Ab();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.F=b.endTime-a,Nr(this,0))}}};r.banLocation=function(a){this.h&&this.h.i.set(a,Date.now()+6E4)};
|
|
819
818
|
function Mr(a){var b,c,d,e,f;return K(function(g){if(1==g.g)return b=gf(a.o,a.g.retryParameters),c=Date.now(),C(g,Or(a,b,0,{type:4}),2);if(3!=g.g){d=g.h;if(!a.i)return g.return(0);d.uri&&d.uri!=d.originalUri&&!a.o.includes(d.uri)&&a.o.unshift(d.uri);return C(g,Pr(a,d.data,d.uri),3)}e=Date.now();f=(e-c)/1E3;a.H.sample(1,f);return g.return(f)})}
|
|
820
819
|
function Pr(a,b,c){var d,e,f,g,h;return K(function(k){if(1==k.g){d=Ag(b,"MPD");if(!d)throw new P(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k.return(Qr(a,d,c));f=a.g.dash.xlinkFailGracefully;g=uq(d,a.g.retryParameters,f,c,a.i.networkingEngine);bf(a.C,g);return C(k,g.promise,2)}h=k.h;return k.return(Qr(a,h,c))})}
|
|
821
|
-
function Qr(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B,D,F,J,G,H,I,L,M,O,S,ca,W,da,Ba,Sa,xb,db,Tb,ua,eb,$a,yb,ab,
|
|
820
|
+
function Qr(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B,D,F,J,G,H,I,L,M,O,S,ca,W,da,Ba,Sa,xb,db,Tb,ua,eb,$a,yb,ab,nh,xd,te,ue;return K(function(jb){switch(jb.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=gg(b,"Location").map(mg).filter(Xc);0<f.length&&(g=xc(e,f),e=a.o=g);h=Promise.resolve();if((k=fg(b,"ContentSteering"))&&a.i)if(l=k.getAttribute("defaultServiceLocation"),a.h)a.h.j=e,a.h.h=l;else if(a.h=new br(a.i),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.j=e,a.h.h=l,m=mg(k))(n=
|
|
822
821
|
og(k,"queryBeforeStart",wg,!1))?h=cr(a.h,m):cr(a.h,m);q=gg(b,"BaseURL");u=!1;if(a.h)for(a.h.l.clear(),v=t(q),y=v.next();!y.done;y=v.next())z=y.value,x=z.getAttribute("serviceLocation"),A=mg(z),x&&A&&(fr(a.h,"BaseURL",x,A),u=!0);u&&a.h||(B=q.map(mg),p=xc(e,B));D=function(){return a.h&&u?gr(a.h,"BaseURL"):p?p:[]};F=0;q&&q.length&&(F=og(q[0],"availabilityTimeOffset",vg)||0);J=a.g.dash.ignoreMinBufferTime;G=0;J||(G=og(b,"minBufferTime",qg)||0);a.F=og(b,"minimumUpdatePeriod",qg,-1);H=og(b,"availabilityStartTime",
|
|
823
822
|
pg);I=og(b,"timeShiftBufferDepth",qg);L=a.g.dash.ignoreSuggestedPresentationDelay;M=null;L||(M=og(b,"suggestedPresentationDelay",qg));O=a.g.dash.ignoreMaxSegmentDuration;S=null;O||(S=og(b,"maxSegmentDuration",qg));ca=b.getAttribute("type")||"static";if(a.j)for(W=a.j.presentationTimeline,da=t(Object.values(a.m)),Ba=da.next();!Ba.done;Ba=da.next())Sa=Ba.value,Sa.segmentIndex&&Sa.segmentIndex.ab(W.cb());else xb=a.g.defaultPresentationDelay||1.5*G,db=null!=M?M:xb,W=new bj(H,db,a.g.dash.autoCorrectDrift);
|
|
824
|
-
W.kc("static"==ca);(Tb=W.P())&&!isNaN(a.g.availabilityWindowOverride)&&(I=a.g.availabilityWindowOverride);null==I&&(I=Infinity);W.Sd(I);ua=b.getAttribute("profiles")||"";eb={yb:"static"!=ca,presentationTimeline:W,sa:null,$:null,na:null,M:null,bandwidth:0,Nf:!1,Xb:F,profiles:ua.split(",")};$a=Rr(a,eb,D,b);yb=$a.duration;ab=$a.periods;"static"!=ca&&$a.Ff||W.Na(yb||Infinity);a.A&&!a.s&&(
|
|
823
|
+
W.kc("static"==ca);(Tb=W.P())&&!isNaN(a.g.availabilityWindowOverride)&&(I=a.g.availabilityWindowOverride);null==I&&(I=Infinity);W.Sd(I);ua=b.getAttribute("profiles")||"";eb={yb:"static"!=ca,presentationTimeline:W,sa:null,$:null,na:null,M:null,bandwidth:0,Nf:!1,Xb:F,profiles:ua.split(",")};$a=Rr(a,eb,D,b);yb=$a.duration;ab=$a.periods;"static"!=ca&&$a.Ff||W.Na(yb||Infinity);a.A&&!a.s&&(nh=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.s=a.i.isLowLatencyMode());a.s?W.cg(a.A):a.A&&Ua("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
|
|
825
824
|
W.Te(S||1);return C(jb,a.l.Af(ab,eb.yb),2);case 2:return C(jb,h,3);case 3:a.s&&(G=0);if(a.j){a.j.variants=a.l.j;xd=a.l.De();0<xd.length&&(a.j.textStreams=xd);a.j.imageStreams=a.l.i;a.i.filter(a.j);jb.B(4);break}a.j={presentationTimeline:W,variants:a.l.j,textStreams:a.l.De(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:G||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:Sr(b)};if(!W.kg()){jb.B(5);break}te=gg(b,"UTCTiming");return C(jb,
|
|
826
825
|
Tr(a,D,te),6);case 6:ue=jb.h;if(!a.i)return jb.return();W.dg(ue);case 5:W.Id();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),E(jb)}})}
|
|
827
826
|
function Sr(a){a=fg(a,"ServiceDescription");if(!a)return null;var b=fg(a,"Latency"),c=fg(a,"PlaybackRate");if(b&&b.getAttribute("max")||c){a=b&&b.getAttribute("max")?parseInt(b.getAttribute("max"),10)/1E3:null;var d=c?parseFloat(c.getAttribute("max")):null;b=b&&b.getAttribute("min")?parseInt(b.getAttribute("min"),10)/1E3:null;c=c?parseFloat(c.getAttribute("min")):null;return{maxLatency:a,maxPlaybackRate:d,minLatency:b,minPlaybackRate:c}}return null}
|
|
@@ -838,7 +837,7 @@ u?y="visually impaired":"2"==u&&(y="hard of hearing"));if(l)return null;l=gg(c,"
|
|
|
838
837
|
k||f)return null;throw new P(2,4,4003);}if(!b.na.contentType||"application"==b.na.contentType)for(b.na.contentType=$r(c[0].mimeType,c[0].codecs),k=t(c),p=k.next();!p.done;p=k.next())p.value.type=b.na.contentType;k=b.na.id||"__fake__"+a.I++;m=t(c);for(p=m.next();!p.done;p=m.next()){p=p.value;u=t(D.drmInfos);for(z=u.next();!z.done;z=u.next())z=z.value,z.keyIds=z.keyIds&&p.keyIds?new Set([].concat(w(z.keyIds),w(p.keyIds))):z.keyIds||p.keyIds;a.g.dash.enableAudioGroups&&(p.groupId=k)}l=l.map(function(G){return G.getAttribute("id")}).filter(Xc);
|
|
839
838
|
return{id:k,contentType:b.na.contentType,language:F,Qi:e,streams:c,drmInfos:D.drmInfos,qf:f,Dh:l}}
|
|
840
839
|
function Zr(a,b,c,d,e,f,g,h,k,l,m){b.M=Vr(a,l,b.na,null);a.A=Math.min(a.A,b.M.Xb);if(!as(b.M))return null;var n=b.$.start;b.bandwidth=og(l,"bandwidth",tg)||0;var q=b.M.contentType,p=q==Cc||"application"==q;q="image"==q;try{var u=void 0;if(c.ee){var v=b.M.bb,y=xc(v(),[c.ee.nh]),z=gf(y,a.g.retryParameters);u={method:"AES-128",iv:c.ee.iv,firstMediaSequenceNumber:0,fetchKey:function(){var H,I,L;return K(function(M){if(1==M.g)return C(M,Or(a,z,6),2);if(3!=M.g){H=M.h;if(!H.data||16!=H.data.byteLength)throw new P(2,
|
|
841
|
-
4,4049);I={name:"AES-CBC"};L=u;return C(M,window.crypto.subtle.importKey("raw",H.data,I,!0,["decrypt"]),3)}L.cryptoKey=M.h;u.fetchKey=void 0;E(M)})}}}v=function(H,I,L,M){return bs(a,H,I,L,M)};if(b.M.bd)var x=Hq(b,v,u);else if(b.M.
|
|
840
|
+
4,4049);I={name:"AES-CBC"};L=u;return C(M,window.crypto.subtle.importKey("raw",H.data,I,!0,["decrypt"]),3)}L.cryptoKey=M.h;u.fetchKey=void 0;E(M)})}}}v=function(H,I,L,M){return bs(a,H,I,L,M)};if(b.M.bd)var x=Hq(b,v,u);else if(b.M.Db)x=Nq(b,a.m,u);else if(b.M.cd)x=Sq(b,v,a.m,!!a.j,a.g.dash.initialSegmentLimit,a.K,u);else{var A=b.$.duration||0,B=b.M.bb;x={$b:function(){return Promise.resolve(Aj(n,A,B()))}}}}catch(H){if((p||q)&&4002==H.code)return null;throw H;}v=gg(l,"ContentProtection");v=hq(v,c,a.g.dash.ignoreDrmInfo,
|
|
842
841
|
a.g.dash.keySystemsByURI);v=new Set(v?[v]:[]);y=!1;gg(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(y=!0);var D=!1;p&&(D=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var F;if(q&&((l=gg(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&(F=l.getAttribute("value")),
|
|
843
842
|
!F))return null;var J;l=b.M.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(J="PQ");l=b.M.id?b.sa.id+","+b.M.id:"";var G=l&&a.m[l]?a.m[l]:{id:a.I++,originalId:b.M.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){G.segmentIndex&&(G.segmentIndex.release(),G.segmentIndex=null)},segmentIndex:null,mimeType:b.M.mimeType,codecs:b.M.codecs,frameRate:b.M.frameRate,
|
|
844
843
|
pixelAspectRatio:b.M.pixelAspectRatio,bandwidth:b.bandwidth,width:b.M.width,height:b.M.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:v,language:e,originalLanguage:b.na.language,label:f,type:b.na.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.M.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.M.Od,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:y,closedCaptions:k,hdr:J,videoLayout:void 0,tilesLayout:F,matchedStreams:[],accessibilityPurpose:m,external:!1,
|
|
@@ -846,10 +845,10 @@ fastSwitching:!1};G.createSegmentIndex=function(){var H;return K(function(I){if(
|
|
|
846
845
|
function Lr(a){var b,c;K(function(d){switch(d.g){case 1:return b=0,ta(d,2),C(d,Mr(a),4);case 4:b=d.h;wa(d,3);break;case 2:if(c=xa(d),a.i){if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.i.onError(c),d.return();c.severity=1;a.i.onError(c)}case 3:if(!a.i)return d.return();a.i.onManifestUpdated();Nr(a,b);E(d)}})}function Nr(a,b){0>a.F||a.G.U(Math.max(a.F-b,Pa(a.H)))}
|
|
847
846
|
function Vr(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Od:null,audioSamplingRate:null,Xb:0,df:0};d=d||c.bb;var e=b.getAttribute("id"),f=gg(b,"BaseURL"),g,h=!1;if(a.h)for(var k=t(f),l=k.next();!l.done;l=k.next()){var m=l.value;l=m.getAttribute("serviceLocation");m=mg(m);l&&m&&(fr(a.h,e,l,m),h=!0)}h&&a.h||(g=f.map(mg));k=b.getAttribute("contentType")||c.contentType;l=b.getAttribute("mimeType")||c.mimeType;m=b.getAttribute("codecs")||
|
|
848
847
|
c.codecs;var n=og(b,"frameRate",xg)||c.frameRate,q=b.getAttribute("sar")||c.pixelAspectRatio,p=cs(gg(b,"InbandEventStream"),c.emsgSchemeIdUris),u=gg(b,"AudioChannelConfiguration");u=ds(u)||c.Od;var v=og(b,"audioSamplingRate",ug)||c.audioSamplingRate;k||(k=$r(l,m));var y=fg(b,"SegmentBase"),z=fg(b,"SegmentTemplate"),x=y?og(y,"availabilityTimeOffset",vg)||0:0,A=z?og(z,"availabilityTimeOffset",vg)||0:0,B=f&&f.length?og(f[0],"availabilityTimeOffset",vg)||0:0;x=c.Xb+B+x+A;A=null;(B=fg(b,"SegmentSequenceProperties"))&&
|
|
849
|
-
(B=fg(B,"SAP"))&&(A=og(B,"cadence",sg));return{bb:function(){return xc(d(),f.length?a.h&&h?gr(a.h,e):g?g:[]:[])},bd:y||c.bd,
|
|
848
|
+
(B=fg(B,"SAP"))&&(A=og(B,"cadence",sg));return{bb:function(){return xc(d(),f.length?a.h&&h?gr(a.h,e):g?g:[]:[])},bd:y||c.bd,Db:fg(b,"SegmentList")||c.Db,cd:z||c.cd,width:og(b,"width",ug)||c.width,height:og(b,"height",ug)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:q,emsgSchemeIdUris:p,id:e,language:b.getAttribute("lang"),Od:u,audioSamplingRate:v,Xb:x,df:A||c.df}}
|
|
850
849
|
function cs(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.getAttribute("schemeIdUri"),b.includes(c)||b.push(c);return b}
|
|
851
850
|
function ds(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
|
|
852
|
-
parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function as(a){var b=a.bd?1:0;b+=a.
|
|
851
|
+
parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function as(a){var b=a.bd?1:0;b+=a.Db?1:0;b+=a.cd?1:0;if(0==b)return a.contentType==Cc||"application"==a.contentType?!0:!1;1!=b&&(a.bd&&(a.Db=null),a.cd=null);return!0}
|
|
853
852
|
function es(a,b,c,d){var e,f,g,h,k,l;return K(function(m){if(1==m.g)return e=xc(b(),[c]),f=gf(e,a.g.retryParameters),f.method=d,g=a.i.networkingEngine.request(4,f),bf(a.C,g),C(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m.return(0);k=h.headers.date}else k=Df(h.data);l=Date.parse(k);return isNaN(l)?m.return(0):m.return(l-Date.now())})}
|
|
854
853
|
function Tr(a,b,c){var d,e,f,g,h,k,l,m;return K(function(n){switch(n.g){case 1:d=c.map(function(q){return{scheme:q.getAttribute("schemeIdUri"),value:q.getAttribute("value")}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.B(4);break}h=g.value;ta(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.B(7);case "urn:mpeg:dash:utc:http-xsdate:2014":case "urn:mpeg:dash:utc:http-iso:2014":case "urn:mpeg:dash:utc:http-xsdate:2012":case "urn:mpeg:dash:utc:http-iso:2012":return n.B(8);
|
|
855
854
|
case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Ua("NTP UTCTiming scheme is not supported");break;default:Ua("Unrecognized scheme in UTCTiming element",k)}n.B(9);break;case 7:return C(n,es(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return C(n,es(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:wa(n,
|
|
@@ -903,7 +902,7 @@ n=Z(c,"NAME"),q=It(c),Jt(c),m=Z(c,"CHARACTERISTICS"),u=Kt(c));a=Lt(a,b,g,h,l,n,q
|
|
|
903
902
|
function yt(a,b){var c=Z(b,"CODECS")||"";a.ba=0<c.length;a.ba||a.g.hls.disableCodecGuessing||(b=[],a.g.disableVideo||b.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||b.push(a.g.hls.defaultAudioCodec),c=b.join(","));a=new Set;b=[];c=t(c.split(/\s*,\s*/));for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=Kc(d)[0];a.has(e)||(b.push(d),a.add(e))}return b}function It(a){return(a=Z(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}function Kt(a){return(a=Z(a,"SAMPLE-RATE"))?parseInt(a,10):null}
|
|
904
903
|
function Jt(a){return(a=Z(a,"CHANNELS"))?a.includes("/JOC"):!1}
|
|
905
904
|
function Ht(a,b,c,d,e,f,g,h,k,l,m){for(var n=t(c),q=n.next();!q.done;q=n.next())pt(q.value.stream,e,f,g,h,k);e=a.g.disableAudio;if(!b.length||e)b=[null];e=a.g.disableVideo;if(!c.length||e)c=[null];e=[];b=t(b);for(f=b.next();!f.done;f=b.next())for(f=f.value,g=t(c),h=g.next();!h.done;h=g.next()){var p=h.value;if(h=f?f.stream:null)h.drmInfos=l,h.keyIds=m;if(k=p?p.stream:null)k.drmInfos=l,k.keyIds=m;n=f?f.stream.drmInfos:null;q=p?p.stream.drmInfos:null;p=p?p.Y().sort().join(","):"";var u=f?f.Y().sort().join(","):
|
|
906
|
-
"";p=p+" - "+u;h&&k&&!
|
|
905
|
+
"";p=p+" - "+u;h&&k&&!mh(n,q)||a.$a.has(p)||(h={id:a.u++,language:h?h.language:"und",disabledUntilTime:0,primary:!!h&&h.primary||!!k&&k.primary,audio:h,video:k,bandwidth:d,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.push(h),a.$a.add(p))}return e}
|
|
907
906
|
function kt(a,b){b=ss(b,"CLOSED-CAPTIONS");b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"LANGUAGE");c=$c(e||"und");e||(e=Z(d,"NAME"))&&(c=e);e=os(d,"GROUP-ID");d=os(d,"INSTREAM-ID").replace("SERVICE","svc");a.F.get(e)||a.F.set(e,new Map);a.F.get(e).set(d,c)}}
|
|
908
907
|
function zt(a,b,c){for(var d=[],e=[],f=new Map,g=t(b),h=g.next();!h.done;h=g.next()){var k=h.value;h=os(k,"URI");k=os(k,"GROUP-ID");d.push(h);e.push(k);f.set(k,h)}g=e.sort().join(",");h=b[0];b="";k=os(h,"TYPE").toLowerCase();"subtitles"==k&&(k=Cc);if(k==Cc)b=Z(h,"CODECS")||"";else{e=t(e);for(var l=e.next();!l.done;l=e.next())if(l=l.value,a.G.has(l)){b=a.G.get(l);break}}e=d.sort().join(",");if(a.h.has(e))return a.h.get(e);l=a.u++;if(a.j){f=t(f);for(var m=f.next();!m.done;m=f.next()){var n=t(m.value);
|
|
909
908
|
m=n.next().value;n=n.next().value;(m=c.get(m))&&fr(a.j,l,m,n)}}c=Z(h,"LANGUAGE");f=Z(h,"NAME");m="YES"==Z(h,"DEFAULT");n="audio"==k?It(h):null;var q="audio"==k?Jt(h):!1,p=Z(h,"CHARACTERISTICS"),u="YES"==Z(h,"FORCED");h="audio"==k?Kt(h):null;d=Dt(a,l,d,b,k,c,m,f,n,null,p,u,h,q);d.stream&&(d.stream.groupId=g);a.H.has(g)?a.H.get(g).push(d):a.H.set(g,[d]);a.h.set(e,d);return d}
|
|
@@ -922,7 +921,7 @@ return eb.return({stream:G,type:g,Yf:[],Y:d,Pb:O,ob:ca,qd:Ba,pd:Sa,Qc:!1,le:-1,V
|
|
|
922
921
|
function Nt(a,b,c,d,e,f,g,h,k,l,m,n){var q=At(c,b)||Bt(c),p=[];if(k){k=t(k.split(","));for(var u=k.next();!u.done;u=k.next())p.push(u.value)}k=void 0;u=null;c==Cc?k=p.includes("public.accessibility.transcribes-spoken-dialog")&&p.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":p.includes("public.accessibility.describes-video")&&(u="visually impaired");p.length||"subtitle"!==k||p.push("subtitle");return{id:a.u++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
|
|
923
922
|
segmentIndex:null,mimeType:q,codecs:b,kind:c==Cc?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:$c(d||"und"),originalLanguage:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:p,forced:l,channelsCount:g,audioSamplingRate:m,spatialAudio:n,closedCaptions:h,hdr:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:u,external:!1,fastSwitching:!1}}
|
|
924
923
|
function Zs(a,b){var c=[];if(a.segments){a=t(a.segments);for(var d=a.next();!d.done;d=a.next())d=rs(d.value.g,"EXT-X-KEY"),c.push.apply(c,w(d))}d=a=!1;var e=[],f=new Set;c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=os(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=Z(g,"KEYFORMAT")||"identity",g=(h=Ft[h])?h(g,b):null){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,sg:d}}
|
|
925
|
-
function Qt(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new P(2,4,4042);var f=0,g=Z(b,"IV","");if(g){var h=ag(g.substr(2));if(16!=h.byteLength)throw new P(2,4,4048);}else f=us(c.g,"EXT-X-MEDIA-SEQUENCE",0);var k={method:"AES-128",iv:h,firstMediaSequenceNumber:f,fetchKey:function(){var l,m,n,q,p;return K(function(u){if(1==u.g)return l=vs(d(),os(b,"URI"),e),m=gf(
|
|
924
|
+
function Qt(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new P(2,4,4042);var f=0,g=Z(b,"IV","");if(g){var h=ag(g.substr(2));if(16!=h.byteLength)throw new P(2,4,4048);}else f=us(c.g,"EXT-X-MEDIA-SEQUENCE",0);var k={method:"AES-128",iv:h,firstMediaSequenceNumber:f,fetchKey:function(){var l,m,n,q,p;return K(function(u){if(1==u.g)return l=vs(d(),os(b,"URI"),e),m=gf(l,a.g.retryParameters),
|
|
926
925
|
C(u,ut(a,m,6),2);if(3!=u.g){n=u.h;if(!n.data||16!=n.data.byteLength)throw new P(2,4,4049);q={name:"AES-CBC"};p=k;return C(u,window.crypto.subtle.importKey("raw",n.data,q,!0,["decrypt"]),3)}p.cryptoKey=u.h;k.fetchKey=void 0;E(u)})}};return k}
|
|
927
926
|
function bt(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=ts(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=ts(b.g,"EXT-X-TARGETDURATION");if(!d)throw new P(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=ts(b.g,"EXT-X-PART-INF"))a.K=Number(os(e,"PART-TARGET"));b=ts(b.g,"EXT-X-SERVER-CONTROL");a.A&&a.K?(a.m=a.jb?5*a.K<=c?Math.min(a.K,a.m):Math.min(c,a.m):Math.min(a.K,a.m),a.ma=b?Number(os(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b?
|
|
928
927
|
b.getAttribute("HOLD-BACK"):null,a.la=c?Number(c.value):0);a.za=Math.max(d,a.za)}function qt(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.ma)b=a.ma;else if(a.la)b=a.la;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.za*c}a.l.kf(0);a.l.eg(b);a.l.kc(!1)}
|
|
@@ -1036,13 +1035,13 @@ r.onInitialVariantChosen=function(){};r.banLocation=function(){};sh["application
|
|
|
1036
1035
|
function Wv(a,b){var c=new sv;return Se(void 0).oa(function(){return c.init()}).oa(function(){return wv(c,b.Ua(),b.ua())}).oa(function(d){return d.getSegments([b.key()])}).oa(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}N("shaka.offline.OfflineScheme",Uv);Uv.plugin=Vv;df("offline",Vv);function Xv(a,b,c){var d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),q=n.next();!q.done;q=n.next()){q=q.value;for(var p=!1,u=t(m),v=u.next();!v.done;v=u.next())if(v=v.value,Yv(v.info,q)){v.sessionIds.push(q.sessionId);p=!0;break}p||m.push({info:q,sessionIds:[q.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.B(4);break}g=f.value;h=Zv(a,b,g);return C(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.B(2);break;case 4:return l.return(d)}})}
|
|
1037
1036
|
function Zv(a,b,c){var d,e;return K(function(f){switch(f.g){case 1:return d=new Bg({Qb:b,onError:function(){},Pd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ta(f,2),d.configure(a),C(f,Jg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:wa(f,3);break;case 2:return xa(f),C(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],C(f,Promise.all(c.sessionIds.map(function(g){return K(function(h){if(1==
|
|
1038
1037
|
h.g)return ta(h,2),C(h,Vg(d,g),4);if(2!=h.g)return e.push(g),wa(h,0);xa(h);E(h)})})),6);case 6:return C(f,d.destroy(),7);case 7:return f.return(e)}})}function Yv(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Ab(a.audioCapabilities,b.audioCapabilities,c)&&Ab(a.videoCapabilities,b.videoCapabilities,c)};function $v(a,b,c){var d=b.presentationTimeline.getDuration();b=aw(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function bw(a,b){var c=Ov(new Nv(a.Ua(),a.ua()),b),d=b.appMetadata||{};c=aw(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}}
|
|
1039
|
-
function aw(a){var b=[],c=ee(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(Wd(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(Xd(c.value));return b};function cw(){this.g={}}function dw(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function ew(a,b){a.g[b.id]=b.bandwidth||2048}function fw(a,b){a=a.g[b];null==a&&(a=0);return a};function gw(a){var b=this;if(a&&a.constructor!=V)throw new P(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.
|
|
1040
|
-
case 4:b.h=null,b.g=null,E(k)}})})}function hw(){if(kd())a:{var a=t(tv.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}r=gw.prototype;r.destroy=function(){return this.l.destroy()};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=tl(a,b));return Fl(this.h,a)};r.getConfiguration=function(){var a=Dl();Fl(a,this.h,Dl());return a};r.
|
|
1038
|
+
function aw(a){var b=[],c=ee(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(Wd(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(Xd(c.value));return b};function cw(){this.g={}}function dw(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function ew(a,b){a.g[b.id]=b.bandwidth||2048}function fw(a,b){a=a.g[b];null==a&&(a=0);return a};function gw(a){var b=this;if(a&&a.constructor!=V)throw new P(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Lb()):(this.h=Dl(),this.g=new cf);this.i=[];this.j=[];var c=!a;this.l=new pf(function(){var d,e,f,g,h;return K(function(k){switch(k.g){case 1:return C(k,Promise.all(b.j.map(function(l){return cv(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return C(k,Promise.all(e),3);case 3:if(!c){k.B(4);break}return C(k,b.g.destroy(),4);
|
|
1039
|
+
case 4:b.h=null,b.g=null,E(k)}})})}function hw(){if(kd())a:{var a=t(tv.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}r=gw.prototype;r.destroy=function(){return this.l.destroy()};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=tl(a,b));return Fl(this.h,a)};r.getConfiguration=function(){var a=Dl();Fl(a,this.h,Dl());return a};r.Lb=function(){return this.g};
|
|
1041
1040
|
r.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new bv(this.g);this.j.push(f);b=iw(this,a,b||{},function(){var g;return K(function(h){if(1==h.g)return c?h.B(2):C(h,Dk(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=rh(a,c||null);return h.return(g())})},e,f);b=new Pe(b,function(){return cv(f)});b.finally(function(){zb(d.j,f)});return jw(this,b)};
|
|
1042
1041
|
function iw(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,y,z,x,A;return K(function(B){switch(B.g){case 1:return kw(),h=g=null,k=new sv,n=m=l=null,ta(B,2,3),C(B,d(),5);case 5:return g=B.h,C(B,lw(a,b,g,e),6);case 6:q=B.h;mw(a);p=!q.presentationTimeline.P()&&!q.presentationTimeline.Ob();if(!p)throw new P(2,9,9005,b);return C(B,nw(a,q,function(D){n=n||D},e),7);case 7:h=B.h;mw(a);if(n)throw n;return C(B,ow(q,h,e),8);case 8:return C(B,k.init(),9);case 9:return mw(a),C(B,uv(k),10);case 10:return l=B.h,mw(a),u=pw(h,
|
|
1043
1042
|
q,b,c,e,f),v=u.oh,y=u.pf,C(B,l.ua.addManifests([v]),11);case 11:z=B.h;mw(a);m=z[0];mw(a);if(n)throw n;return C(B,qw(a,y,m,v,f,e,l.ua,q,h),12);case 12:return mw(a),rw(q,v,h,e),C(B,l.ua.updateManifest(m,v),13);case 13:return mw(a),x=new Lv("manifest",l.path.Ua,l.path.ua,m),B.return(bw(x,v));case 3:return ya(B),C(B,k.destroy(),14);case 14:if(!g){B.B(15);break}return C(B,g.stop(),15);case 15:if(!h){B.B(17);break}return C(B,h.destroy(),17);case 17:za(B,0);break;case 2:A=xa(B);if(null==m){B.B(19);break}return C(B,
|
|
1044
1043
|
sw(m),19);case 19:throw n||A;}})}
|
|
1045
|
-
function qw(a,b,c,d,e,f,g,h,k){var l,m,n,q,p,u,v,y,z,x;return K(function(A){switch(A.g){case 1:l={};m=0;n=function(B,D){var F,J,G,H,I,L,M;return K(function(O){if(1==O.g){F={};J=t(B);for(G=J.next();!G.done;F={
|
|
1044
|
+
function qw(a,b,c,d,e,f,g,h,k){var l,m,n,q,p,u,v,y,z,x;return K(function(A){switch(A.g){case 1:l={};m=0;n=function(B,D){var F,J,G,H,I,L,M;return K(function(O){if(1==O.g){F={};J=t(B);for(G=J.next();!G.done;F={Fb:F.Fb},G=J.next())F.Fb=G.value,H=Zu(F.Fb,f),I=F.Fb.i,L=F.Fb.h,M=function(S){return function(ca){var W,da,Ba;return K(function(Sa){if(1==Sa.g)return C(Sa,g.addSegments([{data:ca}]),2);W=Sa.h;mw(a);da=S.Fb.g;Ba=Yu(da);l[Ba]=W[0];m+=ca.byteLength;E(Sa)})}}(F),ev(e,F.Fb.groupId,H,I,L,M);return C(O,
|
|
1046
1045
|
gv(e),2)}if(!D)return O.B(0);mw(a);rw(h,d,k,f);return C(O,g.updateManifest(c,d),0)})};q=!1;ta(A,2);if(!tw(h)||!q||uw(h)){A.B(4);break}return C(A,n(b.filter(function(B){return B.h}),!0),5);case 5:return mw(a),b=b.filter(function(B){return!B.h}),p=l,u=m,l={},m=0,C(A,vw(g,c,d,p,u,function(){return mw(a)}),6);case 6:mw(a);case 4:if(q){A.B(7);break}return C(A,n(b,!1),8);case 8:return mw(a),v=l,y=m,l={},m=0,C(A,vw(g,c,d,v,y,function(){return mw(a)}),9);case 9:mw(a);case 7:wa(A,0);break;case 2:return z=
|
|
1047
1046
|
xa(A),x=Object.values(l),C(A,g.removeSegments(x,function(){}),10);case 10:throw z;}})}function sw(a){var b,c,d,e;return K(function(f){switch(f.g){case 1:return b=new sv,C(f,b.init(),2);case 2:return C(f,uv(b),3);case 3:return c=f.h,d=new Lv("manifest",c.path.Ua,c.path.ua,a),C(f,b.destroy(),4);case 4:return e=new gw,C(f,e.remove(d.toString()),0)}})}
|
|
1048
1047
|
function vw(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,y;return K(function(z){switch(z.g){case 1:g=!1;ta(z,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),q=n.next();!q.done;q=n.next())p=q.value,u=p.pendingSegmentRefId?d[p.pendingSegmentRefId]:null,null!=u&&(p.dataKey=u,p.pendingSegmentRefId=void 0),u=p.pendingInitSegmentRefId?d[p.pendingInitSegmentRefId]:null,null!=u&&(p.initSegmentKey=u,p.pendingInitSegmentRefId=void 0),p.pendingSegmentRefId&&(h=!1),p.pendingInitSegmentRefId&&
|
|
@@ -1068,7 +1067,7 @@ function zw(a,b){return K(function(c){if(1==c.g)return a.i.push(b),va(c,2),C(c,b
|
|
|
1068
1067
|
function Ew(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=yv(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:Dw(d,!1),videoCapabilities:Dw(d,!0)}});return C(h,Xv(b,a,f),2)}return 3!=h.g?(g=h.h,C(h,e.remove(g),3)):C(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
|
|
1069
1068
|
function Iw(a){for(var b=new Set,c=t(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=t(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
|
|
1070
1069
|
function ww(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}N("shaka.offline.Storage",gw);gw.deleteAll=function(){var a;return K(function(b){return 1==b.g?(a=new sv,va(b,2),C(b,zv(a),2)):5!=b.g?(ya(b),C(b,a.destroy(),5)):za(b,0)})};
|
|
1071
|
-
gw.prototype.list=gw.prototype.list;gw.prototype.removeEmeSessions=gw.prototype.Ch;gw.prototype.remove=gw.prototype.remove;gw.prototype.store=gw.prototype.store;gw.prototype.getNetworkingEngine=gw.prototype.
|
|
1070
|
+
gw.prototype.list=gw.prototype.list;gw.prototype.removeEmeSessions=gw.prototype.Ch;gw.prototype.remove=gw.prototype.remove;gw.prototype.store=gw.prototype.store;gw.prototype.getNetworkingEngine=gw.prototype.Lb;gw.prototype.getConfiguration=gw.prototype.getConfiguration;gw.prototype.configure=gw.prototype.configure;gw.prototype.destroy=gw.prototype.destroy;gw.support=hw;
|
|
1072
1071
|
var xw=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");
|
|
1073
1072
|
mn.offline=hw;function Lw(){}function Mw(a,b){a={priority:b||0,ug:a};for(b=0;b<Nw.length;b++)if(Nw[b].priority<a.priority){Nw.splice(b,0,a);return}Nw.push(a)}N("shaka.polyfill",Lw);Lw.register=Mw;Lw.installAll=function(){for(var a=t(Nw),b=a.next();!b.done;b=a.next()){b=b.value;try{b.ug()}catch(c){Ua("Error installing polyfill!",c)}}};var Nw=[];function Ow(){this.g=new Pw}function Qw(){window.AbortController||(window.AbortController=Ow,window.AbortSignal=Pw)}Ow.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new Q("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};fa.Object.defineProperties(Ow.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});Lw.AbortController=Ow;Ow.install=Qw;
|
|
1074
1073
|
function Pw(){Ye.call(this);this.h=!1;this.g=void 0;this.onabort=null}pa(Pw,Ye);fa.Object.defineProperties(Pw.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});Mw(Qw);function Rw(){}function Sw(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())Tw(b.value)}function Tw(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){null==c||void 0==c?this.removeAttribute(b):this.setAttribute(b,c)}})}Lw.Aria=Rw;Rw.install=Sw;Mw(Sw);function Uw(){}function Vw(){Ww()}Lw.EncryptionScheme=Uw;Uw.install=Vw;Mw(Vw,-2);function Xw(){}
|
|
@@ -1119,7 +1118,7 @@ function dy(){return this.webkitSupportsPresentationMode("picture-in-picture")?(
|
|
|
1119
1118
|
function ey(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function fy(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Lw.PiPWebkit=by;by.install=cy;Mw(cy);function iy(){}function jy(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=ky))}function ky(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}Lw.RandomUUID=iy;iy.install=jy;Mw(jy);function ly(){}function my(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=ny)}function ny(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}Lw.StorageEstimate=ly;ly.install=my;Mw(my);function oy(){}function py(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:qy})}function qy(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}Lw.Symbol=oy;oy.install=py;Mw(py);function ry(){}function sy(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}Lw.VideoPlayPromise=ry;ry.install=sy;Mw(sy);function ty(){}function uy(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||td())&&(a.getVideoPlaybackQuality=vy)}}function vy(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Lw.VideoPlaybackQuality=ty;ty.install=uy;Mw(uy);function wy(){}function xy(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=yy;else if(6==b)a=zy;else{try{var c=!!yy(1,2,"")}catch(d){c=!1}c&&(a=yy)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function yy(a,b,c){return new window.TextTrackCue(a,b,c)}function zy(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Lw.VTTCue=wy;wy.install=xy;Mw(xy);function Ay(){}Ay.prototype.parseInit=function(){};Ay.prototype.setSequenceMode=function(){};Ay.prototype.setManifestType=function(){};Ay.prototype.parseMedia=function(a,b){var c=null,d=[];a=Df(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=By.exec(e))){var f=Cy.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Cb(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
|
|
1120
1119
|
N("shaka.text.LrcTextParser",Ay);Ay.prototype.parseMedia=Ay.prototype.parseMedia;Ay.prototype.setManifestType=Ay.prototype.setManifestType;Ay.prototype.setSequenceMode=Ay.prototype.setSequenceMode;Ay.prototype.parseInit=Ay.prototype.parseInit;var By=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Cy=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Pc["application/x-subtitle-lrc"]=function(){return new Ay};function Dy(){}Dy.prototype.parseInit=function(){};Dy.prototype.setSequenceMode=function(){};Dy.prototype.setManifestType=function(){};
|
|
1121
1120
|
Dy.prototype.parseMedia=function(a,b,c){var d=Df(a);a=[];if(""==d)return a;var e=yg(d,"tt");if(!e)throw new P(2,2,2005,"Failed to parse TTML.");d=e.getElementsByTagName("body")[0];if(!d)return[];var f=lg(e,Ey,"frameRate"),g=lg(e,Ey,"subFrameRate"),h=lg(e,Ey,"frameRateMultiplier"),k=lg(e,Ey,"tickRate"),l=lg(e,Ey,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=lg(e,Fy,"extent");if("default"!=m&&"preserve"!=m)throw new P(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new Gy(f,
|
|
1122
|
-
g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{
|
|
1121
|
+
g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{Hb:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?jg(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var q=t(e),p=q.next();!p.done;p=q.next()){var u=p.value;p=new Db;var v=u.getAttribute("xml:id");if(v){p.id=v;var y=null;n&&(y=Hy.exec(n)||Iy.exec(n));v=y?Number(y[1]):null;y=y?Number(y[2]):null;var z,x=Jy(u,h,"extent");if(x){var A=(z=Hy.exec(x))||Iy.exec(x);
|
|
1123
1122
|
null!=A&&(p.width=Number(A[1]),p.height=Number(A[2]),z||(null!=v&&(p.width=100*p.width/v),null!=y&&(p.height=100*p.height/y)),p.widthUnits=z||null!=v?Wb:0,p.heightUnits=z||null!=y?Wb:0)}if(u=Jy(u,h,"origin"))if(A=(z=Hy.exec(u))||Iy.exec(u),null!=A)p.viewportAnchorX=Number(A[1]),p.viewportAnchorY=Number(A[2]),z?x||(p.width=100-p.viewportAnchorX,p.widthUnits=Wb,p.height=100-p.viewportAnchorY,p.heightUnits=Wb):(null!=y&&(p.viewportAnchorY=100*p.viewportAnchorY/y),null!=v&&(p.viewportAnchorX=100*p.viewportAnchorX/
|
|
1124
1123
|
v)),p.viewportAnchorUnits=z||null!=v?Wb:0}else p=null;p&&k.push(p)}if(gg(d,"p").length)throw new P(2,2,2001,"<p> can only be inside <div> in TTML");n=t(gg(d,"div"));for(q=n.next();!q.done;q=n.next())if(gg(q.value,"span").length)throw new P(2,2,2001,"<span> can only be inside <p> in TTML");if(b=Ky(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
|
|
1125
1124
|
function Ky(a,b,c,d,e,f,g,h,k,l,m,n){var q=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var p=document.createElement("span");p.textContent=a.textContent}else p=a;for(var u=null,v=t(Ly),y=v.next();!y.done&&!(u=My(p,"backgroundImage",d,"#",y.value)[0]);y=v.next());v=null;var z=lg(p,Ly,"backgroundImage");n&&z&&!z.startsWith("#")&&(y=new gc(n),z=new gc(z),(y=y.resolve(z).toString())&&(v=y));if("p"==a.nodeName||u||v)m=!0;a=m;y="default"==(p.getAttribute("xml:space")||
|
|
@@ -1204,7 +1203,7 @@ function bA(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}var Yz=[3
|
|
|
1204
1203
|
r.transmux=function(a,b,c,d){a=nb(a);for(c=Mh(a).length;c<a.length;c++){var e=c;if(e+1<a.length&&bA(a,e)){var f=Xz(a,e),g=4;f&&f.S&&(g=f.S);e+=g;e=e===a.length||e+1<a.length&&bA(a,e)}else e=!1;if(e)break}var h;for(e=[];c<a.length;){f=Xz(a,c);if(!f)return Promise.reject(new P(2,3,3018));h||(h=f);c+f.S<=a.length&&e.push({data:a.subarray(c,c+f.S),size:f.S,duration:1152,Ra:0,flags:{Sa:0,Ja:0,Ha:0,Fa:0,Ga:2,Ta:0}});c+=f.S}if(!h)return Promise.reject(new P(2,3,3018));a=9E4*h.Gh/h.sampleRate*this.h;d={id:b.id,
|
|
1205
1204
|
type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:h.sampleRate,duration:d,Pa:[],ca:new Uint8Array([]),ka:new Uint8Array([]),ra:0,ta:0,data:{fb:this.h,baseMediaDecodeTime:a,Ma:e},stream:b};h=new $t([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=fu(h),this.g.set(b.id,d));b=wu(h);this.h++;b=cg(d,b);return Promise.resolve(b)};N("shaka.transmuxer.Mp3Transmuxer",cA);cA.prototype.transmux=cA.prototype.transmux;cA.prototype.getOriginalMimeType=cA.prototype.getOriginalMimeType;
|
|
1206
1205
|
cA.prototype.convertCodecs=cA.prototype.convertCodecs;cA.prototype.isSupported=cA.prototype.isSupported;cA.prototype.destroy=cA.prototype.destroy;Zb("audio/mpeg",function(){return new cA("audio/mpeg")},ec);function dA(a){this.h=a;this.g=null}r=dA.prototype;r.destroy=function(){};r.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=Mc(a).split(","),c=Ac("audio",b);b=Ac("video",b);return!c||b||"mp3"!=Jc(c)?!1:cb(this.convertCodecs("audio",a))};r.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};r.getOriginalMimeType=function(){return this.h};
|
|
1207
|
-
r.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new fi;a=nb(a);a=this.g.parse(a);if("mp3"!=a.Lc().audio||"audio"!=e)return Promise.reject(new P(2,3,3018));e=new Uint8Array([]);a=t(a.
|
|
1206
|
+
r.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new fi;a=nb(a);a=this.g.parse(a);if("mp3"!=a.Lc().audio||"audio"!=e)return Promise.reject(new P(2,3,3018));e=new Uint8Array([]);a=t(a.Jb());for(b=a.next();!b.done;b=a.next())if(b=b.value.data)for(c=0;c<b.length;)(d=Xz(b,c))?(c+d.S<=b.length&&(e=cg(e,b.subarray(c,c+d.S))),c+=d.S):c++;return Promise.resolve(e)};N("shaka.transmuxer.MpegTsTransmuxer",dA);dA.prototype.transmux=dA.prototype.transmux;dA.prototype.getOriginalMimeType=dA.prototype.getOriginalMimeType;
|
|
1208
1207
|
dA.prototype.convertCodecs=dA.prototype.convertCodecs;dA.prototype.isSupported=dA.prototype.isSupported;dA.prototype.destroy=dA.prototype.destroy;Zb("video/mp2t",function(){return new dA("video/mp2t")},dc);/*
|
|
1209
1208
|
@license
|
|
1210
1209
|
MSS Transmuxer
|
|
@@ -1225,13 +1224,13 @@ r.transmux=function(a,b,c,d,e){this.i?this.i.clearData():this.i=new fi;a=nb(a);v
|
|
|
1225
1224
|
duration:y,Ra:Math.round((p.pts||0)-(p.dts||0)),flags:{Sa:0,Ja:0,Ha:0,Fa:0,Ga:v.Tc?2:1,Ta:v.Tc?0:1}})}}var z=Pz(m);if(!z||null==l)throw new P(2,3,3018);b.height=z.height;b.width=z.width;h={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Pa:[],ca:new Uint8Array([]),ka:z.ka,ra:z.ra,ta:z.ta,data:{fb:this.g,baseMediaDecodeTime:l,Ma:k},stream:b};break;case "hvc":n=[];p=null;u=[];k=f.dc();if(!k.length)throw new P(2,3,3023);for(v=0;v<k.length;v++){l=
|
|
1226
1225
|
k[v];m=l.nalus;u.push.apply(u,w(m));z=!1;var x=[],A=!1;q=t(m);for(y=q.next();!y.done;y=q.next()){var B=y.value;switch(B.type){case 1:case 0:var D=A=!0;break;case 19:case 20:case 21:z=D=A=!0;break;case 32:D=!0;break;case 33:D=!0;break;case 34:D=!0;break;case 35:A=D=!0;break;case 39:case 40:D=!0;break;default:D=!1}if(A&&D){var F=B.fullData.byteLength,J=new Uint8Array(4);J[0]=F>>24&255;J[1]=F>>16&255;J[2]=F>>8&255;J[3]=F&255;x.push(cg(J,B.fullData))}}var G=x.length?{data:cg.apply(Xf,w(x)),Tc:z}:null;
|
|
1227
1226
|
G&&(null==p&&null!=l.dts&&(p=l.dts),z=void 0,z=v+1<k.length?(k[v+1].dts||0)-(l.dts||0):1<k.length?(l.dts||0)-(k[v-1].dts||0):9E4*(c.endTime-c.startTime),n.push({data:G.data,size:G.data.byteLength,duration:z,Ra:Math.round((l.pts||0)-(l.dts||0)),flags:{Sa:0,Ja:0,Ha:0,Fa:0,Ga:G.Tc?2:1,Ta:G.Tc?0:1}}))}var H=Sz(u);if(!H||null==p)throw new P(2,3,3018);b.height=H.height;b.width=H.width;h={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Pa:[],ca:new Uint8Array([]),
|
|
1228
|
-
ka:H.ka,ra:H.ra,ta:H.ta,data:{fb:this.g,baseMediaDecodeTime:p,Ma:n},stream:b}}h&&(a.push(h),h=null)}if("audio"==e){switch(g.audio){case "aac":for(var I=[],L,M=null,O=t(f.
|
|
1227
|
+
ka:H.ka,ra:H.ra,ta:H.ta,data:{fb:this.g,baseMediaDecodeTime:p,Ma:n},stream:b}}h&&(a.push(h),h=null)}if("audio"==e){switch(g.audio){case "aac":for(var I=[],L,M=null,O=t(f.Jb()),S=O.next();!S.done;S=O.next()){var ca=S.value,W=ca.data;if(W){var da=0;L=Gz(W,da);if(!L)throw new P(2,3,3018);b.audioSamplingRate=L.sampleRate;b.channelsCount=L.channelCount;null==M&&null!==ca.pts&&(M=ca.pts);for(;da<W.length;){var Ba=Fz(W,da);if(Ba){var Sa=Ba.Ed+Ba.S;da+Sa<=W.length&&I.push({data:W.subarray(da+Ba.Ed,da+Sa),
|
|
1229
1228
|
size:Ba.S,duration:1024,Ra:0,flags:{Sa:0,Ja:0,Ha:0,Fa:0,Ga:2,Ta:0}});da+=Sa}else da++}}}if(!L||null==M){if(!f.dc().length)throw new P(2,3,3018);M=9E4*c.startTime;var xb=Ac("audio",b.codecs.split(","));if(!xb||!b.channelsCount||!b.audioSamplingRate)throw new P(2,3,3018);L={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,ga:xb};var db=Iz(xb,b.channelsCount);if(!db)throw new P(2,3,3018);var Tb=M+9E4*(c.endTime-c.startTime);for(f=M;f<Tb;)I.push({data:db,size:db.byteLength,duration:1024,Ra:0,
|
|
1230
|
-
flags:{Sa:0,Ja:0,Ha:0,Fa:0,Ga:2,Ta:0}}),f+=1024/L.sampleRate*9E4}var ua=L.sampleRate;f=M/9E4*ua;h={id:b.id,type:"audio",codecs:L.ga,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ua,duration:d,Pa:[],ca:new Uint8Array([]),ka:new Uint8Array([]),ra:0,ta:0,data:{fb:this.g,baseMediaDecodeTime:f,Ma:I},stream:b};break;case "ac3":L=[];ua=0;I=new Uint8Array([]);M=null;da=t(f.
|
|
1229
|
+
flags:{Sa:0,Ja:0,Ha:0,Fa:0,Ga:2,Ta:0}}),f+=1024/L.sampleRate*9E4}var ua=L.sampleRate;f=M/9E4*ua;h={id:b.id,type:"audio",codecs:L.ga,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ua,duration:d,Pa:[],ca:new Uint8Array([]),ka:new Uint8Array([]),ra:0,ta:0,data:{fb:this.g,baseMediaDecodeTime:f,Ma:I},stream:b};break;case "ac3":L=[];ua=0;I=new Uint8Array([]);M=null;da=t(f.Jb());for(var eb=da.next();!eb.done;eb=da.next()){var $a=eb.value,yb=$a.data;null==M&&null!==$a.pts&&(M=$a.pts);for(f=0;f<yb.length;){var ab=
|
|
1231
1230
|
Kz(yb,f);ab?(b.audioSamplingRate=ab.sampleRate,b.channelsCount=ab.channelCount,ua=ab.sampleRate,I=ab.ca,L.push({data:yb.subarray(f,f+ab.S),size:ab.S,duration:1536,Ra:0,flags:{Sa:0,Ja:0,Ha:0,Fa:0,Ga:2,Ta:0}}),f+=ab.S):f++}}if(0==ua||0==I.byteLength||null==M)throw new P(2,3,3018);f=M/9E4*ua;h={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ua,duration:d,Pa:[],ca:I,ka:new Uint8Array([]),ra:0,ta:0,data:{fb:this.g,baseMediaDecodeTime:f,Ma:L},stream:b};break;case "ec3":L=
|
|
1232
|
-
[];ua=0;M=new Uint8Array([]);I=null;for(var
|
|
1233
|
-
encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ua,duration:d,Pa:[],ca:M,ka:new Uint8Array([]),ra:0,ta:0,data:{fb:this.g,baseMediaDecodeTime:f,Ma:L},stream:b};break;case "mp3":L=[];var
|
|
1234
|
-
f+=Ce.S):f++}}if(!
|
|
1231
|
+
[];ua=0;M=new Uint8Array([]);I=null;for(var nh=t(f.Jb()),xd=nh.next();!xd.done;xd=nh.next()){var te=xd.value,ue=te.data;null==I&&null!==te.pts&&(I=te.pts);for(f=0;f<ue.length;){var jb=Nz(ue,f);jb?(b.audioSamplingRate=jb.sampleRate,b.channelsCount=jb.channelCount,ua=jb.sampleRate,M=jb.ca,L.push({data:ue.subarray(f,f+jb.S),size:jb.S,duration:1536,Ra:0,flags:{Sa:0,Ja:0,Ha:0,Fa:0,Ga:2,Ta:0}}),f+=jb.S):f++}}if(0==ua||0==M.byteLength||null==I)throw new P(2,3,3018);f=I/9E4*ua;h={id:b.id,type:"audio",codecs:"ec-3",
|
|
1232
|
+
encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ua,duration:d,Pa:[],ca:M,ka:new Uint8Array([]),ra:0,ta:0,data:{fb:this.g,baseMediaDecodeTime:f,Ma:L},stream:b};break;case "mp3":L=[];var Xh;ua=null;for(var ms=t(f.Jb()),ll=ms.next();!ll.done;ll=ms.next()){var ml=ll.value,If=ml.data;if(If)for(null==ua&&null!==ml.pts&&(ua=ml.pts),f=0;f<If.length;){var Ce=Xz(If,f);Ce?(Xh||(Xh=Ce),f+Ce.S<=If.length&&L.push({data:If.subarray(f,f+Ce.S),size:Ce.S,duration:1152,Ra:0,flags:{Sa:0,Ja:0,Ha:0,Fa:0,Ga:2,Ta:0}}),
|
|
1233
|
+
f+=Ce.S):f++}}if(!Xh||null==ua)throw new P(2,3,3018);var ns=Xh.sampleRate;f=ua/9E4*ns;h={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ns,duration:d,Pa:[],ca:new Uint8Array([]),ka:new Uint8Array([]),ra:0,ta:0,data:{fb:this.g,baseMediaDecodeTime:f,Ma:L},stream:b}}h&&a.push(h)}}catch(nl){return nl&&3023==nl.code?Promise.resolve(new Uint8Array([])):Promise.reject(nl)}if(!a.length)return Promise.reject(new P(2,3,3018));a=new $t(a);this.h.has(b.id)?d=this.h.get(b.id):
|
|
1235
1234
|
(d=fu(a),this.h.set(b.id,d));b=wu(a);this.g++;b=cg(d,b);return Promise.resolve(b)};N("shaka.transmuxer.TsTransmuxer",iA);iA.prototype.transmux=iA.prototype.transmux;iA.prototype.getOriginalMimeType=iA.prototype.getOriginalMimeType;iA.prototype.convertCodecs=iA.prototype.convertCodecs;iA.prototype.isSupported=iA.prototype.isSupported;iA.prototype.destroy=iA.prototype.destroy;var jA=["aac","ac-3","ec-3","mp3"],kA=["avc","hevc"];Zb("video/mp2t",function(){return new iA("video/mp2t")},cc);/*
|
|
1236
1235
|
@license
|
|
1237
1236
|
EME Encryption Scheme Polyfill
|