@castlabs/prestoplay 6.31.1 → 6.32.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/README.md +2 -2
- package/cjs/cl.adobe.js +3 -3
- package/cjs/cl.airplay.js +3 -3
- package/cjs/cl.broadpeak.js +18 -18
- package/cjs/cl.cast.js +127 -125
- package/cjs/cl.cdn.js +13 -0
- package/cjs/cl.conviva.js +32 -32
- package/cjs/cl.core.js +615 -610
- package/cjs/cl.crypto.js +9 -9
- package/cjs/cl.dash.js +101 -95
- package/cjs/cl.externs.js +113 -44
- package/cjs/cl.freewheel.js +26 -26
- package/cjs/cl.hls.js +78 -78
- package/cjs/cl.hlssmpte.js +6 -6
- package/cjs/cl.htmlcue.js +30 -30
- package/cjs/cl.ima.js +26 -26
- package/cjs/cl.mediatailor.js +3 -3
- package/cjs/cl.mse.js +351 -350
- package/cjs/cl.muxdata.js +14 -14
- package/cjs/cl.onboard.js +4 -4
- package/cjs/cl.persistent.js +14 -14
- package/cjs/cl.playlist.js +6 -6
- package/cjs/cl.simid.js +16 -16
- package/cjs/cl.smooth.js +71 -71
- package/cjs/cl.thumbnails.js +26 -26
- package/cjs/cl.tizen.js +71 -71
- package/cjs/cl.ttml.js +29 -29
- package/cjs/cl.verimatrix.js +5 -5
- package/cjs/cl.vimond.js +11 -11
- package/cjs/cl.vr.js +19 -19
- package/cjs/cl.vtt.js +14 -14
- package/cjs/cl.yospace.js +4 -4
- package/cjs/cl.youbora.js +40 -40
- package/cl.adobe.js +3 -3
- package/cl.airplay.js +3 -3
- package/cl.broadpeak.js +14 -14
- package/cl.cast.js +102 -101
- package/cl.cdn.js +7 -0
- package/cl.conviva.js +27 -27
- package/cl.core.js +498 -495
- package/cl.crypto.js +9 -9
- package/cl.dash.js +91 -87
- package/cl.externs.js +109 -44
- package/cl.freewheel.js +20 -20
- package/cl.hls.js +82 -82
- package/cl.hlssmpte.js +5 -5
- package/cl.htmlcue.js +26 -26
- package/cl.ima.js +20 -20
- package/cl.mediatailor.js +2 -2
- package/cl.mse.js +301 -300
- package/cl.muxdata.js +13 -13
- package/cl.onboard.js +4 -4
- package/cl.persistent.js +10 -10
- package/cl.playlist.js +5 -5
- package/cl.simid.js +14 -14
- package/cl.smooth.js +61 -61
- package/cl.thumbnails.js +19 -19
- package/cl.tizen.js +56 -56
- package/cl.ttml.js +22 -22
- package/cl.verimatrix.js +4 -4
- package/cl.vimond.js +8 -8
- package/cl.vr.js +14 -14
- package/cl.vtt.js +12 -12
- package/cl.yospace.js +3 -3
- package/cl.youbora.js +31 -31
- package/package.json +7 -1
- package/typings.d.ts +328 -114
package/cjs/cl.freewheel.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
(function(){var g={}; var _ = _ || {}
|
|
2
|
-
var f=function(window){var
|
|
3
|
-
this.f=this.a=null;this.I=[];this.B=[];this.H=[];this.A=new _.
|
|
4
|
-
b=tv.freewheel.SDK.VIDEO_ASSET_AUTO_PLAY_TYPE_NONE,_.
|
|
5
|
-
b&&a.m.getSurface().hide(b);a.m.getSurface().showMediaElement()},
|
|
6
|
-
_.r.onPlayerCreated=function(a){if(window.tv&&tv.freewheel&&tv.freewheel.SDK)this.a=_.
|
|
7
|
-
_.K("clpp.freewheel.FreeWheelPlugin",
|
|
8
|
-
_.r.getTitle=function(){return""};_.r.getDuration=function(){return this.a?this.a.getActiveCreativeRendition().getDuration():0};_.r.getPosition=function(){return 0};_.r.getSkipTimeOffset=function(){return 0};_.r.
|
|
9
|
-
_.r.
|
|
10
|
-
_.r.getPodIndex=function(){switch(this.Ha()){case 0:return 0;case 2:return-1}return this.h.getSlotsByTimePositionClass(tv.freewheel.SDK.TIME_POSITION_CLASS_MIDROLL).indexOf(this.f)+1};_.r.
|
|
11
|
-
_.r.getWrapperAdSystems=function(){return[]};_.r.getWrapperCreativeIds=function(){return[]};_.r.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
_.r.load=function(){var a=this,b,c,d,e,f,g,k,l;return _.I(function(m){if(1==m.a){b=a.m.getConfiguration().freewheel||{};try{
|
|
17
|
-
_.v(b.pods),e=d.next();!e.done;e=d.next())f=e.value,a.a.addTemporalSlot(f.id,
|
|
18
|
-
g.next())l=k.value,a.a.setParameter(l.name,l.value,l.level);a.h.on(a.a,tv.freewheel.SDK.EVENT_REQUEST_COMPLETE,a.
|
|
19
|
-
_.r.
|
|
20
|
-
_.r.isMuted=function(){return this.l};_.r.
|
|
21
|
-
_.r.
|
|
22
|
-
void 0));this.A.resolve()};_.r.
|
|
23
|
-
_.r.
|
|
24
|
-
_.
|
|
25
|
-
fwInfo:a[tv.freewheel.SDK.INFO_KEY_ERROR_INFO],fwModule:a[tv.freewheel.SDK.INFO_KEY_ERROR_MODULE]}))}};_.r.
|
|
26
|
-
_.r.
|
|
27
|
-
|
|
2
|
+
var f=function(window){var JU="clpp-freewheel",KU="clpp.freewheel.AdsManagerFactory",LU="freewheel",MU=function(){this.f=this.a=null},NU=function(){},OU=function(a){switch(a){case 0:return tv.freewheel.SDK.ADUNIT_PREROLL;case 1:return tv.freewheel.SDK.ADUNIT_MIDROLL;case 2:return tv.freewheel.SDK.ADUNIT_POSTROLL;default:return""}},PU=function(a,b,c){this.h=a;this.f=b;this.a=c},QU=function(a){this.a=a},RU=function(a){this.g=new _.M("clpp.freewheel.AdsManager");this.m=a;this.h=new _.Bi;this.G=new tv.freewheel.SDK.AdManager;
|
|
3
|
+
this.f=this.a=null;this.I=[];this.B=[];this.H=[];this.A=new _.rm;this.j=null;this.l=!1;this.w=1;this.D=!1;this.o=!0},SU=function(a){var b=[];typeof a.networkId!==_.h&&b.push("networkId");typeof a.serverUrl!==_.ng&&b.push("serverUrl");typeof a.profileId!==_.ng&&b.push("profileId");typeof a.videoAssetId!==_.ng&&typeof a.videoAssetId!==_.h&&b.push("videoAssetId");if(b.length)throw new _.O(1,9,12001,{missingKeys:b.join(", ")});},TU=function(){var a,b,c,d;return _.I(function(e){if(1==e.a)return a=new _.zv,
|
|
4
|
+
b=tv.freewheel.SDK.VIDEO_ASSET_AUTO_PLAY_TYPE_NONE,_.y(e,a.canPlay(!1),2);if(3!=e.a)return c=e.f,_.y(e,a.canPlay(!0),3);d=e.f;c?b=tv.freewheel.SDK.VIDEO_ASSET_AUTO_PLAY_TYPE_ATTENDED:d&&(b=tv.freewheel.SDK.VIDEO_ASSET_AUTO_PLAY_TYPE_UNATTENDED);return e["return"](b)})},UU=function(a){var b=a.m.ze(LU).Gd();b&&(a.m.getSurface().show(b),a.m.getSurface().hideMediaElement(),a.a.registerVideoDisplayBase(JU),a.m.isMuted()?a.setVolume(0):a.setVolume(a.m.getVolume()||1))},VU=function(a){var b=a.m.ze(LU).Gd();
|
|
5
|
+
b&&a.m.getSurface().hide(b);a.m.getSurface().showMediaElement()},WU=function(a,b,c){var d=null;a.a&&c&&(c.adInstance||c.slot)&&(c=(d=c.adInstance||null)?d.getSlot():c.slot,d={ad:new PU(a.a,c,d)});a.m.trigger(new _.Q(b,d))},XU=function(){this.Fa=new _.M(KU)};_.w(MU,_.gw);_.r=MU.prototype;
|
|
6
|
+
_.r.onPlayerCreated=function(a){if(window.tv&&tv.freewheel&&tv.freewheel.SDK)this.a=_.cj(_.Xd,{id:JU}),this.f=_.cj(_.Tg,{"class":_.rd}),this.a.appendChild(this.f),a.getSurface().addElementToContainer(this.a,!0),a.getSurface().hide(this.a);else a.onError(new _.O(1,9,12E3))};_.r.onPlayerWillDestroy=function(a){this.a&&(a.getSurface().removeElementFromContainer(this.a),this.f=this.a=null)};_.r.id=function(){return LU};_.r.Gd=function(){return this.a};_.r.tm=function(){return this.f};
|
|
7
|
+
_.K("clpp.freewheel.FreeWheelPlugin",MU);MU.prototype.getAdVideo=MU.prototype.tm;MU.prototype.getAdContainer=MU.prototype.Gd;MU.Id=LU;MU.AD_CONTAINER_ID=JU;NU.prototype.create=function(){return new MU};_.r=PU.prototype;_.r.lb=function(){return"FreeWheel AdManager SDK"};_.r.nb=function(){return tv.freewheel.SDK.version};_.r.pb=function(){return 0};_.r.getId=function(){return this.a?this.a.getAdId():""};_.r.getCreativeId=function(){var a=(this.a||{})._creativeId;return typeof a===_.ng?a:""};_.r.Jb=function(){return""};_.r.getApiFramework=function(){return this.a?this.a.getActiveCreativeRendition().getCreativeApi():""};_.r.getAdSystem=function(){return""};_.r.getAdvertiserName=function(){return""};
|
|
8
|
+
_.r.getTitle=function(){return""};_.r.getDuration=function(){return this.a?this.a.getActiveCreativeRendition().getDuration():0};_.r.getPosition=function(){return 0};_.r.getSkipTimeOffset=function(){return 0};_.r.Lb=function(){return!1};_.r.$a=function(){return this.a&&this.a.getEventCallbackUrls(tv.freewheel.SDK.EVENT_AD_CLICK,tv.freewheel.SDK.EVENT_TYPE_CLICK)[0]||""};_.r.getMediaUrl=function(){return this.a?this.a.getActiveCreativeRendition().getPrimaryCreativeRenditionAsset().getUrl():""};
|
|
9
|
+
_.r.fb=function(){return this.a?this.a.getActiveCreativeRendition().getWidth():0};_.r.eb=function(){return this.a?this.a.getActiveCreativeRendition().getHeight():0};_.r.Ga=function(){return 0};_.r.Ha=function(){switch(this.f.getTimePositionClass()){case tv.freewheel.SDK.TIME_POSITION_CLASS_PREROLL:return 0;case tv.freewheel.SDK.TIME_POSITION_CLASS_POSTROLL:return 2;default:return 1}};
|
|
10
|
+
_.r.getPodIndex=function(){switch(this.Ha()){case 0:return 0;case 2:return-1}return this.h.getSlotsByTimePositionClass(tv.freewheel.SDK.TIME_POSITION_CLASS_MIDROLL).indexOf(this.f)+1};_.r.zb=function(){switch(this.Ha()){case 0:return 0;case 2:return-1;default:return this.f.getTimePosition()}};_.r.ob=function(){return this.a?this.f.getAdInstances().indexOf(this.a)+1:1};_.r.gb=function(){return this.f.getAdCount()};_.r.getWrapperAdIds=function(){return[]};_.r.canSeek=function(){return!1};
|
|
11
|
+
_.r.getWrapperAdSystems=function(){return[]};_.r.getWrapperCreativeIds=function(){return[]};_.r.Kb=function(){return null};PU.prototype.getVideoElement=PU.prototype.Kb;PU.prototype.getWrapperCreativeIds=PU.prototype.getWrapperCreativeIds;PU.prototype.getWrapperAdSystems=PU.prototype.getWrapperAdSystems;PU.prototype.canSeek=PU.prototype.canSeek;PU.prototype.getWrapperAdIds=PU.prototype.getWrapperAdIds;PU.prototype.getSequenceLength=PU.prototype.gb;PU.prototype.getPositionInSequence=PU.prototype.ob;
|
|
12
|
+
PU.prototype.getPodTimeOffset=PU.prototype.zb;PU.prototype.getPodIndex=PU.prototype.getPodIndex;PU.prototype.getPodType=PU.prototype.Ha;PU.prototype.getMediaBitrate=PU.prototype.Ga;PU.prototype.getMediaHeight=PU.prototype.eb;PU.prototype.getMediaWidth=PU.prototype.fb;PU.prototype.getMediaUrl=PU.prototype.getMediaUrl;PU.prototype.getClickThroughUrl=PU.prototype.$a;PU.prototype.isBumper=PU.prototype.Lb;PU.prototype.getSkipTimeOffset=PU.prototype.getSkipTimeOffset;PU.prototype.getPosition=PU.prototype.getPosition;
|
|
13
|
+
PU.prototype.getDuration=PU.prototype.getDuration;PU.prototype.getTitle=PU.prototype.getTitle;PU.prototype.getAdvertiserName=PU.prototype.getAdvertiserName;PU.prototype.getAdSystem=PU.prototype.getAdSystem;PU.prototype.getApiFramework=PU.prototype.getApiFramework;PU.prototype.getSourceId=PU.prototype.Jb;PU.prototype.getCreativeId=PU.prototype.getCreativeId;PU.prototype.getId=PU.prototype.getId;PU.prototype.getTechnology=PU.prototype.pb;PU.prototype.getAdManagerVersion=PU.prototype.nb;
|
|
14
|
+
PU.prototype.getAdManagerName=PU.prototype.lb;QU.prototype.getCuePoints=function(){return this.a.getTemporalSlots().map(function(a){switch(a.getTimePositionClass()){case tv.freewheel.SDK.TIME_POSITION_CLASS_PREROLL:return 0;case tv.freewheel.SDK.TIME_POSITION_CLASS_POSTROLL:return-1;default:return a.getTimePosition()}})};QU.prototype.ac=function(){return 0<this.a.getSlotsByTimePositionClass(tv.freewheel.SDK.TIME_POSITION_CLASS_PREROLL).length};QU.prototype.$b=function(){return 0<this.a.getSlotsByTimePositionClass(tv.freewheel.SDK.TIME_POSITION_CLASS_POSTROLL).length};
|
|
15
|
+
QU.prototype.hasPostroll=QU.prototype.$b;QU.prototype.hasPreroll=QU.prototype.ac;QU.prototype.getCuePoints=QU.prototype.getCuePoints;_.r=RU.prototype;
|
|
16
|
+
_.r.load=function(){var a=this,b,c,d,e,f,g,k,l;return _.I(function(m){if(1==m.a){b=a.m.getConfiguration().freewheel||{};try{SU(b)}catch(n){return a.m.onError(n),a.A.resolve(),m["return"](a.A)}a.G.setNetwork(b.networkId);a.G.setServer(b.serverUrl);a.a=a.G.newContext();a.a.setProfile(b.profileId);typeof b.siteSectionId!==_.ng&&typeof b.siteSectionId!==_.h||a.a.setSiteSection(b.siteSectionId);return _.y(m,TU(),2)}c=m.f;a.a.setVideoAsset(b.videoAssetId,a.m.getDuration(),void 0,void 0,c);if(Array.isArray(b.pods))for(d=
|
|
17
|
+
_.v(b.pods),e=d.next();!e.done;e=d.next())f=e.value,a.a.addTemporalSlot(f.id,OU(f.type),f.position,f.slotProfile,f.cuepointSequence,f.maxDuration,f.minDuration,f.acceptContentType);b.keyValues&&typeof b.keyValues===_.$e&&Object.keys(b.keyValues).forEach(function(n){return a.a.addKeyValue(n,b.keyValues[n])});a.a.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_CONTENT_VIDEO_ENABLED,!1,tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);if(Array.isArray(b.parameters))for(g=_.v(b.parameters),k=g.next();!k.done;k=
|
|
18
|
+
g.next())l=k.value,a.a.setParameter(l.name,l.value,l.level);a.h.on(a.a,tv.freewheel.SDK.EVENT_REQUEST_COMPLETE,a.fo.bind(a));a.h.on(a.a,tv.freewheel.SDK.EVENT_SLOT_STARTED,a.lo.bind(a));a.h.on(a.a,tv.freewheel.SDK.EVENT_SLOT_ENDED,a.ko.bind(a));a.h.on(a.a,tv.freewheel.SDK.EVENT_AD,a.xn.bind(a));a.h.on(a.m,_.Bg,a.ol.bind(a));a.h.on(a.m,_.kg,a.nl.bind(a));a.a.submitRequest();return m["return"](a.A)})};
|
|
19
|
+
_.r.Cb=function(){if(this.I.length){UU(this);this.f=this.I.shift();this.f.play();var a=!1}else this.f?(this.f.resume(),a=!1):(VU(this),a=!0);return a};_.r.Uc=function(){};_.r.rb=function(){this.f&&this.f.pause()};_.r.skip=function(){this.f&&this.f.skipCurrentAd()};_.r.getAdVolume=function(){return!this.a||this.l?this.w:this.a.getAdVolume()};_.r.Pa=function(a){this.w=a;this.l||this.a&&this.a.setAdVolume(a)};_.r.setMuted=function(a){this.l=a;this.a&&(a?this.a.setAdVolume(0):this.a.setAdVolume(this.w))};
|
|
20
|
+
_.r.isMuted=function(){return this.l};_.r.Ab=function(){return this.D};_.r.isPaused=function(){return this.o};_.r.getPosition=function(){return this.f?this.f.getPlayheadTime():-1};_.r.setVolume=function(a){this.Pa(a)};_.r.getVolume=function(){return this.getAdVolume()};_.r.pause=function(){this.rb()};_.r.resume=function(){this.Cb()};_.r.Rc=function(){return!0};_.r.Cc=function(){var a=this;return _.I(function(b){a.h.release();a.j&&(a.j.stop(),a.j=null);VU(a);a.a&&(a.a.dispose(),a.a=null);_.A(b)})};
|
|
21
|
+
_.r.fo=function(a){var b=this;if(a.success)this.I=this.a.getSlotsByTimePositionClass(tv.freewheel.SDK.TIME_POSITION_CLASS_PREROLL),this.B=this.a.getSlotsByTimePositionClass(tv.freewheel.SDK.TIME_POSITION_CLASS_MIDROLL),this.H=this.a.getSlotsByTimePositionClass(tv.freewheel.SDK.TIME_POSITION_CLASS_POSTROLL),this.m.trigger(new _.Q(_.Fc,{adsTimeline:new QU(this.a)})),this.j=new _.xv(this.m.getSurface(),function(c,d){return b.a.resize(c,d)},this.m.ze(LU).f);else this.m.onError(new _.O(1,9,10003,{errorType:0},
|
|
22
|
+
void 0));this.A.resolve()};_.r.lo=function(a){WU(this,_.ic,a);this.j.start()};_.r.ko=function(a){this.f=null;a=a.slot;WU(this,_.jc);this.j.stop();VU(this);a&&a.getTimePositionClass()===tv.freewheel.SDK.TIME_POSITION_CLASS_POSTROLL||this.m.play()};
|
|
23
|
+
_.r.xn=function(a){var b=a.subType;this.g.debug("ad event",b);switch(b){case tv.freewheel.SDK.EVENT_AD_IMPRESSION:this.setMuted(this.l);this.Pa(this.w);this.D=!0;this.o=!1;WU(this,_.Bc,a);WU(this,_.rc,a);break;case tv.freewheel.SDK.EVENT_AD_IMPRESSION_END:WU(this,_.Cc,a);this.o=this.D=!1;break;case tv.freewheel.SDK.EVENT_AD_FIRST_QUARTILE:WU(this,_.nc,a);break;case tv.freewheel.SDK.EVENT_AD_MIDPOINT:WU(this,_.vc,a);break;case tv.freewheel.SDK.EVENT_AD_THIRD_QUARTILE:WU(this,_.Dc,a);break;case tv.freewheel.SDK.EVENT_AD_COMPLETE:WU(this,
|
|
24
|
+
_.mc,a);break;case tv.freewheel.SDK.EVENT_AD_CLICK:WU(this,_.lc,a);break;case tv.freewheel.SDK.EVENT_AD_PAUSE:this.o=!0;WU(this,_.xc,a);break;case tv.freewheel.SDK.EVENT_AD_RESUME:this.o=!1;WU(this,_.zc,a);break;case tv.freewheel.SDK.EVENT_AD_SKIPPED:WU(this,_.Ac,a);break;case tv.freewheel.SDK.EVENT_AD_BUFFERING_START:WU(this,_.kc,a);break;case tv.freewheel.SDK.EVENT_AD_BUFFERING_END:WU(this,_.yc,a);break;case tv.freewheel.SDK.EVENT_ERROR:this.m.onError(new _.O(1,9,10003,{errorType:1},{fwCode:a[tv.freewheel.SDK.INFO_KEY_ERROR_CODE],
|
|
25
|
+
fwInfo:a[tv.freewheel.SDK.INFO_KEY_ERROR_INFO],fwModule:a[tv.freewheel.SDK.INFO_KEY_ERROR_MODULE]}))}};_.r.ol=function(){var a=this;if(!this.f){var b=this.m.getPosition();if(this.f=this.B.find(function(d){return.5>Math.abs(b-d.getTimePosition())})||null){var c=this.B.findIndex(function(d){return d===a.f});this.B.splice(c,1);this.m.pause();UU(this);this.f.play()}}};
|
|
26
|
+
_.r.nl=function(a){if((a=a.detail)&&this.a)switch(a.currentState){case 3:this.a.setVideoState(tv.freewheel.SDK.VIDEO_STATE_PLAYING);break;case 4:this.a.setVideoState(tv.freewheel.SDK.VIDEO_STATE_PAUSED);break;case 5:this.a.setVideoState(tv.freewheel.SDK.VIDEO_STATE_COMPLETED);this.H.length?(UU(this),this.f=this.H.shift(),this.f.play()):VU(this);break;case _.mu:case _.Fo:this.a.setVideoState(tv.freewheel.SDK.VIDEO_STATE_STOPPED)}};RU.prototype.resume=RU.prototype.resume;RU.prototype.pause=RU.prototype.pause;
|
|
27
|
+
RU.prototype.getVolume=RU.prototype.getVolume;RU.prototype.setVolume=RU.prototype.setVolume;RU.prototype.getPosition=RU.prototype.getPosition;RU.prototype.skip=RU.prototype.skip;XU.prototype.name=function(){return KU};XU.prototype.a=function(a,b){return a.namespace()!==_.xd&&b&&b.freewheel?window.tv&&tv.freewheel&&tv.freewheel.SDK?!0:(this.Fa.warn("FreeWheel SDK is not loaded."),!1):!1};XU.prototype.create=function(a){return new RU(a)};_.ki(new XU);_.fp(new NU);};
|
|
28
28
|
if(typeof(module)!="undefined"&&module.exports){var x=require("./cl.core.js");_ = x._;(f.call(g,this));module.exports=g;}
|
|
29
29
|
else if (typeof(define)!="undefined"&&define.amd) {define(["./cl.core"], function(c){_=c._;(f.call(g,this));return g;});}
|
|
30
30
|
else{_=this.clpp._;(f.call(g,this));}
|
package/cjs/cl.hls.js
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
(function(){var g={}; var _ = _ || {}
|
|
2
|
-
var f=function(window){var
|
|
3
|
-
|
|
4
|
-
"";this.type=b;this.$=c;this.S=1===b?d:null},
|
|
5
|
-
new Map,d=new URL(b);a.forEach(function(e){var f=_.T(e,_.gb),g=_.T(e,"QUERYPARAM");if(f)g=_.
|
|
6
|
-
!_.Y.
|
|
7
|
-
d.push(f);if(f.name===_.La){var g=b[e+1];if(!g)throw new _.O(_.P,4,4044,"EXT-X-STREAM-INF is not followed by a URI.");f.attributes.push(new _.
|
|
8
|
-
"EXT-X-PART"===k.name||"EXT-X-PRELOAD-HINT"===k.name&&"PART"===_.T(k,_.Kb)?g.push(k):f.push(k)):(_.Y.
|
|
9
|
-
e+"' as it is not defined in the master playlist");d.set(e,f)});return d},
|
|
10
|
-
e+f+10);for(var k=0;k<g.byteLength;k++)if(0===g[k]){if("com.apple.streaming.transportStreamTimestamp"===unescape(b(g,0,k)))return a=g.subarray(k+1),f=(a[3]&1)<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2,f*=4,f+=a[7]&3,Math.round(f/9E4);break}}
|
|
11
|
-
204),f=_.
|
|
12
|
-
1)+((g&65534)<<14|(k&65534)>>1))/9E4}else b()},
|
|
13
|
-
if(!(2097151>=l||k>=Math.pow(2,12)))throw Error("Cannot accurately parse MP4 timestamp, base time is too high and timescale is \x3c\x3d 2^12");k=l/k*Math.pow(2,32)+m/k}e=k;f=!0;g.parser.stop()}).parse(a,!0)}catch(g){c=g}if(c||!f)throw new _.O(_.P,4,4030,
|
|
14
|
-
[{initDataType:_.
|
|
15
|
-
case 2:if(d!==_.
|
|
16
|
-
b.la,b.la+2048-1,a.a.attemptParameters),e.type=2,f=_.
|
|
17
|
-
a.g.error("Failed to fetch media segment to parse its start timestamp.",f.uris[0],m),new _.O(_.P,4,4030,"Failed to fetch the media segment.");}})},
|
|
18
|
-
a.streams.find(function(d){d=d.S;return d[0].position<=b&&b<=d[d.length-1].position});return null==c?null:c.S.find(function(d){return d.position===b})||null},
|
|
19
|
-
|
|
20
|
-
textStreams:l,thumbStreams:g,startTime:0,id:"P"+m,endTime:n,duration:n,ka:m}});f[0].startTime+=e;f[0].endTime+=e;
|
|
21
|
-
|
|
22
|
-
b);c.duration=b;c.
|
|
23
|
-
g+=1E3*e)}});a=a.map(function(e){return e.playlist});if(a.some(function(e){return 0===e.S.length}))throw new _.O(_.P,4,4048,"Media playlists are completely out of sync.");var d=Math.min.apply(Math,_.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
f&&!_.N.
|
|
27
|
-
case 5:m=
|
|
28
|
-
|
|
29
|
-
c.
|
|
30
|
-
g=function(
|
|
31
|
-
m=l.next();
|
|
32
|
-
_.Y,d=c.
|
|
33
|
-
|
|
34
|
-
_.Y.
|
|
35
|
-
return isNaN(d)?(a.g.warn("Failed to parse EXT-X-PROGRAM-DATE-TIME tag value (value: "+(c.value+").")),null):d/1E3},
|
|
36
|
-
e=_.v(b),f=e.next();!f.done;f=e.next()){var g=f.value,k=_.T(g,_.ja);f=_.T(g,_.
|
|
37
|
-
d=[
|
|
38
|
-
3);t=
|
|
39
|
-
|
|
40
|
-
c=_.
|
|
41
|
-
|
|
42
|
-
(b.push(m),d.add(l)))}}return b},
|
|
43
|
-
g,function(){var l,m,n,p,q,t,u,
|
|
44
|
-
|
|
45
|
-
"avc1.42E01E,mp4a.40.2").split(/\s*,\s*/);c=_.Y.
|
|
46
|
-
u=
|
|
47
|
-
return _.I(function(
|
|
48
|
-
|
|
49
|
-
primary:t,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:E?E.frameRate:void 0,width:E?E.width:void 0,height:E?E.height:void 0,bandwidth:void 0,roles:[],channelsCount:
|
|
50
|
-
|
|
51
|
-
return _.I(function(n){if(1==n.a){var p=new URL(b.streams[0].
|
|
52
|
-
k));m=
|
|
53
|
-
d);return a},
|
|
54
|
-
p.la,p.
|
|
55
|
-
|
|
56
|
-
E["return"](m)}})},
|
|
57
|
-
}return _.
|
|
58
|
-
|
|
59
|
-
b){b.forEach(function(c){var d=a.j.get(c.verbatimUri);
|
|
60
|
-
u);return
|
|
61
|
-
c)return c;throw new _.O(_.P,4,4025,{codecList:b});},
|
|
62
|
-
return n["return"](m.toLowerCase().split(";")[0])})},
|
|
63
|
-
d=b.next();!d.done;d=b.next())d=d.value.streams[0],95443.7176888889>d.
|
|
64
|
-
function(c,d){_.
|
|
65
|
-
_.r.has=function(a){return this.a.has(a)};_.r.get=function(a){return this.a.get(a)||null};_.r.values=function(){return Array.from(this.a.values())};_.r.clear=function(){this.f.clear();this.a.clear()};
|
|
66
|
-
var
|
|
67
|
-
"EXT-X-DISCONTINUITY-SEQUENCE tag is required for discontinuous HLS live streams.");}return 0},
|
|
68
|
-
Error(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
d.join(", ")+" are incompatible."),new _.O(_.P,4,4044,"Multiple EXT-X-KEY tags with incompatible METHOD values.");c=c.map(function(e){var f=_.T(e,"KEYFORMAT","identity"),g=
|
|
72
|
-
|
|
2
|
+
var f=function(window){var hK="Could not parse MP4 segment start time.",iK="EXT-X-DATERANGE",jK="EXT-X-DISCONTINUITY",kK="EXT-X-KEY",lK="EXT-X-MAP",mK="EXT-X-MEDIA-SEQUENCE",nK="EXT-X-PROGRAM-DATE-TIME",oK="Failed to infer discontinuity number",pK="Guessing audio-only",qK="METHOD",rK="SAMPLE-AES-CTR",sK="_HLS_part",tK="application/vnd.apple.mpegurl",uK="manifestloaded",vK="sample",wK=function(a){if(1>a.a)throw _.lq();--a.a},xK=function(a){var b=void 0===b?0:b;return 0>a?[]:Array.from({length:a},function(c,d){return d+b})},
|
|
3
|
+
yK=function(a,b){b=void 0===b?0:b;return b+10<=a.length&&73===a[b]&&68===a[b+1]&&51===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1},zK=function(a){a=_.En(a)||"";return null!=_.Rp.video[a]?_.Tg:null!=_.Rp.audio[a]?_.Sc:null},AK=function(a,b,c,d){if(1===b){if(!d||0===d.length)throw new _.O(_.P,4,4043,"Media playlist must have at least one segment!");if(null==d[0].a)throw new _.O(_.P,4,4043,"Media playlist must have at least one full segment!");}this.a=a;this.verbatimUri=
|
|
4
|
+
"";this.type=b;this.$=c;this.S=1===b?d:null},BK=function(a,b,c){c=void 0===c?[]:c;this.$=b;this.a=a;this.f=c;this.ka=-1},CK=function(a){return a.some(function(b){return b.startsWith("#EXT-X-TARGETDURATION")})?1:0},DK=function(a,b){return a.replace(/\{\$([a-zA-Z0-9_-]+)\}/g,function(c,d){var e=b.get(d);if(null==e)throw new _.O(_.P,4,4044,"Undefined variable '"+d+"'");return e})},EK=function(a,b){a.forEach(function(c){c.attributes.forEach(function(d){d.value=DK(d.value,b)})})},FK=function(a,b){var c=
|
|
5
|
+
new Map,d=new URL(b);a.forEach(function(e){var f=_.T(e,_.gb),g=_.T(e,"QUERYPARAM");if(f)g=_.Up(e,"VALUE"),c.set(f,g);else if(g){f=d.searchParams.get(g);if(null==f)throw new _.O(_.P,4,4044,"Query param '"+g+"' missing in playlist URI.");if(!f)throw new _.O(_.P,4,4044,"Query param '"+g+"' has no associated value in playlist URI.");c.set(g,decodeURIComponent(f))}});return c},GK=function(){this.h=0;this.a=new Map},JK=function(a,b,c){b=b.trim().split(/\n+/m).map(function(d){return d.trim()}).filter(function(d){return d.length&&
|
|
6
|
+
!_.Y.Vm(d)});if(!/^#EXTM3U($|[ \t\n])/m.test(b[0]))throw new _.O(_.P,4,4015);b=b.slice(1);return 0===CK(b)?HK(a,b,c):IK(a,b,c)},IK=function(a,b,c){var d=KK(b);b=d.To;var e=d.Om,f=LK(a,d.yp,c);d=e.map(function(g){return MK(a,g,f)});b=NK(a,c,b,f);return new AK(c,1,d,b)},KK=function(a){var b=[],c=[],d=[];a=_.v(a);for(var e=a.next();!e.done;e=a.next())e=e.value,OK.test(e)?d.push(e):PK.test(e)?c.push(e):b.push(e);return{To:b,Om:c,yp:d}},HK=function(a,b,c){for(var d=[],e=0;e<b.length;e++){var f=MK(a,b[e]);
|
|
7
|
+
d.push(f);if(f.name===_.La){var g=b[e+1];if(!g)throw new _.O(_.P,4,4044,"EXT-X-STREAM-INF is not followed by a URI.");f.attributes.push(new _.Vp(_.Mb,g));e++}}b=_.Y.Dc(d,"EXT-X-DEFINE");_.Y.$j(b);b=FK(b,c);a.a=b;EK(d,a.a);return new AK(c,0,d)},QK=function(a,b,c){var d=[],e=[];e.push(new _.Vp(_.oa,"0"));e.push(new _.Vp(_.Mb,b));c.length&&e.push(new _.Vp(_.ua,c));d.push(new _.Tp(a.h++,_.La,e));return new AK(b,0,d)},NK=function(a,b,c,d){var e=[],f=[],g=[];c.forEach(function(k){_.Y.an(k)?(k=MK(a,k,d),
|
|
8
|
+
"EXT-X-PART"===k.name||"EXT-X-PRELOAD-HINT"===k.name&&"PART"===_.T(k,_.Kb)?g.push(k):f.push(k)):(_.Y.cd(f,"EXT-X-GAP")||(k=DK(k,d),k=_.Dn(k,b),e.push(new BK(k,f,g))),f=[],g=[])});0<g.length&&e.push(new BK(null,f,g));return e},MK=function(a,b,c){a=_.gt(a.h++,b);c&&EK([a],c);return a},LK=function(a,b,c){b=b.map(function(e){return MK(a,e)});_.Y.$j(b);var d=FK(b,c);b.map(function(e){return _.T(e,"IMPORT")}).filter(Boolean).forEach(function(e){var f=a.a.get(e);if(null==f)throw new _.O(_.P,4,4044,"Cannot import variable '"+
|
|
9
|
+
e+"' as it is not defined in the master playlist");d.set(e,f)});return d},RK=function(){this.a=new Map;this.f=new Map},SK=function(a){function b(l,m,n){for(var p="";m<n;m++)p+="%"+("00"+l[m].toString(16)).slice(-2);return p}function c(l){return l[0]<<21|l[1]<<14|l[2]<<7|l[3]}function d(){throw new _.O(_.P,4,4030);}yK(a)||d();var e=10;a[5]&64&&(e=e+4+c(a.subarray(10,14)));do{var f=c(a.subarray(e+4,e+8));1>f&&d();var g=String.fromCharCode(a[e],a[e+1],a[e+2],a[e+3]);if("PRIV"===g){g=a.subarray(e+10,
|
|
10
|
+
e+f+10);for(var k=0;k<g.byteLength;k++)if(0===g[k]){if("com.apple.streaming.transportStreamTimestamp"===unescape(b(g,0,k)))return a=g.subarray(k+1),f=(a[3]&1)<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2,f*=4,f+=a[7]&3,Math.round(f/9E4);break}}yK(a,e)||d();e+=10;e+=f}while(e<a.byteLength);return d()},TK=function(a){for(;a.getPosition()<a.cb()-1;){var b=a.getPosition();if(71===_.mq(a))return wK(a),b}return-1},UK=function(a){function b(){d.seek(e+188);f=_.mq(d);71!==f&&(d.seek(e+192),f=_.mq(d));71!==f&&(d.seek(e+
|
|
11
|
+
204),f=_.mq(d));71!==f&&c();wK(d)}function c(){throw new _.O(_.P,4,4030);}var d=new _.jq(new DataView(a),!1),e=0,f=0;e=TK(d);0>e&&(_.Ow.error("Unable to find sync byte in TS after scanning."),c());for(;;)if(e=d.getPosition(),f=_.mq(d),71!==f&&c(),a=_.nq(d),8191===(a&8191))b();else if(a&16384)if(a=(_.mq(d)&48)>>4,0!==a&&2!==a||c(),3===a&&(a=_.mq(d),d.skip(a)),1!==_.oq(d)>>8)b();else{d.skip(3);a=_.mq(d)>>6;0!==a&&1!==a||c();0===_.mq(d)&&c();a=_.mq(d);var g=_.nq(d),k=_.nq(d);return(1073741824*((a&14)>>
|
|
12
|
+
1)+((g&65534)<<14|(k&65534)>>1))/9E4}else b()},VK=function(a,b){var c=null,d=0;try{(new _.tq).N(_.We,_.uq).N(_.Dg,_.uq).N(_.Qe,_.uq).da("mdhd",function(g){g.reader.skip(0===g.version?8:16);d=_.oq(g.reader);g.parser.stop()}).parse(b,!0)}catch(g){c=g}if(c||!d)throw _.Ow.error("Unable to find timescale in init segment!"),new _.O(_.P,4,4030,hK,c);var e=0,f=!1;try{(new _.tq).N("moof",_.uq).N("traf",_.uq).da("tfdt",function(g){var k=d;if(0===g.version)k=_.oq(g.reader)/k;else{var l=_.oq(g.reader),m=_.oq(g.reader);
|
|
13
|
+
if(!(2097151>=l||k>=Math.pow(2,12)))throw Error("Cannot accurately parse MP4 timestamp, base time is too high and timescale is \x3c\x3d 2^12");k=l/k*Math.pow(2,32)+m/k}e=k;f=!0;g.parser.stop()}).parse(a,!0)}catch(g){c=g}if(c||!f)throw new _.O(_.P,4,4030,hK,c);return e},YK=function(a){var b=_.Up(a,qK);if(!WK.includes(b))return XK.error("PlayReady in HLS is only supported with [",WK.join(", "),"], not",b),null;a=_.Up(a,_.Mb);b=_.Um(a);a=null;b=_.Vi(b.data);try{a=_.rC(_.Zr(b))}catch(c){a=b}return _.EC(_.Kd,
|
|
14
|
+
[{initDataType:_.md,initData:a}],"")},ZK=function(a){this.g=new _.M("clpp.hls.MediaReader");this.f=a;this.a={attemptParameters:_.Zk()}},aL=function(a,b,c,d,e,f){var g,k,l,m,n,p,q,t;return _.I(function(u){switch(u.a){case 1:a.g.debug("Fetching segment to find start time");if("audio/mpeg"===d||d===_.Wc||d===_.Vc)return u["return"](0);g=f;if(d!==_.Tc){u.C(2);break}return _.y(u,$K(a,c,g),3);case 3:k=u.f;l=_.Vi(k.data);if(!yK(l))throw new _.O(_.P,4,4030,"AAC segment does not contain an ID3 tag.");return u["return"](SK(l));
|
|
15
|
+
case 2:if(d!==_.Vg&&d!==_.Xc){u.C(4);break}m=[$K(a,c,g)];b&&m.push($K(a,b,!0));return _.y(u,Promise.all(m),5);case 5:return n=u.f,p=n[0],q=n[1]||n[0],u["return"](VK(p.data,q.data));case 4:if(d!==_.Ug){u.C(6);break}return _.y(u,$K(a,c,g),7);case 7:return t=u.f,u["return"](UK(t.data));case 6:if(!_.fv((d.split("/")[0]||"")+'/mp4;codecs\x3d"'+e+'"'))return u["return"](0);throw new _.O(_.P,4,4030);}})},$K=function(a,b,c){var d,e,f,g,k,l,m;return _.I(function(n){switch(n.a){case 1:return d=b.f(),e=_.mD(b.Ia(),
|
|
16
|
+
b.la,b.la+2048-1,a.a.attemptParameters),e.type=2,f=_.mD(b.Ia(),b.la,b.ga,a.a.attemptParameters),f.type=2,d&&(f.keyInfo=d),_.F(n,2),g=c?f:e,_.y(n,a.f(g),4);case 4:return k=n.f,n["return"](k);case 2:l=_.H(n);if(7001===l.code||c)throw l;a.g.warn("Unable to fetch a partial HLS segment! Falling back to a full segment request, which is expensive! Your server should support Range requests and CORS pre-flights.",e.uris[0]);_.F(n,5);return _.y(n,a.f(f),7);case 7:return n["return"](n.f);case 5:throw m=_.H(n),
|
|
17
|
+
a.g.error("Failed to fetch media segment to parse its start timestamp.",f.uris[0],m),new _.O(_.P,4,4030,"Failed to fetch the media segment.");}})},bL=function(a){this.streams=a},cL=function(a,b){a.streams.forEach(function(c){c.tg=b})},dL=function(a,b){a.streams.forEach(function(c){c.width=b})},eL=function(a,b){a.streams.forEach(function(c){c.height=b})},fL=function(a,b){a.streams.forEach(function(c){c.frameRate=b})},gL=function(a,b){a.streams.forEach(function(c){c.bandwidth=b})},hL=function(a,b){var c=
|
|
18
|
+
a.streams.find(function(d){d=d.S;return d[0].position<=b&&b<=d[d.length-1].position});return null==c?null:c.S.find(function(d){return d.position===b})||null},iL=function(a,b){var c=a.map(function(d){return d.streams[b]});return c.some(function(d){return null==d})?null:c},jL=function(a){this.a=a},kL=function(a,b){var c=a.map(function(d){return d.a[b]});return c.some(function(d){return null==d})?null:c},lL=function(a,b){var c=new Set(a.map(function(d){return d.ka}));return b.filter(function(d){return!c.has(d.ka)})},
|
|
19
|
+
nL=function(a,b){for(;a[0].ka<b[0].ka;)a.splice(0,1);var c=a[0],d=b[0];c.startTime===d.startTime&&c.endTime===d.endTime||mL(c,d);var e=a.length-1;c=a[e];d=b[e];0<e&&(c.startTime!==d.startTime||c.endTime!==d.endTime)&&mL(c,d);for(c=e+1;c<b.length;)a.push(b[c]),c++},rL=function(a,b,c,d,e){var f=b[0].length();f=xK(f).map(function(g){var k=kL(b,g)||[],l=iL(c,g)||[];g=iL(d,g)||[];var m=_.uh(oL(k)).concat(_.uh(l),_.uh(g)).filter(Boolean);pL(m);var n=m[0];m=n.ka;n=n.duration;return{configurationId:a,variants:k,
|
|
20
|
+
textStreams:l,thumbStreams:g,startTime:0,id:"P"+m,endTime:n,duration:n,ka:m}});f[0].startTime+=e;f[0].endTime+=e;qL(f);return f},oL=function(a){a=new Set(a.flatMap(function(b){return[b.video,b.audio]}).filter(Boolean));return Array.from(a)},qL=function(a){for(var b=0;b<a.length;b++){var c=a[b],d=a[b-1];c.startTime=d?d.endTime:c.startTime;c.endTime=c.startTime+c.duration}},mL=function(a,b){a.startTime=b.startTime;a.endTime=b.endTime;a.duration=b.duration;sL(a.variants,b.variants);tL(_.Y.ig(a),_.Y.ig(b))},
|
|
21
|
+
sL=function(a,b){var c=new Map(a.map(function(d){return[_.Y.oi(d),d]}));b.forEach(function(d){c.get(_.Y.oi(d)).drmInfos=d.drmInfos})},tL=function(a,b){var c=new Map(a.map(function(d){return[d.ld,d]}));b.forEach(function(d){var e=c.get(d.ld);e.S=d.S;d.S.forEach(function(f){f.initSegment=e.initSegmentReference});e.segmentIndex.replace(d.S);e.Ic=d.Ic;e.Of=d.Of;e.duration=d.duration;e.xi=d.xi;e.encrypted=d.encrypted;e.drmInfos=d.drmInfos;e.keyId=d.keyId})},pL=function(a){var b=uL(a);a.forEach(function(c){_.hD(c.segmentIndex,
|
|
22
|
+
b);c.duration=b;c.Of=c.Ic+b})},uL=function(a){var b=Infinity;_.Y.im(a).forEach(function(c){b=Math.min(b,c.duration)});return b},yL=function(a){if(!(2>a.length)&&vL(a)){a=a.map(function(e){return{playlist:e,ri:wL(e.S[0])}});var b=a.map(function(e){return e.ri}),c=Math.max.apply(Math,_.uh(b));b=Math.min.apply(Math,_.uh(b));if(!(1E3>c-b)){a.forEach(function(e){for(var f=e.playlist,g=e.ri;0<f.S.length&&1E3<c-g;){e=f.S.shift();var k=f.S[0];if(!k)break;xL(e,k);k=wL(k);null!=k?g=k:(e=_.Y.Dj(e.$).duration,
|
|
23
|
+
g+=1E3*e)}});a=a.map(function(e){return e.playlist});if(a.some(function(e){return 0===e.S.length}))throw new _.O(_.P,4,4048,"Media playlists are completely out of sync.");var d=Math.min.apply(Math,_.uh(a.map(function(e){return e.S.length})));a.forEach(function(e){for(;e.S.length>d;)e.S.pop()})}}},vL=function(a){return a.every(function(b){return!!wL(b.S[0])})},wL=function(a){if(!a)return null;a=_.Y.bb(a.$,nK);if(!a)return null;a=Date.parse(a.value);return isNaN(a)?null:a},xL=function(a,b){a&&b&&[lK,
|
|
24
|
+
kK].forEach(function(c){if(!_.Y.cd(b.$,c)){var d=a.$.filter(function(e){return e.name===c});0!==d.length&&d.forEach(function(e){b.$.push(e)})}})},zL=function(){var a=this;this.a=this.F=null;this.h=1;this.j=new RK;this.o="";this.W=new GK;this.H=0;this.l=new _.lj(function(){a.rc()});this.w=_.Vb;this.f=null;this.G=new _.om;this.B=0;this.L=null;this.g=new _.M("clpp.hls.HlsParser");this.D=new Map;this.I=this.M=!1;this.X=new ZK(this.Fg.bind(this));this.P=!1;this.J=null;this.T=!1;this.A=new Map;this.K=new Set},
|
|
25
|
+
AL=function(a,b){var c=new Set(b.map(function(k){return k.id}));a.A.forEach(function(k,l){c.has(l)||a.A["delete"](l)});for(var d=_.v(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.A.get(e.id);if(f&&f.Ze!==e.Ze)a.F.onError(new _.O(1,4,4044,"EXT-X-DATERANGE START-DATE has changed for ID\x3d"+e.id));var g={configurationId:a.F.configurationId,schemeIdUri:e.schemeIdUri,customAttributes:e.customAttributes,value:"",startTime:e.startTime,Ze:e.Ze,endTime:e.endTime,id:e.id,type:_.xe,eventElement:null};
|
|
26
|
+
f&&!_.N.dj(f,g)||a.A.set(e.id,g)}return Array.from(a.A.values())},JL=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,u,z,B,D,C,E,x;return _.I(function(J){switch(J.a){case 1:c=_.Au;d=BL(a,b,a.o,"");if(1===d.type){e=d.S[0].a;f=zK(e);if(!f)throw new _.O(_.P,4,4021,"Unknown file extension "+e);g="";f===c.VIDEO?g="avc1.42E01E":f===c.AUDIO&&(g="mp4a.40.2");d=QK(a.W,a.o,a.a.hlsDefaultCodecs||g)}k=_.Y.Bo(d.$);l=CL(k.gd.Rh);l.forEach(function(L){a.K.add(L.groupId)});return _.y(J,DL(a,k),4);case 4:m=J.f;J.C(3);break;
|
|
27
|
+
case 5:m=J.f;case 3:n=m;p=n.kn;q=n.periods;t=n.Ko;u=n.kp;z=n.alternativeVariants;B=n.alternativeTextStreams;D=n.alternativeImageStreams;if(!a.F)throw new _.O(_.P,7,7001);EL(a,q);C=FL(a,p.delay,q,t);GL(a)||(a.H=p.af,a.g.info("Update playlist each "+a.H+" s"),HL(a));IL(a,C,q);E=AL(a,u);x={presentationTimeline:C,periods:q,minBufferTime:0,cues:E,muxedAudioTracks:l};z&&(x.alternativeVariants=z);B&&(x.alternativeTextStreams=B);D&&(x.alternativeImageStreams=D);a.g.debug("HLS playlist parsed",x);return J["return"](x)}})},
|
|
28
|
+
CL=function(a){return a.filter(function(b){return b.name===_.Ka&&_.T(b,_.Kb)===_.ja&&!_.T(b,_.Mb)}).map(function(b){var c=_.Y.Hi(b),d=_.T(b,_.Za)||_.Gg;return{groupId:_.Up(b,_.Qa),id:_.gK++,label:_.Up(b,_.gb),language:d,channelsCount:c,primary:"YES"===_.T(b,"DEFAULT")}})},ML=function(a,b){var c,d,e,f,g,k,l,m,n;return _.I(function(p){if(1==p.a)return c=_.Y,"LIVE"===a.w&&(a.M=!0,a.I=!0),_.y(p,KL(a,b),2);d=p.f;e=d.textStreams;f=d.thumbStreams;g=d.yk;k=a.f.periods[0].variants;l=k.map(function(q){var t=
|
|
29
|
+
c.Bi(q.audio,g),u=c.Bi(q.video,g);q=LL(a,t,u,q.bandwidth);if(!q)throw new _.O(_.P,4,4047,{message:"Video and audio are encrypted in an incompatible way.",rq:u?u.Fc():void 0,audio:t?t.Fc():void 0});return q});m=a.F.configurationId;n=rL(m,l,e,f,a.B);return p["return"](n)})},KL=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,u,z,B,D,C,E;return _.I(function(x){switch(x.a){case 1:c=_.Au,d=function(J){return J.stream.bd()===c.VIDEO||J.stream.bd()===c.AUDIO},e=b.filter(d),f=b.filter(function(J){return!d(J)}),
|
|
30
|
+
g=function(J){var L=J.stream.streams[0];J=Object.assign({},{playlist:J.playlist,vc:null},{language:L.language,channelsCount:L.channelsCount,spatialAudio:L.spatialAudio,closedCaptions:L.closedCaptions,primary:L.primary,kind:L.kind||null,groupId:L.groupId,type:L.type,codecs:L.codecs,name:L.originalId,uri:L.ld,df:{width:L.width,height:L.height,frameRate:L.frameRate}});return NL(a,J)},k=[],l=_.v(e),m=l.next();case 2:if(m.done){x.C(4);break}n=m.value;p=k;q=p.push;return _.y(x,g(n),5);case 5:q.call(p,x.f);
|
|
31
|
+
m=l.next();x.C(2);break;case 4:t=[],u=_.v(f),m=u.next();case 6:if(m.done){x.C(8);break}z=m.value;B=t;D=B.push;return _.y(x,g(z),9);case 9:D.call(B,x.f);m=u.next();x.C(6);break;case 8:return OL(a,k.concat(t)),C=t.filter(function(J){return J.bd()===c.Kh}),E=t.filter(function(J){return J.bd()===c.IMAGE}),x["return"]({textStreams:C,thumbStreams:E,yk:k})}})},OL=function(a,b){b.forEach(function(c){a.j.a.set(c.Fc(),c)})},DL=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,u,z,B,D,C;return _.I(function(E){switch(E.a){case 1:return c=
|
|
32
|
+
_.Y,d=c.uo(b.gd.closedCaptions),e=PL(a,b.cf),_.y(E,QL(a,b),2);case 2:return f=E.f,g=Object.values(f).flat().map(function(x){return x.playlist}),k=g[0],l=c.Ej(k.$),a.w=l,l!==_.Vb&&(a.I=!0),RL(a,g),!GL(a)&&yL(g),a.L=c.Fj(k.$),m=c.Ao(k.$,l,a.a.lowLatencyMode||!1,a.a.suggestedPresentationDelay,a.a.liveRefreshPeriod),_.y(E,SL(a,f.Sh,e),3);case 3:return n=E.f,_.y(E,TL(a,f.cf,n,d),4);case 4:return p=E.f,_.y(E,UL(a,f.gp,e),5);case 5:return q=E.f,_.y(E,VL(a,f.Ng),6);case 6:return t=E.f,u=a.F.configurationId,
|
|
33
|
+
z=rL(u,p,q,t,a.B),a.F.filterAllPeriods(z),B=_.uh(f.cf).concat(_.uh(f.Sh)).map(function(x){return x.playlist}),D=WL(a,B),C=XL(a,B,D),E["return"]({periods:z,Ko:D,kp:C,kn:m})}})},ZL=function(a,b){var c,d,e,f,g;return _.I(function(k){if(1==k.a)return c=_.Dn(b.verbatimUri,a.o),_.y(k,YL(a,c),2);d=k.f;e=d.response;f=d.text;g=e.uri;return k["return"](BL(a,f,g,b.verbatimUri))})},EL=function(a,b){GL(a)||2!==a.a.timeline.version||(a.J||(a.J=b[0].startTime),_.JE(b,-a.J))},XL=function(a,b,c){b=b.find(function(g){return null!==
|
|
34
|
+
_.Y.bb(g.$,iK)});if(!b)return[];if(null===c)throw new _.O(_.P,4,4024,"EXT-X-PROGRAM-DATE-TIME tag is required when EXT-X-DATERANGE tags are present");var d=b.$.filter(function(g){return g.name===iK});b=new Map;d=_.v(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=_.T(e,"ID");f=f?b.get(f):void 0;(e=_.Y.vo(e,c,a.B,!GL(a),f))&&b.set(e.id,e)}return Array.from(b.values())},WL=function(a,b){var c=b.flatMap(function(e){return e.S[0].$});c=_.Y.bb(c,nK);if(!c)return null;var d=(new Date(c.value)).getTime();
|
|
35
|
+
return isNaN(d)?(a.g.warn("Failed to parse EXT-X-PROGRAM-DATE-TIME tag value (value: "+(c.value+").")),null):d/1E3},QL=function(a,b){var c,d,e,f,g,k;return _.I(function(l){if(1==l.a)return _.y(l,Promise.all([$L(a,b.gd.Rh),$L(a,b.gd.hp),$L(a,b.cf),$L(a,b.Ng)]),2);c=l.f;d=_.v(c);e=d.next().value;f=d.next().value;g=d.next().value;k=d.next().value;return l["return"]({Sh:e,gp:f,cf:g,Ng:k})})},bM=function(a,b){return Promise.all(b.map(function(c){return aM(a,c)}))},PL=function(a,b){for(var c=_.Y.Cf,d=new Map,
|
|
36
|
+
e=_.v(b),f=e.next();!f.done;f=e.next()){var g=f.value,k=_.T(g,_.ja);f=_.T(g,_.Ub);var l=_.T(g,_.Bb);g=cM(a,g);if(l){var m=_.Qp(_.Gn,g);d.set(c(_.Gn,l),m);l=g.indexOf(m);-1<l&&g.splice(l,1)}k&&(l=dM(_.Sc,g),d.set(c(_.Sc,k),l));f&&(k=dM(_.Tg,g),d.set(c(_.Tg,f),k))}return d},UL=function(a,b,c){return Promise.all(b.map(function(d){return eM(a,d,c)}))},VL=function(a,b){return Promise.all(b.map(function(c){return fM(a,c)}))},SL=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a){if(0===b.length)return f["return"](new Map);
|
|
37
|
+
d=[eM(a,b[0],c)];return _.y(f,d[0],2)}if(3!=f.a)return d=d.concat(b.slice(1).map(function(g){return eM(a,g,c)})),_.y(f,Promise.all(d),3);e=f.f;return f["return"](_.Y.lp(e))})},TL=function(a,b,c,d){var e,f,g,k,l,m,n,p,q,t,u;return _.I(function(z){if(1==z.a){e=new Set;f=_.uh(b).concat();g=0;k=Infinity;for(l=0;l<f.length;++l)m=Number(_.Up(f[l].tag,_.oa)),m<k&&(k=m,g=l);n=f.splice(g,1).pop();return _.y(z,gM(a,n,c,d,e),2)}if(3!=z.a)return p=z.f,q=f.map(function(B){return gM(a,B,c,d,e)}),_.y(z,Promise.all(q),
|
|
38
|
+
3);t=z.f;t.splice(g,0,p);u=t.reduce(_.BC,[]);return z["return"](u)})},hM=function(a,b,c){var d;return _.I(function(e){if(1==e.a)return _.y(e,NL(a,{playlist:c,codecs:b.codecs,type:b.type,Qd:b.originalLanguage,vc:b.id,groupId:b.groupId,primary:b.primary,kind:b.kind||null,name:b.label,channelsCount:b.channelsCount,spatialAudio:b.spatialAudio||!1,closedCaptions:b.closedCaptions,df:{width:b.width,height:b.height,frameRate:b.frameRate}}),2);d=e.f;b.bandwidth&&gL(d,b.bandwidth);return e["return"](d)})},
|
|
39
|
+
gM=function(a,b,c,d,e){var f,g,k,l,m,n;return _.I(function(p){return 1==p.a?(f=_.Y,g=b,k=g.tag,l=Number(_.Up(k,_.oa)),m=f.Do(k),_.y(p,iM(a,b,m,c,d),2)):(n=p.f)?p["return"](jM(a,n,l,e)):p["return"]([])})},kM=function(a,b,c,d,e,f){var g=cM(a,b);a.g.debug("Guessing stream type for",b.toString());b=!1;var k=_.Qp(_.Tg,g),l=d+e;1!==g.length||c||k?!l&&1<g.length?(a.g.debug("Guessing multiplexed audio+video"),c=_.Tg,g=[g.join(",")]):d&&f?(a.g.debug(pK),c=_.Sc,b=!0):e?(a.g.debug(pK),c=_.Sc):(a.g.debug("Guessing video-only"),
|
|
40
|
+
c=_.Tg):(c=_.Sc,a.g.debug(pK));return{type:c,wk:g,Sm:b}},iM=function(a,b,c,d,e){var f,g,k,l,m,n,p,q,t,u,z,B,D,C,E,x,J;return _.I(function(L){if(1==L.a)return f=_.Au,g=_.Y.Cf,k=b,l=k.tag,m=k.playlist,n=_.T(l,_.ja),p=_.T(l,_.Ub),q=n?d.get(g(f.AUDIO,n))||[]:[],t=p?d.get(g(f.VIDEO,p))||[]:[],u={audio:q,video:t},z=m.verbatimUri,B=u.audio.find(function(U){return U.Fc()===z}),D=kM(a,l,c,u.audio.length,u.video.length,B),C=D.type,E=D.wk,x=D.Sm,J=null,x?L.C(2):_.y(L,lM(a,b,E,C,e,c),3);2!=L.a&&(J=L.f);if(null==
|
|
41
|
+
J)return L["return"](null);u[C]=[J];C===f.AUDIO&&c&&u.video.forEach(function(U){dL(U,c.width);eL(U,c.height);fL(U,c.frameRate)});return L["return"](u)})},jM=function(a,b,c,d){var e=b.video,f=b.audio;e=0<e.length?e:[null];b=[];f=_.v(0<f.length?f:[null]);for(var g=f.next();!g.done;g=f.next()){g=g.value;for(var k=_.v(e),l=k.next();!l.done;l=k.next()){var m=l.value;l=_.Y.$l(g,m);d.has(l)?a.g.debug("Skipping variant which only differs in text streams."):(m=LL(a,g,m,c),null==m?a.g.warn("Incompatible DRM info in HLS variant. Skipping."):
|
|
42
|
+
(b.push(m),d.add(l)))}}return b},LL=function(a,b,c,d,e){for(var f=[],g=(c||b).length(),k=0;k<g;k++){var l=b?b.streams[k]||null:null,m=c?c.streams[k]||null:null,n=_.Y.xm(l,m);if(!n)return null;var p=d;l={id:e?e:a.h++,language:l?l.language:_.Gg,primary:!!l&&l.primary||!!m&&m.primary,audio:l,video:m,bandwidth:p,drmInfos:n,allowedByApplication:!0,allowedByKeySystem:!0};f.push(l)}return new jL(f)},eM=function(a,b,c){var d,e,f,g;return _.I(function(k){d=b;e=d.tag;f=d.playlist;g=f.verbatimUri;return k["return"](mM(a,
|
|
43
|
+
g,function(){var l,m,n,p,q,t,u,z,B,D,C,E,x;return _.I(function(J){if(1==J.a){l=_.Au;m=_.Y.Cf;n=_.Up(e,_.Qa);p=_.Y.ni(_.Up(e,_.Kb));q=_.Y.Wl(e);t=c.get(m(p,n))||"";u=_.T(e,_.Za);z=_.T(e,_.gb);B=_.T(e,"DEFAULT");D=p===l.AUDIO?_.Y.Hi(e):null;var L=p===l.AUDIO?(L=_.T(e,"CHANNELS"))?L.includes("/JOC"):!1:!1;C=L;E="YES"===B;return _.y(J,NL(a,{playlist:f,codecs:t,type:p,Qd:u,primary:E,name:z,channelsCount:D,spatialAudio:C,groupId:n,kind:q,vc:null,closedCaptions:null,df:null}),2)}x=J.f;return J["return"](x)})}))})},
|
|
44
|
+
fM=function(a,b){var c,d,e,f;return _.I(function(g){c=b;d=c.tag;e=c.playlist;f=e.verbatimUri;return g["return"](mM(a,f,function(){var k,l,m,n,p;return _.I(function(q){if(1==q.a)return k=_.T(d,_.ua)||"jpg",l=_.T(d,_.Za),m=_.T(d,_.gb),_.y(q,NL(a,{playlist:e,codecs:k,type:_.Be,Qd:l,name:m,primary:!1,kind:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,vc:null,groupId:null,df:null}),2);n=q.f;(p=_.T(d,_.oa))&&gL(n,Number(p));return q["return"](n)})}))})},cM=function(a,b){var c=_.T(b,_.ua,a.a.hlsDefaultCodecs||
|
|
45
|
+
"avc1.42E01E,mp4a.40.2").split(/\s*,\s*/);c=_.Y.dm(c);var d=new Set,e=[];c=_.v(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=_.HC(f);d.has(g)?a.g.debug("Ignoring duplicate codec"):(e.push(f),d.add(g))}return e},lM=function(a,b,c,d,e,f){var g,k,l,m,n;return _.I(function(p){g=b;k=g.tag;l=g.playlist;m=_.Au;n=l.verbatimUri;return p["return"](mM(a,n,function(){var q,t,u,z,B;return _.I(function(D){if(1==D.a){q=_.T(k,_.sa);t=null;d===m.VIDEO&&q&&"NONE"!==q&&(t=e.get(q));var C=_.T(k,_.ja)||void 0;
|
|
46
|
+
u=C&&a.K.has(C)?C:void 0;C=dM(d,c);if(u){var E=dM(_.Sc,c);C+=","+E}z=C;return _.y(D,NL(a,{playlist:l,codecs:z,type:d,closedCaptions:t,primary:!1,kind:null,Qd:null,name:null,channelsCount:null,spatialAudio:!1,vc:null,groupId:null,muxedAudioId:u,df:f}),2)}B=D.f;return D["return"](B)})}))})},mM=function(a,b,c){if(a.j.has(b))return a=a.j.get(b),Promise.resolve(a);if(a.j.f.has(b))return a.j.f.get(b)||null;c=c();a.j.set(b,c);return c},NL=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,u,z,B,D,C,E,x,J,L,U,V,ta;
|
|
47
|
+
return _.I(function(za){if(1==za.a){c=nM;d=oM;e=_.Au;f=b;g=f.playlist;k=f.codecs;l=f.type;m=f.Qd;n=f.vc;p=f.groupId;q=f.muxedAudioId;t=f.primary;u=f.kind;z=f.name;B=f.channelsCount;D=f.spatialAudio;C=f.closedCaptions;E=f.df;x=_.Y.Li(m);if(1!==g.type)throw new _.O(_.P,4,4017);return _.y(za,pM(a,g,l,k),2)}J=za.f;L=a.a.lowLatencyMode?d.hk:d.jk;U=u;l!==e.TEXT||u||(U=_.qg);V=_.Y.Ej(g.$);ta=J.map(function(va){var qa=va.S,Fa=va.fm,sc=va.mimeType,ab=va.ka,Uc=qa[0].startTime,Pd=qa[qa.length-1].endTime,Ff=
|
|
48
|
+
Pd-Uc,uc=new _.RD(qa),ei=qa[0].initSegment||null;return{id:null==n?_.gK++:n,originalId:z,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:uc.Af.bind(uc),getSegmentReference:uc.get.bind(uc),adjustSegmentDurations:uc.wg.bind(uc),getDuration:uc.getDuration.bind(uc),segmentIndex:uc,segmentLookupStrategy:L,initSegmentReference:ei,mimeType:sc,codecs:k,kind:U,xi:Fa.type,encrypted:Fa.type===c.mk,aesEncrypted:va.aesEncrypted,keyId:Fa.keyId,language:x,originalLanguage:m||_.Gg,label:z,type:l,
|
|
49
|
+
primary:t,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:E?E.frameRate:void 0,width:E?E.width:void 0,height:E?E.height:void 0,bandwidth:void 0,roles:[],channelsCount:B,spatialAudio:D,closedCaptions:C,S:qa,drmInfos:Fa.drmInfos,ka:ab,ld:g.verbatimUri,tg:g.a,Ic:Uc,Of:Pd,duration:Ff,groupId:p,gq:V,muxedAudioId:q}});return za["return"](new bL(ta))})},$L=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,Promise.all(b.map(function(e){var f;return _.I(function(g){if(1==g.a)return _.y(g,
|
|
50
|
+
qM(a,e),2);f=g.f;return g["return"](f?{tag:e,playlist:f}:null)})})),2);c=d.f;return d["return"](c.filter(Boolean))})},qM=function(a,b){var c,d,e,f,g,k,l,m,n;return _.I(function(p){if(1==p.a){c=_.Y.dn(b);d=_.T(b,_.Mb,void 0,{required:c});if(!d)return p["return"](null);e=_.Dn(d,a.o);f=Date.now();return _.y(p,YL(a,e),2)}g=p.f;k=g.response;l=g.text;m=Date.now();a.F.onEvent(new _.Q(uK,{detail:{duration:m-f,type:"media"}}));n=k.uri;return p["return"](BL(a,l,n,d))})},aM=function(a,b){var c,d,e,f,g,k,l,m;
|
|
51
|
+
return _.I(function(n){if(1==n.a){var p=new URL(b.streams[0].tg);if(a.a.lowLatencyMode&&a.L&&a.L.Xh){var q=b.streams[b.streams.length-1].segmentIndex;if(q=q.a[q.a.length-1]){var t=q.a,u=t.length-1;q={nn:q.position,Eo:t&&0<t.length?u:null}}else q=null;q&&(t=p.searchParams,u=q.Eo,t.set("_HLS_msn",q.nn.toString()),null===u&&t.get(sK)&&t["delete"](sK),null!==u&&t.set(sK,u.toString()))}c=p.toString();return _.y(n,YL(a,c),2)}d=n.f;e=d.response;f=d.text;g=b.Fc();k=b.streams[0].tg;l=e.uri;k!==l&&(k=l,cL(b,
|
|
52
|
+
k));m=BL(a,f,k,g);return n["return"]({stream:b,playlist:m})})},BL=function(a,b,c,d){a=JK(a.W,b,c);a.verbatimUri=d;return a},rM=function(a){if(1<(new Set(a.map(function(b){return b.mimeType}))).size)throw new _.O(_.P,4,4045,"Media playlist contains discontinuities with different MIME types. This is valid, but not yet supported.");},FL=function(a,b,c,d){var e=!0,f=null,g=0;GL(a)||(e=!1,f=0,g=b);b=a.a.timeline||{};b.type=void 0;a=new _.uD(b,f,g,!0,void 0,!!a.a.lowLatencyMode);_.xD(a,e);sM(a,c);d&&_.wD(a,
|
|
53
|
+
d);return a},tM=function(a,b,c){a=_.Y.Dc(a.$,lK);if(1<a.length)throw new _.O(_.P,4,4020);a=a[0];if(!a)return null;var d=_.Up(a,_.Mb),e=_.Dn(d,b);b=_.Y.Bj(a,null,!0);return new _.RC(function(){return[e]},b.la,b.ga,c)},uM=function(a,b,c,d,e,f,g){for(var k=[],l={},m=0;m<b.f.length;l={ng:l.ng},m++){var n=b.f[m],p=0===m,q=p?a:k[k.length-1],t=p?d:q.endTime,u=Number(_.T(n,_.Ia));u=t+u;p=_.Y.Bj(n,p?null:q.ga,p);q=String(_.T(n,_.Mb));q=_.Dn(q,g);l.ng=q?[q]:[];t=new _.Xp(c,t,u,function(z){return function(){return z.ng}}(l),
|
|
54
|
+
p.la,p.ga,e,f,!1,null,null,null,null);if("YES"===_.T(n,"INDEPENDENT")||0===m)t.h=!0;k.push(t)}return k},vM=function(a,b,c,d,e,f,g,k,l,m,n){var p=c.$,q=c.a;0<_.Y.Dc(p,lK).length&&(n=tM(c,l,g));var t=null!=q,u=q?[q]:[];if(!t&&!a.a.lowLatencyMode)return null;var z=0,B={la:0,ga:null};q=null;t&&(t=_.Y.Dj(p).duration,z=e+t,B=_.Y.Cj(p,b?b.ga:null));a.a.lowLatencyMode&&0<c.f.length&&(q=uM(b,c,d,e,f,g,l),0===z&&(z=q[q.length-1].endTime));a=k===_.Be?_.Y.Co(p):null;d=new _.Xp(d,e,z,function(){return u},B.la,
|
|
55
|
+
B.ga,f,g,!1,null,a?a.De:null,a?a.bf:null,a?a.durationPerTile:null,q,n);d.ka=m;return d},pM=function(a,b,c,d){var e,f,g,k,l,m,n,p,q,t,u,z,B,D,C;return _.I(function(E){switch(E.a){case 1:e=_.Y;f=wM;g=b.verbatimUri;k=b.S;l=e.Dm(b.$,mK);m=[];n=null;if(!a.I){E.C(2);break}a.I=!1;p=a.B;q=a;return _.y(E,xM(a,b.a,g,k,l,c,d),3);case 3:q.B=E.f,null!=p&&(n=a.B-p);case 2:t=l,u=f.ep(k),z=0;case 4:if(!(z<u.length)){E.C(6);break}B=u[z];D=m[m.length-1]||null;return _.y(E,yM(a,b.a,B,t,c,d,D,n),7);case 7:C=E.f;m.push(C);
|
|
56
|
+
t+=B.length;z++;E.C(4);break;case 6:return rM(m),E["return"](m)}})},xM=function(a,b,c,d,e,f,g){var k,l,m,n,p,q,t,u,z,B,D;return _.I(function(C){if(1==C.a){k=d[0];if(!GL(a)&&a.f)try{return l=zM(a,c,e),C["return"](l)}catch(E){if(m=a.j.get(c))n=m.streams[0].S[0].position,C=m.streams[m.streams.length-1].S,p=C[C.length-1].position,q=e,t=e+d.length-1,a.g.warn("Last #EXT-X-MEDIA-SEQUENCE values "+n+" - "+p+(", new values "+q+" - "+t+"."),b,m);throw new _.O(_.P,4,4047,{message:"The updated playlist does not share any segments with the previous one.",
|
|
57
|
+
uri:c});}return _.y(C,AM(a,f,g,k),2)}if(3!=C.a)return u=C.f,z=BM.yj(k.$,a.o,e),B=tM(k,b,z),_.y(C,CM(a,B,k,z,u,g),3);D=C.f;a.g.debug("Setting playlist start time to "+D+".");return C["return"](D)})},yM=function(a,b,c,d,e,f,g,k){var l,m,n,p,q,t,u,z,B,D,C,E,x,J,L,U,V,ta,za,va,qa;return _.I(function(Fa){if(1==Fa.a)return l=BM,m=c[0],_.y(Fa,AM(a,e,f,m),2);if(3!=Fa.a)return n=Fa.f,p=l.xo(c,n,g?g.hn:null),q=p[p.length-1],t=BM.ta(p),u=g?g.jn:null,z=DM(u,m.$,a.o,d),B=tM(m,b,z)||(g?g.Um:null),D=m.ka,C=null==
|
|
58
|
+
g,_.y(Fa,EM(a,D,B,m,d,z,n,f,k,C),3);E=Fa.f;x=[];J=!1;for(L=0;L<c.length;L++)if(U=c[L],V=x[x.length-1]||null,ta=0===L?0:V.endTime,za=d+L,(u=va=DM(u,U.$,a.o,za))&&(J=!0),qa=vM(a,V,U,za,ta,E,va,e,b,D,B))B=qa.initSegment,x.push(qa);return Fa["return"]({S:x,fm:t,hn:q,aesEncrypted:J,mimeType:n,endTime:x[x.length-1].endTime,ka:D,Um:B,jn:u})})},DM=function(a,b,c,d){return b.some(function(e){return e.name===kK&&"NONE"===_.T(e,qK)})?null:(b=BM.yj(b,c,d))?b:a&&a.generatedIv?Object.assign({},a,{iv:BM.Gi(d)}):
|
|
59
|
+
a},RL=function(a,b){b.forEach(function(c){var d=a.j.get(c.verbatimUri);wM.Ck(c,d,!GL(a))});wM.am(b)},EM=function(a,b,c,d,e,f,g,k,l,m){var n,p,q,t,u;return _.I(function(z){if(1==z.a)return a.D.has(b)&&m&&a.M&&null!=l&&(n=a.f.periods,p=n.filter(function(B){return B.ka<b}).map(function(B){return B.duration}).reduce(function(B,D){return B+D},0),q=l-p,t=a.D.get(b),a.D.set(b,t+q),a.M=!1),a.D.has(b)?z["return"](a.D.get(b)):_.y(z,CM(a,c,d,f,g,k),2);u=z.f;a.g.debug("Segment #"+e+" has raw media timestamp "+
|
|
60
|
+
(u+" s."));a.D.set(b,u);return z["return"](u)})},CM=function(a,b,c,d,e,f){var g;return _.I(function(k){if(null==c.a)return k["return"](0);g=_.Y.Yl(c,d);return k["return"](aL(a.X,b,g,e,f,null!=d))})},zM=function(a,b,c){var d=FM(a,b,c);if(!d)throw new _.O(_.P,4,4030,"Segment not found in previous playlist update.");return a.f.periods.find(function(e){return e.ka===d.ka}).startTime+d.startTime},FM=function(a,b,c){return(a=a.j.get(b))?hL(a,c)||null:null},dM=function(a,b){if(1===b.length)return b[0];var c=
|
|
61
|
+
_.Qp(a,b);if(null!=c)return c;throw new _.O(_.P,4,4025,{codecList:b});},AM=function(a,b,c,d){var e,f,g;return _.I(function(k){e=d.a;g=(f=_.Y.bb(d.$,lK))?_.Up(f,_.Mb):null;return k["return"](GM(a,b,c,e,g))})},GM=function(a,b,c,d,e){var f,g,k,l,m;return _.I(function(n){if(1==n.a){f=[d,e].filter(Boolean);if(g=_.Sp(f,b,c))return n["return"](g);k=_.dl([d],a.a.attemptParameters);k.method="HEAD";k.type=2;return _.y(n,a.Fg(k),2)}l=n.f;m=l.headers["content-type"];if(!m)throw new _.O(_.P,4,4021,"Unknown MIME type of: "+
|
|
62
|
+
f.join(", "));return n["return"](m.toLowerCase().split(";")[0])})},IL=function(a,b,c){c=_.Y.Fm(c);"LIVE"===a.w||"EVENT"===a.w?(c=Math.max(c,b.K),isNaN(a.a.availabilityWindowOverride)||(c=a.a.availabilityWindowOverride),b.A=c):a.w===_.Vb&&(b.f=c)},HL=function(a){for(var b=0,c=_.v(a.j.values()),d=c.next();!d.done;d=c.next())b=Math.max(b,d.value.streams[0].Ic);for(c=0;95443.7176888889<=b;)c+=95443.7176888889,b-=95443.7176888889;if(c)for(a.g.debug("Offsetting live streams by",c,"to compensate for rollover"),
|
|
63
|
+
b=_.v(a.j.values()),d=b.next();!d.done;d=b.next())d=d.value.streams[0],95443.7176888889>d.Ic?(a.g.debug("Offset applied to",d.type),d.segmentIndex.offset(c)):a.g.debug("Offset NOT applied to",d.type)},YL=function(a,b){var c,d,e;return _.I(function(f){if(1==f.a)return c=_.dl([b],a.a.attemptParameters),c.type=1,_.y(f,a.Fg(c),2);d=f.f;e="";try{e=_.R.ea(d.data)}catch(g){throw new _.O(_.P,4,4042);}e=_.R.kj(e);e=e.trim();return f["return"]({text:e,response:d})})},GL=function(a){return a.w===_.Vb},sM=function(a,
|
|
64
|
+
b){_.Y.en(b,function(c,d){_.AD(a,c.S,d.startTime)});_.tD(a.a,b[0].startTime,b[b.length-1].endTime)},HM=function(){},oM={hk:_.aC,jk:_.$B},nM={mk:vK,Kp:"whole-segment",NONE:_.Ze},OK=/^#EXT-X-DEFINE/,PK=/^#(EXT-X-DISCONTINUITY-SEQUENCE|EXT-X-ENDLIST|EXT-X-I-FRAMES-ONLY|EXT-X-MEDIA-SEQUENCE|EXT-X-PART-INF|EXT-X-PLAYLIST-TYPE|EXT-X-SERVER-CONTROL|EXT-X-TARGETDURATION|EXT-X-DATERANGE|EXT-X-VERSION)/;_.r=RK.prototype;
|
|
65
|
+
_.r.set=function(a,b){var c=this;this.f.set(a,b);return b.then(function(d){return c.a.set(a,d)})["catch"](function(){}).then(function(){return c.f["delete"](a)})};_.r.has=function(a){return this.a.has(a)};_.r.get=function(a){return this.a.get(a)||null};_.r.values=function(){return Array.from(this.a.values())};_.r.clear=function(){this.f.clear();this.a.clear()};
|
|
66
|
+
var wM={am:function(a){var b=wM.qm(a),c=wM.gn(a);a.forEach(function(d){var e=d.S,f=e.findIndex(function(k){return k.ka===b}),g=e.findIndex(function(k){return k.ka===c+1});-1===g&&(g=e.length);d.S=e.slice(f,g)})},Ck:function(a,b,c){b=wM.Cm(a,b,c);a=_.v(a.S||[]);for(c=a.next();!c.done;c=a.next())c=c.value,_.Y.cd(c.$,jK)&&b++,c.ka=b},Cm:function(a,b,c){var d=_.Y.bb(a.$,"EXT-X-DISCONTINUITY-SEQUENCE");if(d)return Number(d.value);d=wM.Wm(b);if(c&&d)try{return wM.Tm(a,b)}catch(e){throw new _.O(_.P,4,4024,
|
|
67
|
+
"EXT-X-DISCONTINUITY-SEQUENCE tag is required for discontinuous HLS live streams.");}return 0},Wm:function(a){return 0<wM.Em(a)},ep:function(a){if(0===a.length)return[];var b=[],c=[];a=_.v(a);for(var d=a.next();!d.done;d=a.next())d=d.value,_.Y.cd(d.$,jK)&&0<c.length&&(b.push(c),c=[]),c.push(d);b.push(c);return b},Em:function(a){if(!a)return 0;a=a.streams[a.streams.length-1].S;return a[a.length-1].ka},Tm:function(a,b){var c=_.Y.bb(a.$,mK);if(!c)throw wM.g.error("Failed to infer discontinuity number, because EXT-X-MEDIA-SEQUENCE tag is missing."),
|
|
68
|
+
Error(oK);c=Number(c.value);var d=hL(b,c);if(!d)throw wM.g.error("Failed to infer discontinuity number, could not find the appropriate segment in the previous playlist (segment position \x3d "+(c+")")),Error(oK);return d.ka},gn:function(a){a=a.map(function(b){return b.S[b.S.length-1].ka});return Math.min.apply(Math,_.uh(a))},qm:function(a){a=a.map(function(b){return b.S[0].ka});return Math.max.apply(Math,_.uh(a))}};wM.g=new _.M("clpp.hls.DiscontinuityUtils");var IM={"com.apple.streamingkeydelivery":function(a,b){if(b===_.Ug)throw new _.O(_.P,4,4041);if(_.Up(a,qK)===rK)throw new _.O(_.P,4,4044,"EXT-X-KEY:METHOD SAMPLE-AES-CTR is not supported in FairPlay.");return _.EC(_.Id,[{initDataType:_.gg,initData:new Uint8Array(0)}],"")},"com.microsoft.playready":YK,"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":YK,"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=_.Up(a,qK);if(!WK.includes(b))return XK.error("Widevine in HLS is only supported with [",
|
|
69
|
+
WK.join(", "),"], not",b),null;b=_.Up(a,_.Mb);b=_.Um(b);b=_.Vi(b.data);b=_.EC(_.Md,[{initDataType:_.md,initData:b}],"");if(a=_.T(a,"KEYID"))b.keyIds=[a.substr(2).toLowerCase()];return b}},WK=["SAMPLE-AES",rK],XK=new _.M("clpp.hls.DrmParser");var BM={xo:function(a,b,c){if(_.Y.cd(a[0].$,kK)||null===c)return c=BM.zj(a,b),0===c.length?[{type:_.Ze,drmInfos:[],keyId:null}]:c;a=BM.zj(a,b);return[c].concat(_.uh(a))},ta:function(a){if(0===a.length)return{type:_.Ze,drmInfos:[],keyId:null};if(a.some(function(c){return"whole-segment"===c.type})||a.every(function(c){return c.type===_.Ze}))return a[0];a=a.filter(function(c){return c.type===vK});var b=_.Ri(a.flatMap(function(c){return c.drmInfos}));return{keyId:a[a.length-1].keyId,type:vK,drmInfos:b}},
|
|
70
|
+
zj:function(a,b){return BM.jm(a).map(function(c){return BM.zo(c.$,b)}).filter(Boolean)},jm:function(a){return a.filter(function(b){return _.Y.cd(b.$,kK)})},zo:function(a,b){var c=_.Y.Dc(a,kK).filter(function(e){return"AES-128"!==_.Up(e,qK)});if(0===c.length)return null;var d=_.Up(c[0],qK);if(1===c.length&&"NONE"===d)return{type:_.Ze,drmInfos:[],keyId:null};d=c.map(function(e){return _.Up(e,qK)});if(!d.every(function(e){return"SAMPLE-AES"===e})&&!d.every(function(e){return e===rK}))throw BM.g.warn("EXT-X-KEY methods "+
|
|
71
|
+
d.join(", ")+" are incompatible."),new _.O(_.P,4,4044,"Multiple EXT-X-KEY tags with incompatible METHOD values.");c=c.map(function(e){var f=_.T(e,"KEYFORMAT","identity"),g=IM[f]||null;(e=g?g(e,b):null)||BM.g.warn("Unsupported HLS KEYFORMAT",f);return e}).filter(Boolean);if(0===c.length)throw new _.O(_.P,4,4026);return{keyId:c.map(function(e){return e.keyIds}).reduce(function(e,f){return e.concat(f)},[]).reverse()[0]||null,type:vK,drmInfos:c}},cq:function(){return{type:_.Ze,drmInfos:[],keyId:null}},
|
|
72
|
+
yj:function(a,b,c){a=_.Y.Dc(a,kK)[0];if(!a||"AES-128"!==_.Up(a,qK))return null;var d=BM.vm(a,c);c=d.iv;d=d.generatedIv;return{method:"AES-128",url:_.Dn(_.Up(a,_.Mb),b),iv:c,generatedIv:d}},Gi:function(a){return _.Tm(new Uint8Array(12),new Uint8Array([a>>24&255,a>>16&255,a>>8&255,a&255]))},vm:function(a,b){var c=_.T(a,"IV","");if(c)return{iv:_.Qm((c||"0x").slice(2)),generatedIv:!1};c=_.T(a,"KEYFORMAT");return null==c||"identity"===c?{iv:BM.Gi(b),generatedIv:!0}:{iv:null,generatedIv:!1}}};BM.g=new _.M("clpp.hls.EncryptionUtils");bL.prototype.length=function(){return this.streams.length};bL.prototype.a=function(){return this.streams[0].groupId};bL.prototype.bd=function(){return this.streams[0].type};bL.prototype.Fc=function(){return this.streams[0].ld};jL.prototype.length=function(){return this.a.length};_.r=zL.prototype;_.r.configure=function(a){this.a=a;this.X.a=a};_.r.setCurrentVariant=function(){};_.r.start=function(a,b){var c=this,d,e,f,g,k,l,m;return _.I(function(n){if(1==n.a){if(c.P)throw Error("start() may be called only once!");c.P=!0;c.F=b;d=Date.now();return _.y(n,YL(c,a),2)}if(3!=n.a)return e=n.f,f=e.response,g=e.text,k=Date.now(),c.F.onEvent(new _.Q(uK,{detail:{duration:k-d,type:"master"}})),c.o=f.uri,_.y(n,JL(c,g),3);l=n.f;c.f=l;m=c.H;c.l&&0<m&&c.l.ia(m);return n["return"](l)})};
|
|
73
73
|
_.r.requestStop=function(){this.T=!0};_.r.stop=function(){this.l&&(this.l.stop(),this.l=null);var a=[];this.G&&(a.push(this.G.destroy()),this.G=null);this.j.clear();this.f=this.a=this.F=null;this.A.clear();this.K.clear();return Promise.all(a)};
|
|
74
|
-
_.r.update=function(){var a=this,b,c,d,e,f,g,k,l,m;return _.I(function(n){switch(n.a){case 1:b=a.f;if(
|
|
75
|
-
g[g.length-1].endTime),a.l.stop(),a.l=null;if(a.F.onUpdate)a.F.onUpdate(b);if(m&&a.F.onTurnedStatic)a.F.onTurnedStatic();if(!a.T){n.C(4);break}return _.
|
|
76
|
-
_.r.loadVariant=function(a,b){var c=this,d,e,f,g,k,l,m,n,p,q,t,u,
|
|
77
|
-
n,E))})}));k.video&&(p=k.video,m=
|
|
78
|
-
_.r.loadTextStream=function(a,b){var c=this,d,e,f,g,k,l;return _.I(function(m){if(1==m.a){(e=c.f.periods.find(function(n){return n.id===b}))&&(f=e.textStreams.find(function(n){return n.id===a})||null)&&(d=f);if(d||!c.f.alternativeTextStreams)return m.C(2);g=c.f.alternativeTextStreams.find(function(n){return n.id===a})||null;if(!g)throw new _.
|
|
79
|
-
k,n))})}),3)}2!=m.a&&(l=m.f)&&c.f.periods.forEach(function(n,p){var q=l.streams[p];c.f.periods[p].textStreams.push(q);q.id===a&&(d=q)});if(!d)throw new _.
|
|
80
|
-
_.r.
|
|
74
|
+
_.r.update=function(){var a=this,b,c,d,e,f,g,k,l,m;return _.I(function(n){switch(n.a){case 1:b=a.f;if(GL(a)||!b)return n["return"]();c=b.presentationTimeline;d=Array.from(a.j.values());return _.y(n,bM(a,d),2);case 2:return e=n.f,f=e.map(function(p){return p.playlist}),RL(a,f),_.y(n,ML(a,e),3);case 3:g=n.f;lL(b.periods,g).forEach(function(p){a.F.filterNewPeriod(p)});EL(a,g);k=WL(a,f);l=XL(a,f,k);b.cues=AL(a,l);nL(b.periods,g);sM(c,g);if(m=_.Y.Qm(f))!0!==a.a.keepTimelineLive&&(a.w=_.Vb,_.xD(c,!0),c.f=
|
|
75
|
+
g[g.length-1].endTime),a.l.stop(),a.l=null;if(a.F.onUpdate)a.F.onUpdate(b);if(m&&a.F.onTurnedStatic)a.F.onTurnedStatic();if(!a.T){n.C(4);break}return _.y(n,a.stop(),4);case 4:return n["return"](b)}})};
|
|
76
|
+
_.r.loadVariant=function(a,b){var c=this,d,e,f,g,k,l,m,n,p,q,t,u,z,B,D;return _.I(function(C){if(1==C.a){d=a.id;if(e=c.f.periods.find(function(E){return E.id===b}))if(f=e.variants.find(function(E){return E.id===d}))return C["return"](f);g=c.f.alternativeVariants.find(function(E){return E.id===d});if(!g)throw new _.zi("No alternative variant with id: "+d);k=g;m=l=null;k.audio&&(n=k.audio,l=mM(c,n.verbatimUri,function(){var E;return _.I(function(x){if(1==x.a)return _.y(x,ZL(c,n),2);E=x.f;return x["return"](hM(c,
|
|
77
|
+
n,E))})}));k.video&&(p=k.video,m=mM(c,p.verbatimUri,function(){var E;return _.I(function(x){if(1==x.a)return _.y(x,ZL(c,p),2);E=x.f;return x["return"](hM(c,p,E))})}));return _.y(C,l,2)}if(3!=C.a)return q=C.f,_.y(C,m,3);t=C.f;if(u=LL(c,q,t,k.bandwidth,k.id))B=c.F.configurationId,D=rL(B,[u],[],[],0),c.F.filterAllPeriods(D),D.forEach(function(E,x){c.f.periods[x].variants.push(E.variants[0]);b===c.f.periods[x].id&&(z=E.variants[0])});if(!z)throw new _.zi("Could load variant with id: "+d);return C["return"](z)})};
|
|
78
|
+
_.r.loadTextStream=function(a,b){var c=this,d,e,f,g,k,l;return _.I(function(m){if(1==m.a){(e=c.f.periods.find(function(n){return n.id===b}))&&(f=e.textStreams.find(function(n){return n.id===a})||null)&&(d=f);if(d||!c.f.alternativeTextStreams)return m.C(2);g=c.f.alternativeTextStreams.find(function(n){return n.id===a})||null;if(!g)throw new _.zi(_.HB+a);k=g;return _.y(m,mM(c,k.verbatimUri,function(){var n;return _.I(function(p){if(1==p.a)return _.y(p,ZL(c,k),2);n=p.f;RL(c,[n]);return p["return"](hM(c,
|
|
79
|
+
k,n))})}),3)}2!=m.a&&(l=m.f)&&c.f.periods.forEach(function(n,p){var q=l.streams[p];c.f.periods[p].textStreams.push(q);q.id===a&&(d=q)});if(!d)throw new _.zi(_.HB+a);return m["return"](d)})};_.r.rc=function(){var a=this,b,c;return _.I(function(d){if(1==d.a){a.g.debug(_.RB);if(!a.F)return d["return"]();_.F(d,2);return _.y(d,a.update(),4)}if(2!=d.a)return a.l&&0<a.H&&a.l.ia(a.H),_.G(d,0);b=_.H(d);if(!(b instanceof _.O))throw b;a.F&&(a.F.onError(b),c=b,1===c.severity&&a.l&&a.l.ia(.1));_.A(d)})};
|
|
80
|
+
_.r.Fg=function(a){if(!this.G)throw new _.O(_.P,7,7001);a=this.F.networkingEngine.fetch(a);_.qm(this.G,a);return a.U};_.w(HM,_.jv);HM.prototype.install=function(){_.ew.m3u8=zL;_.dw[_.am]=zL;_.dw[tK]=zL};HM.prototype.uninstall=function(){_.pE("m3u8");_.qE(_.am);_.qE(tK)};HM.prototype.id=function(){return"hls"};_.K("clpp.hls.HlsComponent",HM);};
|
|
81
81
|
if(typeof(module)!="undefined"&&module.exports){var x=require("./cl.core.js");_ = x._;(f.call(g,this));module.exports=g;}
|
|
82
82
|
else if (typeof(define)!="undefined"&&define.amd) {define(["./cl.core"], function(c){_=c._;(f.call(g,this));return g;});}
|
|
83
83
|
else{_=this.clpp._;(f.call(g,this));}
|
package/cjs/cl.hlssmpte.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
(function(){var g={}; var _ = _ || {}
|
|
2
|
-
var f=function(window){var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
c.mode=_.we,a.a.on(c,_.Td,function(d){return
|
|
6
|
-
a.m.getTrackManager().
|
|
7
|
-
_.K("clpp.hlssmpte.HlsSmptePlugin",
|
|
2
|
+
var f=function(window){var yU=function(a){this.startTime=a.startTime;this.endTime=a.endTime;this.a=this.f=null;a=a.value;if(!_.N.R(a)){a:{var b=a.info;if(_.N.ja(b)&&(b=b.toLowerCase().match(/lang:(\w+)/))&&b[1]){b=b[1].toLowerCase();break a}b=null}this.f=b;a=a.data;this.a=_.N.ja(a)?a:null}},AU=function(a,b,c){this.m=a;this.l=b;this.j=c;this.a=new _.Bi;this.h=(a=_.Cv(_.Pc))?new a(this.m.getConfiguration()):null;this.g=new _.M("clpp.hlssmpte.ImageCueHandler");this.f=null;zU(this)},zU=function(a){a.a.one(a.m,_.Le,function(){return BU(a)})},
|
|
3
|
+
BU=function(a){var b=a.m.getSurface().getMedia();if(b)if(a.h){a.a.on(b.textTracks,_.Ec,function(d){return CU(a,d)});var c=Array.from(b.textTracks);c.filter(function(d){return d.kind===_.Se}).forEach(function(d){CU(a,{track:d})});!DU(c)&&a.l&&(a.g.warn("The metadata track is not present. Changing an audio track in order to enforce the creation of the metadata track."),EU(a,b))}else a.g.warn("The clpp.ttml.TextParser class is not available. Please register the ttml component first.");else a.g.warn("A video element is not available. Skipping.")},
|
|
4
|
+
DU=function(a){return a.some(function(b){return b.kind===_.Se})},EU=function(a,b){var c=a.m.getTrackManager(),d=c.qa(),e=c.getAudioTracks().find(function(g){return g!==d});if(e){var f=function(){return c.La(d)};a.a.on(b.textTracks,_.Ec,function(g){g.track.kind===_.Se&&(a.a.off(b.textTracks,_.Ec,f),f())});c.La(e)}else a.g.warn("Can't enforce the creation of the metadata track if single audio track. Skipping.")},CU=function(a,b){var c=b.track;c.kind===_.Se&&(a.g.info("The metadata track has been added."),
|
|
5
|
+
c.mode=_.we,a.a.on(c,_.Td,function(d){return FU(a,d)}))},FU=function(a,b){var c=GU(a);c&&Array.from(b.target.activeCues||[]).forEach(function(d){if(d!==a.f&&Number.isFinite(d.startTime)&&Number.isFinite(d.endTime)&&"org.id3"===d.type&&d.value&&"TXXX"===d.value.key){var e=new yU(d);if(e.f===c&&null!==e.a){a.f=d;d=a.h.parseMedia(_.R.ub(e.a),{periodStart:a.j,segmentStart:e.startTime,segmentEnd:e.endTime});var f=a.m.getTextDisplayer();f.remove(0,e.startTime);f.append(d.cues,d.styles)}}})},GU=function(a){return(a=
|
|
6
|
+
a.m.getTrackManager().wa())&&a.language&&a.language.toLowerCase()},HU=function(){this.a=null;this.f=!1},IU=function(){};AU.prototype.destroy=function(){this.a.release();this.f=null;return Promise.resolve()};_.w(HU,_.gw);HU.prototype.onPlayerCreated=function(){};HU.prototype.onContentWillLoad=function(a){if(this.f=_.tj()){var b=a.getConfiguration();b=_.N.xb(b.hlssmpte||{});_.N.Zi(b.patchMetadataTrack)||(b.patchMetadataTrack=!1);_.N.ya(b.timestampOffset)||(b.timestampOffset=0);this.a=new AU(a,b.patchMetadataTrack,b.timestampOffset)}};HU.prototype.onPlayerWillDestroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.a?_.y(b,a.a.destroy(),3):b.C(0);a.a=null;_.A(b)})};HU.prototype.id=function(){return"hlssmpte"};
|
|
7
|
+
_.K("clpp.hlssmpte.HlsSmptePlugin",HU);HU.Id="hlssmpte";IU.prototype.create=function(){return new HU};_.fp(new IU);};
|
|
8
8
|
if(typeof(module)!="undefined"&&module.exports){var x=require("./cl.core.js");_ = x._;(f.call(g,this));module.exports=g;}
|
|
9
9
|
else if (typeof(define)!="undefined"&&define.amd) {define(["./cl.core"], function(c){_=c._;(f.call(g,this));return g;});}
|
|
10
10
|
else{_=this.clpp._;(f.call(g,this));}
|