dashjs
Version:
A reference client implementation for the playback of MPEG DASH via Javascript and compliant browsers.
3 lines • 38.3 kB
JavaScript
/*! v3.0.0-b90898e8, 2019-06-29T00:45:00Z */
!function i(o,s,l){function d(t,e){if(!s[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(u)return u(t,!0);var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}var n=s[t]={exports:{}};o[t][0].call(n.exports,function(e){return d(o[t][1][e]||e)},n,n.exports,i,o,s,l)}return s[t].exports}for(var u="function"==typeof require&&require,e=0;e<l.length;e++)d(l[e]);return d}({1:[function(e,t,r){"use strict";function a(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}Object.defineProperty(r,"__esModule",{value:!0});var n=(function(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}(i,[{key:"extend",value:function(e,t){if(e){var r=!!t&&t.override,a=!!t&&t.publicOnly;for(var n in e)!e.hasOwnProperty(n)||this[n]&&!r||a&&-1===e[n].indexOf("public_")||(this[n]=e[n])}}}]),i);function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i)}r.default=n,t.exports=r.default},{}],2:[function(e,t,r){"use strict";function a(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}Object.defineProperty(r,"__esModule",{value:!0});var n=(function(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}(i,[{key:"extend",value:function(e,t){if(e){var r=!!t&&t.override,a=!!t&&t.publicOnly;for(var n in e)!e.hasOwnProperty(n)||this[n]&&!r||a&&-1===e[n].indexOf("public_")||(this[n]=e[n])}}}]),i);function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i)}r.default=n,t.exports=r.default},{}],3:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a,n=e(2);function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){for(var a=!0;a;){var n=e,i=t,o=r;a=!1,null===n&&(n=Function.prototype);var s=Object.getOwnPropertyDescriptor(n,i);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var d=Object.getPrototypeOf(n);if(null===d)return;e=d,t=i,r=o,a=!0,s=d=void 0}}(Object.getPrototypeOf(i.prototype),"constructor",this).call(this),this.FRAGMENT_INFO_LOADING_COMPLETED="fragmentInfoLoadingCompleted"}var o=new(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,((a=n)&&a.__esModule?a:{default:a}).default),i);r.default=o,t.exports=r.default},{2:2}],4:[function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var T=a(e(3)),b=a(e(5)),S=a(e(15));function n(e){e=e||{};var n=this.context,t=void 0,i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,u=void 0,f=void 0,c=void 0,p=e.streamProcessor,m=e.eventBus,h=e.dashMetrics,_=e.playbackController,g=e.ISOBoxer,v=e.baseURLController,y=e.debug;function A(){if(s){var e=p.getRepresentationController().getCurrentRepresentation(),t=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index],r=t.SegmentTemplate.SegmentTimeline.S_asArray,a=r[r.length-1];i.debug("Last fragment time: "+a.t/t.SegmentTemplate.timescale);var n=function(e,t,r){var a=e.SegmentTemplate.timescale,n=new S.default;return n.mediaType=l,n.type="FragmentInfoSegment",n.startTime=r.t/a,n.duration=r.d/a,n.timescale=a,n.quality=t.index,n.index=c++,n.mediaInfo=p.getMediaInfo(),n.adaptationIndex=t.adaptation.index,n.representationId=t.id,n.url=v.resolve(t.path).url+e.SegmentTemplate.media,n.url=n.url.replace("$Bandwidth$",t.bandwidth),n.url=n.url.replace("$Time$",r.tManifest?r.tManifest:r.t),n.url=n.url.replace("/Fragments(","/FragmentInfo("),n}(t,e,a);(function(e){if(i.debug("Load fragment for time: "+e.startTime),p.getFragmentModel().isFragmentLoadedOrPending(e))return void i.debug("No more fragments");o.executeRequest(e)}).call(this,n)}}function r(e){if(e.streamProcessor===p){var t=e.fragmentInfo.request;if(e.fragmentInfo.response){var r=void 0,a=void 0;i.debug("FragmentInfo loaded: ",t.url),f=f||t.startTime;try{(0,b.default)(n).create({dashMetrics:h,playbackController:_,ISOBoxer:g,eventBus:m,debug:y}).updateSegmentList(e.fragmentInfo,p),a=((new Date).getTime()-u)/1e3,r=t.startTime+t.duration-f,function(e){clearTimeout(d),d=setTimeout(function(){d=null,A()},1e3*e)}(Math.max(0,r-a))}catch(e){i.fatal("Internal error while processing fragment info segment ")}}else i.error("Load error",t.url)}}return t={initialize:function(){s=!1,f=u=null,p.registerExternalController(t),l=p.getType(),o=p.getFragmentModel()},controllerType:"MssFragmentInfoController",start:function(){!0!==s&&(i.debug("Do start"),m.on(T.default.FRAGMENT_INFO_LOADING_COMPLETED,r,t),s=!0,u=(new Date).getTime(),c=0,A())},getType:function(){return l},reset:function(){s&&(i.debug("Do stop"),m.off(T.default.FRAGMENT_INFO_LOADING_COMPLETED,r,t),clearTimeout(d),s=!1,f=u=null),p.unregisterExternalController(t)}},i=y.getLogger(t),t}n.__dashjs_factory_name="MssFragmentInfoController",r.default=dashjs.FactoryMaker.getClassFactory(n),t.exports=r.default},{15:15,3:3,5:5}],5:[function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var D=a(e(13)),I=a(e(9)),O=a(e(12));function n(e){var t,v=void 0,y=void 0,n=(e=e||{}).dashMetrics,i=e.playbackController,A=e.errHandler,T=e.eventBus,b=e.ISOBoxer,r=e.debug;function S(e,t,r,a){var n=a.getRepresentationController().getCurrentRepresentation(),i=a.getIndexHandler(),o=n.adaptation.period.mpd.manifest,s=o.Period_asArray[n.adaptation.period.index].AdaptationSet_asArray[n.adaptation.index],l=s.SegmentTemplate.timescale;if(v=a.getType(),"dynamic"===o.type||o.timeShiftBufferDepth)if(t){var d,u=s.SegmentTemplate.SegmentTimeline.S,f=t.entry,c=void 0,p=void 0,m=null,h=0,_=null;if(0!==f.length&&(d=f[0],!("static"===o.type&&(c=u[0].tManifest?parseFloat(u[0].tManifest):u[0].t,d.fragment_absolute_time>c+o.timeShiftBufferDepth*l)))){if(y.debug("entry - t = ",d.fragment_absolute_time/l),c=u[u.length-1].tManifest?parseFloat(u[u.length-1].tManifest):u[u.length-1].t,y.debug("Last segment - t = ",c/l),d.fragment_absolute_time<=c)return p={start:u[0].t/l,end:r.baseMediaDecodeTime/l+e.duration},void E(e.mediaType,p,a.getStreamInfo().manifestInfo);if(y.debug("Add new segment - t = ",d.fragment_absolute_time/l),(m={}).t=d.fragment_absolute_time,m.d=d.fragment_duration,u[0].tManifest&&(m.t-=parseFloat(u[0].tManifest)-u[0].t,m.tManifest=d.fragment_absolute_time),u.push(m),"static"!==o.type){if(o.timeShiftBufferDepth&&0<o.timeShiftBufferDepth){for(h=(m=u[u.length-1]).t,_=Math.round((h-o.timeShiftBufferDepth*l)/l),m=u[0];Math.round(m.t/l)<_;)y.debug("Remove segment - t = "+m.t/l),u.splice(0,1),m=u[0];p={start:u[0].t/l,end:r.baseMediaDecodeTime/l+e.duration},E(v,p,a.getStreamInfo().manifestInfo)}i.updateRepresentation(n,!0)}else if("video"===v){var g=((m=u[u.length-1]).t+m.d)/l;g>n.adaptation.period.duration&&T.trigger(O.default.MANIFEST_VALIDITY_CHANGED,{sender:this,newDuration:g})}}}else A.error(new D.default(I.default.MSS_NO_TFRF_CODE,I.default.MSS_NO_TFRF_MESSAGE))}function E(e,t,r){var a=n.getCurrentDVRInfo(e);(!a||t.end>a.range.end)&&(y.debug("Update DVR Infos ["+t.start+" - "+t.end+"]"),n.addDVRInfo(e,i.getTime(),r,t))}function C(e,t){var r=8,a=0;for(a=0;a<e.boxes.length;a++){if(e.boxes[a].type===t)return r;r+=e.boxes[a].size}return r}return t={convertFragment:function(e,t){var r=void 0,a=b.parseBuffer(e.response),n=a.fetch("tfhd");n.track_ID=e.request.mediaInfo.index+1;var i=a.fetch("tfdt"),o=a.fetch("traf");null===i&&((i=b.createFullBox("tfdt",o,n)).version=1,i.flags=0,i.baseMediaDecodeTime=Math.floor(e.request.startTime*e.request.timescale));var s=a.fetch("trun"),l=a.fetch("tfxd");l&&(l._parent.boxes.splice(l._parent.boxes.indexOf(l),1),l=null);var d=a.fetch("tfrf");S(e.request,d,i,t),d&&(d._parent.boxes.splice(d._parent.boxes.indexOf(d),1),d=null);var u=a.fetch("sepiff");if(null!==u){u.type="senc",u.usertype=void 0;var f=a.fetch("saio");if(null===f){(f=b.createFullBox("saio",o)).version=0,f.flags=0,f.entry_count=1,f.offset=[0];var c=b.createFullBox("saiz",o);if(c.version=0,c.flags=0,c.sample_count=u.sample_count,c.default_sample_info_size=0,c.sample_info_size=[],2&u.flags)for(r=0;r<u.sample_count;r+=1)c.sample_info_size[r]=10+6*u.entry[r].NumberOfEntries;else c.default_sample_info_size=8}}n.flags&=16777214,n.flags|=131072,s.flags|=1;var p=a.fetch("moof"),m=p.getLength();s.data_offset=m+8;var h=a.fetch("saio");if(null!==h){var _=C(p,"traf"),g=C(o,"senc");h.offset[0]=_+g+16}e.response=a.write()},updateSegmentList:function(e,t){if(!e.response)throw new Error("e.response parameter is missing");var r=b.parseBuffer(e.response),a=r.fetch("tfhd");a.track_ID=e.request.mediaInfo.index+1;var n=r.fetch("tfdt"),i=r.fetch("traf");null===n&&((n=b.createFullBox("tfdt",i,a)).version=1,n.flags=0,n.baseMediaDecodeTime=Math.floor(e.request.startTime*e.request.timescale));var o=r.fetch("tfrf");S(e.request,o,n,t),o&&(o._parent.boxes.splice(o._parent.boxes.indexOf(o),1),o=null)},getType:function(){return v}},y=r.getLogger(t),v="",t}n.__dashjs_factory_name="MssFragmentMoofProcessor",r.default=dashjs.FactoryMaker.getClassFactory(n),t.exports=r.default},{12:12,13:13,9:9}],6:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a,n=e(9),T=(a=n)&&a.__esModule?a:{default:a};function i(e){var c=7,p=8,o=(e=e||{}).constants,s=e.ISOBoxer,l=e.protectionController,d=void 0,u=void 0,m=void 0,f=void 0,h=void 0,_=void 0;function r(e){var t=s.createBox("moov",e);!function(e){var t=s.createFullBox("mvhd",e);t.version=1,t.creation_time=0,t.modification_time=0,t.timescale=h,t.duration=Math.round(d.duration*h),t.rate=1,t.volume=1,t.reserved1=0,t.reserved2=[0,0],t.matrix=[1,0,0,0,1,0,0,0,16384],t.pre_defined=[0,0,0,0,0,0],t.next_track_ID=_+1}(t);var r=s.createBox("trak",t);!function(e){var t=s.createFullBox("tkhd",e);t.version=1,t.flags=7,t.creation_time=0,t.modification_time=0,t.track_ID=_,t.reserved1=0,t.duration=Math.round(d.duration*h),t.reserved2=[0,0],t.layer=0,t.alternate_group=0,t.volume=1,t.reserved3=0,t.matrix=[1,0,0,0,1,0,0,0,16384],t.width=m.width,t.height=m.height}(r);var a=s.createBox("mdia",r);!function(e){var t=s.createFullBox("mdhd",e);t.version=1,t.creation_time=0,t.modification_time=0,t.timescale=h,t.duration=Math.round(d.duration*h),t.language=u.lang||"und",t.pre_defined=0}(a),function(e){var t=s.createFullBox("hdlr",e);switch(t.pre_defined=0,u.type){case o.VIDEO:t.handler_type="vide";break;case o.AUDIO:t.handler_type="soun";break;default:t.handler_type="meta"}t.name=m.id,t.reserved=[0,0,0]}(a);var n=s.createBox("minf",a);switch(u.type){case o.VIDEO:!function(e){var t=s.createFullBox("vmhd",e);t.flags=1,t.graphicsmode=0,t.opcolor=[0,0,0]}(n);break;case o.AUDIO:!function(e){var t=s.createFullBox("smhd",e);t.flags=1,t.balance=0,t.reserved=0}(n)}!function(e){var t=s.createFullBox("dref",e);t.entry_count=1,t.entries=[];var r=s.createFullBox("url ",t,!1);r.location="",r.flags=1,t.entries.push(r)}(s.createBox("dinf",n));var i=s.createBox("stbl",n);s.createFullBox("stts",i)._data=[0,0,0,0,0,0,0,0],s.createFullBox("stsc",i)._data=[0,0,0,0,0,0,0,0],s.createFullBox("stco",i)._data=[0,0,0,0,0,0,0,0],s.createFullBox("stsz",i)._data=[0,0,0,0,0,0,0,0,0,0,0,0],function(e){var t=s.createFullBox("stsd",e);switch(t.entries=[],u.type){case o.VIDEO:case o.AUDIO:t.entries.push(function(e){var t=m.codecs.substring(0,m.codecs.indexOf("."));switch(t){case"avc1":return function(e,t){var r=void 0;r=f?s.createBox("encv",e,!1):s.createBox("avc1",e,!1);if(r.reserved1=[0,0,0,0,0,0],r.data_reference_index=1,r.pre_defined1=0,r.reserved2=0,r.pre_defined2=[0,0,0],r.height=m.height,r.width=m.width,r.horizresolution=72,r.vertresolution=72,r.reserved3=0,r.frame_count=1,r.compressorname=[10,65,86,67,32,67,111,100,105,110,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r.depth=24,r.pre_defined3=65535,r.config=function(){for(var e=null,t=15,r=[],a=[],n=0,i=0,o=0,s=m.codecPrivateData.split("00000001").slice(1),l=void 0,d=0;d<s.length;d++)switch(l=A(s[d]),31&l[0]){case c:r.push(l),t+=l.length+2;break;case p:a.push(l),t+=l.length+2}0<r.length&&(n=r[0][1],o=r[0][2],i=r[0][3]);e=new Uint8Array(t);var u=0;e[u++]=(4278190080&t)>>24,e[u++]=(16711680&t)>>16,e[u++]=(65280&t)>>8,e[u++]=255&t,e.set([97,118,99,67],u),u+=4,e[u++]=1,e[u++]=n,e[u++]=o,e[u++]=i,e[u++]=255,e[u++]=224|r.length;for(var f=0;f<r.length;f++)e[u++]=(65280&r[f].length)>>8,e[u++]=255&r[f].length,e.set(r[f],u),u+=r[f].length;e[u++]=a.length;for(f=0;f<a.length;f++)e[u++]=(65280&a[f].length)>>8,e[u++]=255&a[f].length,e.set(a[f],u),u+=a[f].length;return e}(),f){var a=s.createBox("sinf",r);g(a,t),v(a),y(a)}return r}(e,t);case"mp4a":return function(e,t){var r=void 0;r=f?s.createBox("enca",e,!1):s.createBox("mp4a",e,!1);if(r.reserved1=[0,0,0,0,0,0],r.data_reference_index=1,r.reserved2=[0,0],r.channelcount=m.audioChannels,r.samplesize=16,r.pre_defined=0,r.reserved_3=0,r.samplerate=m.audioSamplingRate<<16,r.esds=function(){var e=A(m.codecPrivateData),t=34+e.length,r=new Uint8Array(t),a=0;return r[a++]=(4278190080&t)>>24,r[a++]=(16711680&t)>>16,r[a++]=(65280&t)>>8,r[a++]=255&t,r.set([101,115,100,115],a),a+=4,r.set([0,0,0,0],a),a+=4,r[a++]=3,r[a++]=20+e.length,r[a++]=(65280&_)>>8,r[a++]=255&_,r[a++]=0,r[a++]=4,r[a++]=15+e.length,r[a++]=64,r[a]=20,r[a]|=0,r[a++]|=1,r[a++]=255,r[a++]=255,r[a++]=255,r[a++]=(4278190080&m.bandwidth)>>24,r[a++]=(16711680&m.bandwidth)>>16,r[a++]=(65280&m.bandwidth)>>8,r[a++]=255&m.bandwidth,r[a++]=(4278190080&m.bandwidth)>>24,r[a++]=(16711680&m.bandwidth)>>16,r[a++]=(65280&m.bandwidth)>>8,r[a++]=255&m.bandwidth,r[a++]=5,r[a++]=e.length,r.set(e,a),r}(),f){var a=s.createBox("sinf",r);g(a,t),v(a),y(a)}return r}(e,t);default:throw{code:T.default.MSS_UNSUPPORTED_CODEC_CODE,message:T.default.MSS_UNSUPPORTED_CODEC_MESSAGE,data:{codec:t}}}}(t))}t.entry_count=t.entries.length}(i),function(e){var t=s.createFullBox("trex",e);t.track_ID=_,t.default_sample_description_index=1,t.default_sample_duration=0,t.default_sample_size=0,t.default_sample_flags=0}(s.createBox("mvex",t)),f&&l&&function(e,t){var r=void 0,a=void 0,n=void 0,i=void 0;for(n=0;n<t.length;n+=1)(r=t[n].initData)&&(i=s.parseBuffer(r),(a=i.fetch("pssh"))&&s.Utils.appendBox(e,a))}(t,l.getSupportedKeySystemsFromContentProtection(f))}function g(e,t){s.createBox("frma",e).data_format=function(e){var t=0,r=void 0;for(r=0;r<e.length;r+=1)t|=e.charCodeAt(r)<<8*(e.length-r-1);return t}(t)}function v(e){var t=s.createFullBox("schm",e);t.flags=0,t.version=0,t.scheme_type=1667591779,t.scheme_version=65536}function y(e){!function(e){var t=s.createFullBox("tenc",e);t.flags=0,t.version=0,t.default_IsEncrypted=1,t.default_IV_size=8,t.default_KID=f&&0<f.length&&f[0]["cenc:default_KID"]?f[0]["cenc:default_KID"]:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}(s.createBox("schi",e))}function A(e){var t=new Uint8Array(e.length/2),r=void 0;for(r=0;r<e.length/2;r+=1)t[r]=parseInt(""+e[2*r]+e[2*r+1],16);return t}return{generateMoov:function(e){if(e&&e.adaptation){var t=void 0;return u=(m=e).adaptation,d=u.period,_=u.index+1,f=d.mpd.manifest.Period_asArray[d.index].AdaptationSet_asArray[u.index].ContentProtection,h=d.mpd.manifest.Period_asArray[d.index].AdaptationSet_asArray[u.index].SegmentTemplate.timescale,function(e){var t=s.createBox("ftyp",e);t.major_brand="iso6",t.minor_version=1,t.compatible_brands=[],t.compatible_brands[0]="isom",t.compatible_brands[1]="iso6",t.compatible_brands[2]="msdh"}(t=s.createFile()),r(t),t.write()}}}}i.__dashjs_factory_name="MssFragmentMoovProcessor",r.default=dashjs.FactoryMaker.getClassFactory(i),t.exports=r.default},{9:9}],7:[function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var f=a(e(5)),c=a(e(6)),p=a(e(3));function n(e,r){return e.length===r.length&&e.every(function(e,t){return e===r[t]})}function m(){this._procFullBox(),1&this.flags&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("entry_count","uint",32),this._procFieldArray("offset",this.entry_count,"uint",1===this.version?64:32)}function h(){this._procFullBox(),1&this.flags&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("default_sample_info_size","uint",8),this._procField("sample_count","uint",32),0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)}function _(){this._procFullBox(),this._procField("sample_count","uint",32),1&this.flags&&this._procField("IV_size","uint",8),this._procEntries("entry",this.sample_count,function(e){this._procEntryField(e,"InitializationVector","data",8),2&this.flags&&(this._procEntryField(e,"NumberOfEntries","uint",16),this._procSubEntries(e,"clearAndCryptedData",e.NumberOfEntries,function(e){this._procEntryField(e,"BytesOfClearData","uint",16),this._procEntryField(e,"BytesOfEncryptedData","uint",32)}))})}function g(){n(this.usertype,[109,29,155,5,66,213,68,230,128,226,20,29,175,247,87,178])&&(this._procFullBox(),this._parsing&&(this.type="tfxd"),this._procField("fragment_absolute_time","uint",1===this.version?64:32),this._procField("fragment_duration","uint",1===this.version?64:32)),n(this.usertype,[212,128,126,242,202,57,70,149,142,84,38,203,158,70,167,159])&&(this._procFullBox(),this._parsing&&(this.type="tfrf"),this._procField("fragment_count","uint",8),this._procEntries("entry",this.fragment_count,function(e){this._procEntryField(e,"fragment_absolute_time","uint",1===this.version?64:32),this._procEntryField(e,"fragment_duration","uint",1===this.version?64:32)})),n(this.usertype,[162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244])&&(this._parsing&&(this.type="sepiff"),_.call(this))}function i(e){e=e||{};var t,r=this.context,a=e.dashMetrics,n=e.playbackController,i=e.eventBus,o=e.protectionController,s=e.ISOBoxer,l=e.debug,d=void 0,u=void 0;return t={generateMoov:function(e){return d.generateMoov(e)},processFragment:function(e,t){if(!e||!e.request||!e.response)throw new Error("e parameter is missing or malformed");var r=e.request;"MediaSegment"===r.type?u.convertFragment(e,t):"FragmentInfoSegment"===r.type&&(i.trigger(p.default.FRAGMENT_INFO_LOADING_COMPLETED,{fragmentInfo:e,streamProcessor:t}),e.sender=null)}},s.addBoxProcessor("uuid",g),s.addBoxProcessor("saio",m),s.addBoxProcessor("saiz",h),s.addBoxProcessor("senc",_),d=(0,c.default)(r).create({protectionController:o,constants:e.constants,ISOBoxer:s}),u=(0,f.default)(r).create({dashMetrics:a,playbackController:n,ISOBoxer:s,eventBus:i,debug:l,errHandler:e.errHandler}),t}i.__dashjs_factory_name="MssFragmentProcessor",r.default=dashjs.FactoryMaker.getClassFactory(i),t.exports=r.default},{3:3,5:5,6:6}],8:[function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var g=a(e(14)),v=a(e(15)),y=a(e(4)),A=a(e(7)),T=a(e(11)),n=a(e(9)),b=a(e(13));function i(i){i=i||{};var o=this.context,s=i.eventBus,l=i.events,d=i.constants,u=i.initSegmentType,f=i.dashMetrics,c=i.playbackController,e=i.protectionController,p=(0,A.default)(o).create({dashMetrics:f,playbackController:c,protectionController:e,eventBus:s,constants:d,ISOBoxer:i.ISOBoxer,debug:i.debug,errHandler:i.errHandler}),t=void 0;function r(e){var t=e.sender.getStreamProcessor(),r=new v.default,a=t.getRepresentationController().getCurrentRepresentation();r.mediaType=a.adaptation.type,r.type=u,r.range=a.range,r.quality=a.index,r.mediaInfo=t.getMediaInfo(),r.representationId=a.id;var n=function(e,t,r){var a=new g.default;return a.streamId=t,a.mediaInfo=e.mediaInfo,a.segmentType=e.type,a.start=e.startTime,a.duration=e.duration,a.end=a.start+a.duration,a.index=e.index,a.quality=e.quality,a.representationId=e.representationId,a.endFragment=r,a}(r,t.getStreamInfo().id,e.type!==l.FRAGMENT_LOADING_PROGRESS);try{n.bytes=p.generateMoov(a)}catch(e){i.errHandler.error(new b.default(e.code,e.message,e.data))}s.trigger(l.INIT_FRAGMENT_LOADED,{chunk:n,fragmentModel:t.getFragmentModel()}),e.sender=null}function a(){var e=c.getStreamController();e&&e.getActiveStreamProcessors().forEach(function(e){if(e.getType()===d.VIDEO||e.getType()===d.AUDIO||e.getType()===d.FRAGMENTED_TEXT){var t=void 0,r=!1,a=e.getExternalControllers();for(t=0;t<a.length;t++)a[t].controllerType&&"MssFragmentInfoController"===a[t].controllerType&&(r=!0);if(!r){var n=(0,y.default)(o).create({streamProcessor:e,eventBus:s,dashMetrics:f,playbackController:c,baseURLController:i.baseURLController,ISOBoxer:i.ISOBoxer,debug:i.debug});n.initialize(),n.start()}}})}function n(e){if(!e.error){var t=e.sender.getStreamProcessor();p.processFragment(e,t);var r=t.getStreamInfo();r.manifestInfo.isDynamic||r.manifestInfo.DVRWindowSize===1/0||a()}}function m(){c.getIsDynamic()&&0!==c.getTime()&&a()}function h(){c.getIsDynamic()&&0!==c.getTime()&&a()}function _(e){e&&e.data&&(e.data=e.data.replace(/http:\/\/www.w3.org\/2006\/10\/ttaf1/gi,"http://www.w3.org/ns/ttml"))}return t={reset:function(){s.off(l.INIT_REQUESTED,r,this),s.off(l.PLAYBACK_PAUSED,m,this),s.off(l.PLAYBACK_SEEK_ASKED,h,this),s.off(l.FRAGMENT_LOADING_COMPLETED,n,this),s.off(l.TTML_TO_PARSE,_,this)},createMssParser:function(){return(0,T.default)(o).create(i)},registerEvents:function(){s.on(l.INIT_REQUESTED,r,t,dashjs.FactoryMaker.getSingletonFactoryByName(s.getClassName()).EVENT_PRIORITY_HIGH),s.on(l.PLAYBACK_PAUSED,m,t,dashjs.FactoryMaker.getSingletonFactoryByName(s.getClassName()).EVENT_PRIORITY_HIGH),s.on(l.PLAYBACK_SEEK_ASKED,h,t,dashjs.FactoryMaker.getSingletonFactoryByName(s.getClassName()).EVENT_PRIORITY_HIGH),s.on(l.FRAGMENT_LOADING_COMPLETED,n,t,dashjs.FactoryMaker.getSingletonFactoryByName(s.getClassName()).EVENT_PRIORITY_HIGH),s.on(l.TTML_TO_PARSE,_,t)}}}i.__dashjs_factory_name="MssHandler";var o=dashjs.FactoryMaker.getClassFactory(i);o.errors=n.default,dashjs.FactoryMaker.updateClassFactory(i.__dashjs_factory_name,o),r.default=o,t.exports=r.default},{11:11,13:13,14:14,15:15,4:4,7:7,9:9}],9:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a,n=e(1);function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){for(var a=!0;a;){var n=e,i=t,o=r;a=!1,null===n&&(n=Function.prototype);var s=Object.getOwnPropertyDescriptor(n,i);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var d=Object.getPrototypeOf(n);if(null===d)return;e=d,t=i,r=o,a=!0,s=d=void 0}}(Object.getPrototypeOf(i.prototype),"constructor",this).call(this),this.MSS_NO_TFRF_CODE=200,this.MSS_UNSUPPORTED_CODEC_CODE=201,this.MSS_NO_TFRF_MESSAGE="Missing tfrf in live media segment",this.MSS_UNSUPPORTED_CODEC_MESSAGE="Unsupported codec"}var o=new(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,((a=n)&&a.__esModule?a:{default:a}).default),i);r.default=o,t.exports=r.default},{1:1}],10:[function(o,e,s){(function(e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var t,r=o(8),a=(t=r)&&t.__esModule?t:{default:t},n="undefined"!=typeof window&&window||e,i=n.dashjs;(i=i||(n.dashjs={})).MssHandler=a.default,s.default=i,s.MssHandler=a.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{8:8}],11:[function(e,t,r){"use strict";function a(e){var t,T=(e=e||{}).BASE64,r=e.debug,i=e.constants,b=e.manifestModel,S=1e7,o=["AAC","AACL","AVC1","H264","TTML","DFXP"],u={CAPT:"main",SUBT:"alternate",DESC:"main"},f={DESC:"2"},l={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12},c={video:"video/mp4",audio:"audio/mp4",text:"application/mp4"},s=void 0;function E(e,t){var r,a={},n=[],i=void 0,o=void 0,s=void 0;if(a.id=e.getAttribute("Name")?e.getAttribute("Name"):e.getAttribute("Type"),a.contentType=e.getAttribute("Type"),a.lang=e.getAttribute("Language")||"und",a.mimeType=c[a.contentType],a.subType=e.getAttribute("Subtype"),a.maxWidth=e.getAttribute("MaxWidth"),a.maxHeight=e.getAttribute("MaxHeight"),a.subType){if(u[a.subType]){var l={schemeIdUri:"urn:mpeg:dash:role:2011",value:u[a.subType]};a.Role=l,a.Role_asArray=[l]}if(f[a.subType]){var d={schemeIdUri:"urn:tva:metadata:cs:AudioPurposeCS:2007",value:f[a.subType]};a.Accessibility=d,a.Accessibility_asArray=[d]}}for(r=function(e,t){var r={},a=void 0,n=void 0,i=void 0;return i=e.getAttribute("Url"),a=(a=i?i.replace("{bitrate}","$Bandwidth$"):null)?a.replace("{start time}","$Time$"):null,n=(n=e.getAttribute("TimeScale"))?parseFloat(n):t,r.media=a,r.timescale=n,r.SegmentTimeline=function(e,t){var r={},a=e.getElementsByTagName("c"),n=[],i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,u=void 0,f=0;for(l=0;l<a.length;l++)if(i={},s=a[l].getAttribute("t"),i.tManifest=parseFloat(s),i.t=parseFloat(s),i.d=parseFloat(a[l].getAttribute("d")),0!==l||i.t||(i.t=0),0<l&&((o=n[n.length-1]).d||(o.tManifest?o.d=parseFloat(s)-parseFloat(o.tManifest):o.d=i.t-o.t,f+=o.d),i.t||(o.tManifest?(i.tManifest=parseFloat(o.tManifest)+o.d,i.t=parseFloat(i.tManifest)):i.t=o.t+o.d)),i.d&&(f+=i.d),n.push(i),u=parseFloat(a[l].getAttribute("r")))for(d=0;d<u-1;d++)o=n[n.length-1],(i={}).t=o.t+o.d,i.d=o.d,o.tManifest&&(i.tManifest=parseFloat(o.tManifest)+o.d),f+=i.d,n.push(i);return r.S=n,r.S_asArray=n,r.duration=f/t,r}(e,r.timescale),r}(e,t),i=e.getElementsByTagName("QualityLevel"),s=0;s<i.length;s++)i[s].BaseURL=a.BaseURL,i[s].mimeType=a.mimeType,i[s].Id=a.id+"_"+i[s].getAttribute("Index"),null!==(o=p(i[s],e))&&(o.SegmentTemplate=r,n.push(o));return 0===n.length?null:(a.Representation=1<n.length?n:n[0],a.Representation_asArray=n,(a.SegmentTemplate=r).SegmentTimeline.S_asArray,a)}function p(e,t){var r={},a=t.getAttribute("Type"),n=null;if(r.id=e.Id,r.bandwidth=parseInt(e.getAttribute("Bitrate"),10),r.mimeType=e.mimeType,r.width=parseInt(e.getAttribute("MaxWidth"),10),r.height=parseInt(e.getAttribute("MaxHeight"),10),null!==(n=e.getAttribute("FourCC"))&&""!==n||(n=t.getAttribute("FourCC")),null===n||""===n)if("audio"===a)n="AAC";else if("video"===a)return s.debug('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null;return-1===o.indexOf(n.toUpperCase())?(s.warn("Codec not supported: "+n),null):("H264"===n||"AVC1"===n?r.codecs=function(e){var t,r=e.getAttribute("CodecPrivateData").toString();return t=/00000001[0-9]7/.exec(r),"avc1."+(t&&t[0]?r.substr(r.indexOf(t[0])+10,6):void 0)}(e):0<=n.indexOf("AAC")?(r.codecs=function(e,t){var r=parseInt(e.getAttribute("SamplingRate"),10),a=e.getAttribute("CodecPrivateData").toString(),n=0,i=void 0,o=void 0,s=void 0;"AACH"===t&&(n=5);void 0===a||""===a?(n=2,o=l[r],a=(a=""+("AACH"===t?(n=5,a=new Uint8Array(4),s=l[2*r],a[0]=n<<3|o>>1,a[1]=o<<7|e.Channels<<3|s>>1,a[2]=s<<7|8,a[3]=0,(i=new Uint16Array(2))[0]=(a[0]<<8)+a[1],i[1]=(a[2]<<8)+a[3],i[0].toString(16),i[0].toString(16)+i[1].toString(16)):((a=new Uint8Array(2))[0]=n<<3|o>>1,a[1]=o<<7|parseInt(e.getAttribute("Channels"),10)<<3,(i=new Uint16Array(1))[0]=(a[0]<<8)+a[1],i[0].toString(16)))).toUpperCase(),e.setAttribute("CodecPrivateData",a)):0===n&&(n=(248&parseInt(a.substr(0,2),16))>>3);return"mp4a.40."+n}(e,n),r.audioSamplingRate=parseInt(e.getAttribute("SamplingRate"),10),r.audioChannels=parseInt(e.getAttribute("Channels"),10)):(n.indexOf("TTML")||n.indexOf("DFXP"))&&(r.codecs=i.STPP),r.codecPrivateData=""+e.getAttribute("CodecPrivateData"),r.BaseURL=e.BaseURL,r)}function C(e){var t=void 0,r=void 0;return(t=function(e){var t=void 0,r=void 0,a=void 0,n=0;(e[n+3]<<24)+(e[n+2]<<16)+(e[n+1]<<8)+e[n],(e[(n+=4)+1]<<8)+e[n],n+=2;for(;n<e.length;)if(t=(e[n+1]<<8)+e[n],n+=2,1===t)return r=(e[n+1]<<8)+e[n],n+=2,(a=new Uint8Array(r)).set(e.subarray(n,n+r)),a;return null}(T.decodeArray(e.firstChild.data)))&&(t=new Uint16Array(t.buffer),t=String.fromCharCode.apply(null,t),r=(new DOMParser).parseFromString(t,"application/xml").querySelector("KID").textContent,function(e){a(e,0,3),a(e,1,2),a(e,4,5),a(e,6,7)}(r=T.decodeArray(r))),r}function a(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function d(e,t){var r,a={},n=[],i=e.getElementsByTagName("SmoothStreamingMedia")[0],o=e.getElementsByTagName("Protection")[0],s=null,l=void 0,d=void 0,u=void 0,f=void 0,c=void 0,p=void 0,m=void 0,h=void 0,_=void 0;a.protocol="MSS",a.profiles="urn:mpeg:dash:profile:isoff-live:2011",a.type="TRUE"===i.getAttribute("IsLive")?"dynamic":"static",r=i.getAttribute("TimeScale"),a.timescale=r?parseFloat(r):S;var g=parseFloat(i.getAttribute("DVRWindowLength"));0===g&&"TRUE"===i.getAttribute("CanSeek")&&(g=1/0),0<g&&(a.timeShiftBufferDepth=g/a.timescale);var v=parseFloat(i.getAttribute("Duration"));for(a.mediaPresentationDuration=0===v?1/0:v/a.timescale,a.minBufferTime=2,a.ttmlTimeIsRelative=!0,"dynamic"===a.type&&0<v&&(a.type="static",a.timeShiftBufferDepth=v/a.timescale),"dynamic"===a.type&&a.timeShiftBufferDepth<1/0&&(a.refreshManifestOnSwitchTrack=!0,a.doNotUpdateDVRWindowOnBufferUpdated=!0,a.ignorePostponeTimePeriod=!0),a.Period=function(e,t){var r,a={},n=void 0;a.AdaptationSet_asArray=[],r=e.getElementsByTagName("StreamIndex");for(var i=0;i<r.length;i++)null!==(n=E(r[i],t))&&a.AdaptationSet_asArray.push(n);return 0<a.AdaptationSet_asArray.length&&(a.AdaptationSet=1<a.AdaptationSet_asArray.length?a.AdaptationSet_asArray:a.AdaptationSet_asArray[0]),a}(i,a.timescale),a.Period_asArray=[a.Period],void((l=a.Period).start=0)!==o&&((s=e.getElementsByTagName("ProtectionHeader")[0]).firstChild.data=s.firstChild.data.replace(/\n|\r/g,""),f=C(s),(u=function(e){var t={__text:e.firstChild.data,__prefix:"mspr"};return{schemeIdUri:"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95",value:"com.microsoft.playready",pro:t,pro_asArray:t}}(s))["cenc:default_KID"]=f,n.push(u),(u=function(e){var t={schemeIdUri:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",value:"com.widevine.alpha"};if(!e)return t;var r=new Uint8Array(2+e.length);r[0]=18,r[1]=16,r.set(e,2);var a=32+r.length,n=new Uint8Array(a),i=0;return n[i++]=(4278190080&a)>>24,n[i++]=(16711680&a)>>16,n[i++]=(65280&a)>>8,n[i++]=255&a,n.set([112,115,115,104,0,0,0,0],i),i+=8,n.set([237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237],i),i+=16,n[i++]=(4278190080&r.length)>>24,n[i++]=(16711680&r.length)>>16,n[i++]=(65280&r.length)>>8,n[i++]=255&r.length,n.set(r,i),n=String.fromCharCode.apply(null,n),n=T.encodeASCII(n),t.pssh={__text:n},t}(f))["cenc:default_KID"]=f,n.push(u),a.ContentProtection=n,a.ContentProtection_asArray=n),d=l.AdaptationSet_asArray,h=0;h<d.length;h+=1)if(d[h].SegmentTemplate.initialization="$Bandwidth$",void 0!==a.ContentProtection&&(d[h].ContentProtection=a.ContentProtection,d[h].ContentProtection_asArray=a.ContentProtection_asArray),"video"===d[h].contentType&&(a.minBufferTime=d[h].SegmentTemplate.SegmentTimeline.S_asArray[0].d/d[h].SegmentTemplate.timescale*2,"dynamic"===a.type)){var y=((m=d[h].SegmentTemplate.SegmentTimeline.S_asArray)[m.length-1].t+m[m.length-1].d)/d[h].SegmentTemplate.timescale*1e3;a.availabilityStartTime=new Date(t.getTime()-y),0<a.timeShiftBufferDepth&&a.timeShiftBufferDepth!==1/0&&a.timeShiftBufferDepth>d[h].SegmentTemplate.SegmentTimeline.duration&&(a.timeShiftBufferDepth=d[h].SegmentTemplate.SegmentTimeline.duration)}if(a.timeShiftBufferDepth<a.minBufferTime&&(a.minBufferTime=a.timeShiftBufferDepth),delete a.ContentProtection,delete a.ContentProtection_asArray,"static"===a.type){var A=b.getValue();if(A&&A.timestampOffset)c=A.timestampOffset;else for(h=0;h<d.length;h++)"audio"!==d[h].contentType&&"video"!==d[h].contentType||(p=(m=d[h].SegmentTemplate.SegmentTimeline.S_asArray)[0].t/d[h].SegmentTemplate.timescale,void 0===c&&(c=p),c=Math.min(c,p),a.mediaPresentationDuration=Math.min(a.mediaPresentationDuration,d[h].SegmentTemplate.SegmentTimeline.duration));if(0<c){for(a.timestampOffset=c,h=0;h<d.length;h++){for(m=d[h].SegmentTemplate.SegmentTimeline.S_asArray,_=0;_<m.length;_++)m[_].tManifest||(m[_].tManifest=m[_].t),m[_].t-=c*d[h].SegmentTemplate.timescale;"audio"!==d[h].contentType&&"video"!==d[h].contentType||(l.start=Math.max(m[0].t,l.start),d[h].SegmentTemplate.presentationTimeOffset=l.start)}l.start/=a.timescale}}return a.mediaPresentationDuration=Math.floor(1e3*a.mediaPresentationDuration)/1e3,l.duration=a.mediaPresentationDuration,a}return t={parse:function(e){var t,r,a=window.performance.now();t=function(e){var t=null;if(window.DOMParser&&0<(t=(new window.DOMParser).parseFromString(e,"text/xml")).getElementsByTagName("parsererror").length)throw new Error("parsing the manifest failed");return t}(e);var n=window.performance.now();if(null===t)return null;r=d(t,new Date);var i=window.performance.now();return s.info("Parsing complete: (xmlParsing: "+(n-a).toPrecision(3)+"ms, mss2dash: "+(i-n).toPrecision(3)+"ms, total: "+((i-a)/1e3).toPrecision(3)+"s)"),r},getMatchers:function(){return null},getIron:function(){return null}},s=r.getLogger(t),e.mediaPlayerModel,t}Object.defineProperty(r,"__esModule",{value:!0}),a.__dashjs_factory_name="MssParser",r.default=dashjs.FactoryMaker.getClassFactory(a),t.exports=r.default},{}],12:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a,n=e(2);function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){for(var a=!0;a;){var n=e,i=t,o=r;a=!1,null===n&&(n=Function.prototype);var s=Object.getOwnPropertyDescriptor(n,i);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var d=Object.getPrototypeOf(n);if(null===d)return;e=d,t=i,r=o,a=!0,s=d=void 0}}(Object.getPrototypeOf(i.prototype),"constructor",this).call(this),this.AST_IN_FUTURE="astInFuture",this.BUFFER_EMPTY="bufferStalled",this.BUFFER_LOADED="bufferLoaded",this.BUFFER_LEVEL_STATE_CHANGED="bufferStateChanged",this.ERROR="error",this.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",this.FRAGMENT_LOADING_PROGRESS="fragmentLoadingProgress",this.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",this.FRAGMENT_LOADING_ABANDONED="fragmentLoadingAbandoned",this.LOG="log",this.MANIFEST_LOADED="manifestLoaded",this.METRICS_CHANGED="metricsChanged",this.METRIC_CHANGED="metricChanged",this.METRIC_ADDED="metricAdded",this.METRIC_UPDATED="metricUpdated",this.PERIOD_SWITCH_COMPLETED="periodSwitchCompleted",this.PERIOD_SWITCH_STARTED="periodSwitchStarted",this.QUALITY_CHANGE_REQUESTED="qualityChangeRequested",this.QUALITY_CHANGE_RENDERED="qualityChangeRendered",this.TRACK_CHANGE_RENDERED="trackChangeRendered",this.SOURCE_INITIALIZED="sourceInitialized",this.STREAM_INITIALIZED="streamInitialized",this.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",this.TEXT_TRACKS_ADDED="allTextTracksAdded",this.TEXT_TRACK_ADDED="textTrackAdded",this.TTML_PARSED="ttmlParsed",this.TTML_TO_PARSE="ttmlToParse",this.CAPTION_RENDERED="captionRendered",this.CAPTION_CONTAINER_RESIZE="captionContainerResize",this.CAN_PLAY="canPlay",this.PLAYBACK_ENDED="playbackEnded",this.PLAYBACK_ERROR="playbackError",this.PLAYBACK_NOT_ALLOWED="playbackNotAllowed",this.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",this.PLAYBACK_PAUSED="playbackPaused",this.PLAYBACK_PLAYING="playbackPlaying",this.PLAYBACK_PROGRESS="playbackProgress",this.PLAYBACK_RATE_CHANGED="playbackRateChanged",this.PLAYBACK_SEEKED="playbackSeeked",this.PLAYBACK_SEEKING="playbackSeeking",this.PLAYBACK_SEEK_ASKED="playbackSeekAsked",this.PLAYBACK_STALLED="playbackStalled",this.PLAYBACK_STARTED="playbackStarted",this.PLAYBACK_TIME_UPDATED="playbackTimeUpdated",this.PLAYBACK_WAITING="playbackWaiting",this.MANIFEST_VALIDITY_CHANGED="manifestValidityChanged"}var o=new(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,((a=n)&&a.__esModule?a:{default:a}).default),i);r.default=o,t.exports=r.default},{2:2}],13:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.default=function e(t,r,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.code=t||null,this.message=r||null,this.data=a||null},t.exports=r.default},{}],14:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.streamId=null,this.mediaInfo=null,this.segmentType=null,this.quality=NaN,this.index=NaN,this.bytes=null,this.start=NaN,this.end=NaN,this.duration=NaN,this.representationId=null,this.endFragment=null},t.exports=r.default},{}],15:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.action=a.ACTION_DOWNLOAD,this.startTime=NaN,this.mediaType=null,this.mediaInfo=null,this.type=null,this.duration=NaN,this.timescale=NaN,this.range=null,this.url=null,this.serviceLocation=null,this.requestStartDate=null,this.firstByteDate=null,this.requestEndDate=null,this.quality=NaN,this.index=NaN,this.availabilityStartTime=null,this.availabilityEndTime=null,this.wallStartTime=null,this.bytesLoaded=NaN,this.bytesTotal=NaN,this.delayLoadingTime=NaN,this.responseType="arraybuffer",this.representationId=null}a.ACTION_DOWNLOAD="download",a.ACTION_COMPLETE="complete",r.default=a,t.exports=r.default},{}]},{},[10]);
//# sourceMappingURL=dash.mss.min.js.map