mpd-parser
Advanced tools
Comparing version 0.15.4 to 0.16.0
@@ -0,3 +1,27 @@ | ||
<a name="0.16.0"></a> | ||
# [0.16.0](https://github.com/videojs/mpd-parser/compare/v0.15.4...v0.16.0) (2021-03-26) | ||
### Features | ||
* add a binary to convert mpd to m3u8 json in node ([#129](https://github.com/videojs/mpd-parser/issues/129)) ([608aa9d](https://github.com/videojs/mpd-parser/commit/608aa9d)) | ||
* expose presentationTimeOffset on segments that have it ([#81](https://github.com/videojs/mpd-parser/issues/81)) ([8b58b39](https://github.com/videojs/mpd-parser/commit/8b58b39)) | ||
* parse Label element and use as m3u8 group label ([#113](https://github.com/videojs/mpd-parser/issues/113)) ([5dde0e9](https://github.com/videojs/mpd-parser/commit/5dde0e9)) | ||
### Bug Fixes | ||
* bump xmldom to prevent npm security issue ([#122](https://github.com/videojs/mpd-parser/issues/122)) ([e132e40](https://github.com/videojs/mpd-parser/commit/e132e40)) | ||
* support multiple audio/subtitle playlists and export generateSidxKey ([#123](https://github.com/videojs/mpd-parser/issues/123)) ([f7105d8](https://github.com/videojs/mpd-parser/commit/f7105d8)) | ||
### Chores | ||
* fix publish, add bin to files, update vjsverify ([cb4d772](https://github.com/videojs/mpd-parser/commit/cb4d772)) | ||
### Documentation | ||
* better explain how to update the JS manifest files ([#130](https://github.com/videojs/mpd-parser/issues/130)) ([21aa91c](https://github.com/videojs/mpd-parser/commit/21aa91c)) | ||
* update usage example in README ([#127](https://github.com/videojs/mpd-parser/issues/127)) ([f0da2cc](https://github.com/videojs/mpd-parser/commit/f0da2cc)) | ||
<a name="0.15.4"></a> | ||
## [0.15.4](https://github.com/videojs/mpd-parser/compare/v0.15.3...v0.15.4) (2021-02-24) | ||
An accidental republish of 0.15.3 with no changes. | ||
@@ -4,0 +28,0 @@ <a name="0.15.3"></a> |
@@ -19,2 +19,6 @@ # CONTRIBUTING | ||
#### Updating test expecations | ||
You can regenerate the JS manifest files by running `mpd-to-m3u8-json` binary (or via the web page) but you'll need to update the `pssh` properties to be converted into a `new Uint8Array`. | ||
### Running Tests | ||
@@ -21,0 +25,0 @@ |
@@ -1,2 +0,2 @@ | ||
/*! @name mpd-parser @version 0.15.4 @license Apache-2.0 */ | ||
/*! @name mpd-parser @version 0.16.0 @license Apache-2.0 */ | ||
import resolveUrl from '@videojs/vhs-utils/es/resolve-url'; | ||
@@ -7,3 +7,3 @@ import window from 'global/window'; | ||
var version = "0.15.4"; | ||
var version = "0.16.0"; | ||
@@ -374,3 +374,3 @@ var isObject = function isObject(obj) { | ||
var addSegmentsToPlaylist = function addSegmentsToPlaylist(playlist, sidx, baseUrl) { | ||
var addSidxSegmentsToPlaylist = function addSidxSegmentsToPlaylist(playlist, sidx, baseUrl) { | ||
// Retain init segment information | ||
@@ -428,2 +428,6 @@ var initSegment = playlist.sidx.map ? playlist.sidx.map : null; // Retain source duration from initial master manifest parsing | ||
var generateSidxKey = function generateSidxKey(sidx) { | ||
return sidx && sidx.uri + '-' + byteRangeToString(sidx.byterange); | ||
}; | ||
var mergeDiscontiguousPlaylists = function mergeDiscontiguousPlaylists(playlists) { | ||
@@ -464,3 +468,13 @@ var mergedPlaylists = values(playlists.reduce(function (acc, playlist) { | ||
var addSegmentInfoFromSidx = function addSegmentInfoFromSidx(playlists, sidxMapping) { | ||
var addSidxSegmentsToPlaylist$1 = function addSidxSegmentsToPlaylist$1(playlist, sidxMapping) { | ||
var sidxKey = generateSidxKey(playlist.sidx); | ||
var sidxMatch = sidxKey && sidxMapping[sidxKey] && sidxMapping[sidxKey].sidx; | ||
if (sidxMatch) { | ||
addSidxSegmentsToPlaylist(playlist, sidxMatch, playlist.sidx.resolvedUri); | ||
} | ||
return playlist; | ||
}; | ||
var addSidxSegmentsToPlaylists = function addSidxSegmentsToPlaylists(playlists, sidxMapping) { | ||
if (sidxMapping === void 0) { | ||
@@ -475,14 +489,3 @@ sidxMapping = {}; | ||
for (var i in playlists) { | ||
var playlist = playlists[i]; | ||
if (!playlist.sidx) { | ||
continue; | ||
} | ||
var sidxKey = playlist.sidx.uri + '-' + byteRangeToString(playlist.sidx.byterange); | ||
var sidxMatch = sidxMapping[sidxKey] && sidxMapping[sidxKey].sidx; | ||
if (playlist.sidx && sidxMatch) { | ||
addSegmentsToPlaylist(playlist, sidxMatch, playlist.sidx.resolvedUri); | ||
} | ||
playlists[i] = addSidxSegmentsToPlaylist$1(playlists[i], sidxMapping); | ||
} | ||
@@ -492,4 +495,3 @@ | ||
}; | ||
var formatAudioPlaylist = function formatAudioPlaylist(_ref) { | ||
var formatAudioPlaylist = function formatAudioPlaylist(_ref, isAudioOnly) { | ||
var _attributes; | ||
@@ -523,2 +525,7 @@ | ||
if (isAudioOnly) { | ||
playlist.attributes.AUDIO = 'audio'; | ||
playlist.attributes.SUBTITLES = 'subs'; | ||
} | ||
return playlist; | ||
@@ -565,3 +572,3 @@ }; | ||
}; | ||
var organizeAudioPlaylists = function organizeAudioPlaylists(playlists, sidxMapping) { | ||
var organizeAudioPlaylists = function organizeAudioPlaylists(playlists, sidxMapping, isAudioOnly) { | ||
if (sidxMapping === void 0) { | ||
@@ -571,2 +578,6 @@ sidxMapping = {}; | ||
if (isAudioOnly === void 0) { | ||
isAudioOnly = false; | ||
} | ||
var mainPlaylist; | ||
@@ -576,21 +587,21 @@ var formattedPlaylists = playlists.reduce(function (a, playlist) { | ||
var language = playlist.attributes.lang || ''; | ||
var label = 'main'; | ||
var label = playlist.attributes.label || 'main'; | ||
if (language) { | ||
if (language && !playlist.attributes.label) { | ||
var roleLabel = role ? " (" + role + ")" : ''; | ||
label = "" + playlist.attributes.lang + roleLabel; | ||
} // skip if we already have the highest quality audio for a language | ||
} | ||
if (a[label] && a[label].playlists[0].attributes.BANDWIDTH > playlist.attributes.bandwidth) { | ||
return a; | ||
if (!a[label]) { | ||
a[label] = { | ||
language: language, | ||
autoselect: true, | ||
default: role === 'main', | ||
playlists: [], | ||
uri: '' | ||
}; | ||
} | ||
a[label] = { | ||
language: language, | ||
autoselect: true, | ||
default: role === 'main', | ||
playlists: addSegmentInfoFromSidx([formatAudioPlaylist(playlist)], sidxMapping), | ||
uri: '' | ||
}; | ||
var formatted = addSidxSegmentsToPlaylist$1(formatAudioPlaylist(playlist, isAudioOnly), sidxMapping); | ||
a[label].playlists.push(formatted); | ||
@@ -618,15 +629,15 @@ if (typeof mainPlaylist === 'undefined' && role === 'main') { | ||
return playlists.reduce(function (a, playlist) { | ||
var label = playlist.attributes.lang || 'text'; // skip if we already have subtitles | ||
var label = playlist.attributes.lang || 'text'; | ||
if (a[label]) { | ||
return a; | ||
if (!a[label]) { | ||
a[label] = { | ||
language: label, | ||
default: false, | ||
autoselect: false, | ||
playlists: [], | ||
uri: '' | ||
}; | ||
} | ||
a[label] = { | ||
language: label, | ||
default: false, | ||
autoselect: false, | ||
playlists: addSegmentInfoFromSidx([formatVttPlaylist(playlist)], sidxMapping), | ||
uri: '' | ||
}; | ||
a[label].playlists.push(addSidxSegmentsToPlaylist$1(formatVttPlaylist(playlist), sidxMapping)); | ||
return a; | ||
@@ -672,2 +683,18 @@ }, {}); | ||
}; | ||
var videoOnly = function videoOnly(_ref4) { | ||
var attributes = _ref4.attributes; | ||
return attributes.mimeType === 'video/mp4' || attributes.mimeType === 'video/webm' || attributes.contentType === 'video'; | ||
}; | ||
var audioOnly = function audioOnly(_ref5) { | ||
var attributes = _ref5.attributes; | ||
return attributes.mimeType === 'audio/mp4' || attributes.mimeType === 'audio/webm' || attributes.contentType === 'audio'; | ||
}; | ||
var vttOnly = function vttOnly(_ref6) { | ||
var attributes = _ref6.attributes; | ||
return attributes.mimeType === 'text/vtt' || attributes.contentType === 'text'; | ||
}; | ||
var toM3u8 = function toM3u8(dashPlaylists, locations, sidxMapping) { | ||
@@ -691,18 +718,2 @@ var _mediaGroups; | ||
minimumUpdatePeriod = _dashPlaylists$0$attr.minimumUpdatePeriod; | ||
var videoOnly = function videoOnly(_ref4) { | ||
var attributes = _ref4.attributes; | ||
return attributes.mimeType === 'video/mp4' || attributes.mimeType === 'video/webm' || attributes.contentType === 'video'; | ||
}; | ||
var audioOnly = function audioOnly(_ref5) { | ||
var attributes = _ref5.attributes; | ||
return attributes.mimeType === 'audio/mp4' || attributes.mimeType === 'audio/webm' || attributes.contentType === 'audio'; | ||
}; | ||
var vttOnly = function vttOnly(_ref6) { | ||
var attributes = _ref6.attributes; | ||
return attributes.mimeType === 'text/vtt' || attributes.contentType === 'text'; | ||
}; | ||
var videoPlaylists = mergeDiscontiguousPlaylists(dashPlaylists.filter(videoOnly)).map(formatVideoPlaylist); | ||
@@ -722,3 +733,3 @@ var audioPlaylists = mergeDiscontiguousPlaylists(dashPlaylists.filter(audioOnly)); | ||
duration: duration, | ||
playlists: addSegmentInfoFromSidx(videoPlaylists, sidxMapping) | ||
playlists: addSidxSegmentsToPlaylists(videoPlaylists, sidxMapping) | ||
}; | ||
@@ -738,4 +749,6 @@ | ||
var isAudioOnly = master.playlists.length === 0; | ||
if (audioPlaylists.length) { | ||
master.mediaGroups.AUDIO.audio = organizeAudioPlaylists(audioPlaylists, sidxMapping); | ||
master.mediaGroups.AUDIO.audio = organizeAudioPlaylists(audioPlaylists, sidxMapping, isAudioOnly); | ||
} | ||
@@ -1041,3 +1054,3 @@ | ||
var uri = constructTemplateUrl(attributes.media || '', templateValues); | ||
return { | ||
var map = { | ||
uri: uri, | ||
@@ -1050,2 +1063,8 @@ timeline: segment.timeline, | ||
}; | ||
if (attributes.presentationTimeOffset) { | ||
map.presentationTimeOffset = attributes.presentationTimeOffset; | ||
} | ||
return map; | ||
}); | ||
@@ -1147,2 +1166,6 @@ }; | ||
segmentAttributes = merge(attributes, segmentInfo.template); | ||
if (segmentInfo.template.presentationTimeOffset) { | ||
segmentAttributes.presentationTimeOffset = segmentInfo.template.presentationTimeOffset / segmentInfo.template.timescale; | ||
} | ||
} else if (segmentInfo.base) { | ||
@@ -1392,3 +1415,3 @@ segmentsFn = segmentsFromBase; | ||
* @return {number} | ||
* The aprsed timescale | ||
* The parsed timescale | ||
*/ | ||
@@ -1400,2 +1423,15 @@ timescale: function timescale(value) { | ||
/** | ||
* Specifies the presentationTimeOffset. | ||
* | ||
* @param {string} value | ||
* value of the attribute as a string | ||
* | ||
* @return {number} | ||
* The parsed presentationTimeOffset | ||
*/ | ||
presentationTimeOffset: function presentationTimeOffset(value) { | ||
return parseInt(value, 10); | ||
}, | ||
/** | ||
* Specifies the constant approximate Segment duration | ||
@@ -1715,2 +1751,11 @@ * NOTE: The <Period> element also contains an @duration attribute. This duration | ||
var attrs = merge(periodAttributes, adaptationSetAttributes, roleAttributes); | ||
var label = findChildren(adaptationSet, 'Label')[0]; | ||
if (label && label.childNodes.length) { | ||
var labelVal = label.childNodes[0].nodeValue.trim(); | ||
attrs = merge(attrs, { | ||
label: labelVal | ||
}); | ||
} | ||
var contentProtection = generateKeySystemInformation(findChildren(adaptationSet, 'ContentProtection')); | ||
@@ -1918,4 +1963,2 @@ | ||
var addSidxSegmentsToPlaylist = addSegmentsToPlaylist; | ||
export { VERSION, addSidxSegmentsToPlaylist, inheritAttributes, parse, parseUTCTiming, stringToMpdXml, toM3u8, toPlaylists }; | ||
export { VERSION, addSidxSegmentsToPlaylist, generateSidxKey, inheritAttributes, parse, parseUTCTiming, stringToMpdXml, toM3u8, toPlaylists }; |
@@ -1,2 +0,2 @@ | ||
/*! @name mpd-parser @version 0.15.4 @license Apache-2.0 */ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("global/window"),require("xmldom")):"function"==typeof define&&define.amd?define(["exports","global/window","xmldom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).mpdParser={},e.window,e.window)}(this,(function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(t),a=function(e){return!!e&&"object"==typeof e},u=function e(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.reduce((function(t,r){return"object"!=typeof r||Object.keys(r).forEach((function(n){Array.isArray(t[n])&&Array.isArray(r[n])?t[n]=t[n].concat(r[n]):a(t[n])&&a(r[n])?t[n]=e(t[n],r[n]):t[n]=r[n]})),t}),{})},o=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},s=function(e){if(!e.length)return[];for(var t=[],r=0;r<e.length;r++)t.push(e[r]);return t},c="INVALID_NUMBER_OF_PERIOD",d="DASH_EMPTY_MANIFEST",l="DASH_INVALID_XML",m="NO_BASE_URL",f="SEGMENT_TIME_UNSPECIFIED",p="UNSUPPORTED_UTC_TIMING_SCHEME";var h=function(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}((function(e,t){var r,n,i,a,u;r=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#.*)?$/,n=/^([^\/?#]*)(.*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,u={buildAbsoluteURL:function(e,t,r){if(r=r||{},e=e.trim(),!(t=t.trim())){if(!r.alwaysNormalize)return e;var i=u.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=u.normalizePath(i.path),u.buildURLFromParts(i)}var a=u.parseURL(t);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return r.alwaysNormalize?(a.path=u.normalizePath(a.path),u.buildURLFromParts(a)):t;var o=u.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var s=n.exec(o.path);o.netLoc=s[1],o.path=s[2]}o.netLoc&&!o.path&&(o.path="/");var c={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(c.netLoc=o.netLoc,"/"!==a.path[0]))if(a.path){var d=o.path,l=d.substring(0,d.lastIndexOf("/")+1)+a.path;c.path=u.normalizePath(l)}else c.path=o.path,a.params||(c.params=o.params,a.query||(c.query=o.query));return null===c.path&&(c.path=r.alwaysNormalize?u.normalizePath(a.path):a.path),u.buildURLFromParts(c)},parseURL:function(e){var t=r.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=u})),v=function(e,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(e)||(e=h.buildAbsoluteURL(i.default.location&&i.default.location.href||"",e)),h.buildAbsoluteURL(e,t))},g=function(e){var t=e.baseUrl,r=void 0===t?"":t,n=e.source,i=void 0===n?"":n,a=e.range,u=void 0===a?"":a,o=e.indexRange,s=void 0===o?"":o,c={uri:i,resolvedUri:v(r||"",i)};if(u||s){var d=(u||s).split("-"),l=parseInt(d[0],10),m=parseInt(d[1],10);c.byterange={length:m-l+1,offset:l}}return c},b=function(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},y={static:function(e){var t=e.duration,r=e.timescale,n=void 0===r?1:r,i=e.sourceDuration,a=b(e.endNumber);return{start:0,end:"number"==typeof a?a:Math.ceil(i/(t/n))}},dynamic:function(e){var t=e.NOW,r=e.clientOffset,n=e.availabilityStartTime,i=e.timescale,a=void 0===i?1:i,u=e.duration,o=e.start,s=void 0===o?0:o,c=e.minimumUpdatePeriod,d=void 0===c?0:c,l=e.timeShiftBufferDepth,m=void 0===l?1/0:l,f=b(e.endNumber),p=(t+r)/1e3,h=n+s,v=p+d-h,g=Math.ceil(v*a/u),y=Math.floor((p-h-m)*a/u),U=Math.floor((p-h)*a/u);return{start:Math.max(0,y),end:"number"==typeof f?f:Math.min(g,U)}}},U=function(e){var t=e.type,r=void 0===t?"static":t,n=e.duration,i=e.timescale,a=void 0===i?1:i,u=e.sourceDuration,o=y[r](e),s=function(e,t){for(var r=[],n=e;n<t;n++)r.push(n);return r}(o.start,o.end).map(function(e){return function(t,r){var n=e.duration,i=e.timescale,a=void 0===i?1:i,u=e.periodIndex,o=e.startNumber;return{number:(void 0===o?1:o)+t,duration:n/a,timeline:u,time:r*n}}}(e));if("static"===r){var c=s.length-1;s[c].duration=u-n/a*c}return s},I=function(e){var t=e.baseUrl,r=e.initialization,n=void 0===r?{}:r,i=e.sourceDuration,a=e.indexRange,u=void 0===a?"":a,o=e.duration;if(!t)throw new Error(m);var s=g({baseUrl:t,source:n.sourceURL,range:n.range}),c=g({baseUrl:t,source:t,indexRange:u});if(c.map=s,o){var d=U(e);d.length&&(c.duration=d[0].duration,c.timeline=d[0].timeline)}else i&&(c.duration=i,c.timeline=0);return c.number=0,[c]},D=function(e,t,r){for(var n=e.sidx.map?e.sidx.map:null,i=e.sidx.duration,a=e.timeline||0,u=e.sidx.byterange,o=u.offset+u.length,s=t.timescale,c=t.references.filter((function(e){return 1!==e.referenceType})),d=[],l=o+t.firstOffset,m=0;m<c.length;m++){var f=t.references[m],p=f.referencedSize,h=f.subsegmentDuration,v=I({baseUrl:r,timescale:s,timeline:a,periodIndex:a,duration:h,sourceDuration:i,indexRange:l+"-"+(l+p-1)})[0];n&&(v.map=n),d.push(v),l+=p}return e.segments=d,e},x=function(e){var t;return(t=e.reduce((function(e,t){var r,n=t.attributes.id+(t.attributes.lang||"");return e[n]?(t.segments[0]&&(t.segments[0].discontinuity=!0),(r=e[n].segments).push.apply(r,t.segments),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):e[n]=t,e}),{}),Object.keys(t).map((function(e){return t[e]}))).map((function(e){var t,r;return e.discontinuityStarts=(t=e.segments,r="discontinuity",t.reduce((function(e,t,n){return t[r]&&e.push(n),e}),[])),e}))},w=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var r in e){var n=e[r];if(n.sidx){var i=n.sidx.uri+"-"+(u=n.sidx.byterange,o=void 0,o=u.offset+u.length-1,u.offset+"-"+o),a=t[i]&&t[i].sidx;n.sidx&&a&&D(n,a,n.sidx.resolvedUri)}}var u,o;return e},L=function(e){var t,r=e.attributes,n=e.segments,i=e.sidx,a={attributes:(t={NAME:r.id,BANDWIDTH:r.bandwidth,CODECS:r.codecs},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(r.type||"static"),timeline:r.periodIndex,resolvedUri:"",targetDuration:r.duration,segments:n,mediaSequence:n.length?n[0].number:1};return r.contentProtection&&(a.contentProtection=r.contentProtection),i&&(a.sidx=i),a},E=function(e){var t,r=e.attributes,n=e.segments;void 0===n&&(n=[{uri:r.baseUrl,timeline:r.periodIndex,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);var i=((t={NAME:r.id,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,t);return r.codecs&&(i.CODECS=r.codecs),{attributes:i,uri:"",endList:"static"===(r.type||"static"),timeline:r.periodIndex,resolvedUri:r.baseUrl||"",targetDuration:r.duration,segments:n,mediaSequence:n.length?n[0].number:1}},T=function(e){var t,r=e.attributes,n=e.segments,i=e.sidx,a={attributes:(t={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(r.type||"static"),timeline:r.periodIndex,resolvedUri:"",targetDuration:r.duration,segments:n,mediaSequence:n.length?n[0].number:1};return r.contentProtection&&(a.contentProtection=r.contentProtection),i&&(a.sidx=i),a},P=function(e,t,r){var n;if(void 0===r&&(r={}),!e.length)return{};var i=e[0].attributes,a=i.sourceDuration,u=i.type,o=void 0===u?"static":u,s=i.suggestedPresentationDelay,c=i.minimumUpdatePeriod,d=x(e.filter((function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType}))).map(T),l=x(e.filter((function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType}))),m=e.filter((function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType})),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(n={AUDIO:{},VIDEO:{}},n["CLOSED-CAPTIONS"]={},n.SUBTITLES={},n),uri:"",duration:a,playlists:w(d,r)};return c>=0&&(f.minimumUpdatePeriod=1e3*c),t&&(f.locations=t),"dynamic"===o&&(f.suggestedPresentationDelay=s),l.length&&(f.mediaGroups.AUDIO.audio=function(e,t){var r;void 0===t&&(t={});var n=e.reduce((function(e,n){var i=n.attributes.role&&n.attributes.role.value||"",a=n.attributes.lang||"",u="main";if(a){var o=i?" ("+i+")":"";u=""+n.attributes.lang+o}return e[u]&&e[u].playlists[0].attributes.BANDWIDTH>n.attributes.bandwidth||(e[u]={language:a,autoselect:!0,default:"main"===i,playlists:w([L(n)],t),uri:""},void 0===r&&"main"===i&&((r=n).default=!0)),e}),{});return r||(n[Object.keys(n)[0]].default=!0),n}(l,r)),m.length&&(f.mediaGroups.SUBTITLES.subs=function(e,t){return void 0===t&&(t={}),e.reduce((function(e,r){var n=r.attributes.lang||"text";return e[n]||(e[n]={language:n,default:!1,autoselect:!1,playlists:w([E(r)],t),uri:""}),e}),{})}(m,r)),f},R=function(e,t,r){var n=e.NOW,i=e.clientOffset,a=e.availabilityStartTime,u=e.timescale,o=void 0===u?1:u,s=e.start,c=void 0===s?0:s,d=e.minimumUpdatePeriod,l=(n+i)/1e3+(void 0===d?0:d)-(a+c);return Math.ceil((l*o-t)/r)},S=function(e,t){for(var r=e.type,n=void 0===r?"static":r,i=e.minimumUpdatePeriod,a=void 0===i?0:i,u=e.media,o=void 0===u?"":u,s=e.sourceDuration,c=e.timescale,d=void 0===c?1:c,l=e.startNumber,m=void 0===l?1:l,f=e.periodIndex,p=[],h=-1,v=0;v<t.length;v++){var g=t[v],b=g.d,y=g.r||0,U=g.t||0;h<0&&(h=U),U&&U>h&&(h=U);var I=void 0;if(y<0){var D=v+1;I=D===t.length?"dynamic"===n&&a>0&&o.indexOf("$Number$")>0?R(e,h,b):(s*d-h)/b:(t[D].t-h)/b}else I=y+1;for(var x=m+p.length+I,w=m+p.length;w<x;)p.push({number:w,duration:b/d,time:h,timeline:f}),h+=b,w++}return p},N=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,A=function(e,t){return e.replace(N,function(e){return function(t,r,n,i){if("$$"===t)return"$";if(void 0===e[r])return t;var a=""+e[r];return"RepresentationID"===r?a:(i=n?parseInt(i,10):1,a.length>=i?a:""+new Array(i-a.length+1).join("0")+a)}}(t))},O=function(e,t){var r={RepresentationID:e.id,Bandwidth:e.bandwidth||0},n=e.initialization,i=void 0===n?{sourceURL:"",range:""}:n,a=g({baseUrl:e.baseUrl,source:A(i.sourceURL,r),range:i.range});return function(e,t){return e.duration||t?e.duration?U(e):S(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]}(e,t).map((function(t){r.Number=t.number,r.Time=t.time;var n=A(e.media||"",r);return{uri:n,timeline:t.timeline,duration:t.duration,resolvedUri:v(e.baseUrl||"",n),map:a,number:t.number}}))},M=function(e,t){var r=e.duration,n=e.segmentUrls,i=void 0===n?[]:n;if(!r&&!t||r&&t)throw new Error(f);var a,u=i.map((function(t){return function(e,t){var r=e.baseUrl,n=e.initialization,i=void 0===n?{}:n,a=g({baseUrl:r,source:i.sourceURL,range:i.range}),u=g({baseUrl:r,source:t.media,range:t.mediaRange});return u.map=a,u}(e,t)}));return r&&(a=U(e)),t&&(a=S(e,t)),a.map((function(e,t){if(u[t]){var r=u[t];return r.timeline=e.timeline,r.duration=e.duration,r.number=e.number,r}})).filter((function(e){return e}))},z=function(e){var t,r,n=e.attributes,i=e.segmentInfo;i.template?(r=O,t=u(n,i.template)):i.base?(r=I,t=u(n,i.base)):i.list&&(r=M,t=u(n,i.list));var a={attributes:n};if(!r)return a;var o=r(t,i.timeline);if(t.duration){var s=t,c=s.duration,d=s.timescale,l=void 0===d?1:d;t.duration=c/l}else o.length?t.duration=o.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return a.attributes=t,a.segments=o,i.base&&t.indexRange&&(a.sidx=o[0],a.segments=[]),a},B=function(e){return e.map(z)},C=function(e,t){return s(e.childNodes).filter((function(e){return e.tagName===t}))},F=function(e){return e.textContent.trim()},_=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var r=t.slice(1),n=r[0],i=r[1],a=r[2],u=r[3],o=r[4],s=r[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(u||0)+60*parseFloat(o||0)+parseFloat(s||0)},j={mediaPresentationDuration:function(e){return _(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return _(e)},suggestedPresentationDelay:function(e){return _(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return _(e)},start:function(e){return _(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?_(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},q=function(e){return e&&e.attributes?s(e.attributes).reduce((function(e,t){var r=j[t.name]||j.DEFAULT;return e[t.name]=r(t.value),e}),{}):{}};function k(e){for(var t,r=(t=e,i.default.atob?i.default.atob(t):Buffer.from(t,"base64").toString("binary")),n=new Uint8Array(r.length),a=0;a<r.length;a++)n[a]=r.charCodeAt(a);return n}var $={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},G=function(e,t){return t.length?o(e.map((function(e){return t.map((function(t){return v(e,F(t))}))}))):e},H=function(e){var t=C(e,"SegmentTemplate")[0],r=C(e,"SegmentList")[0],n=r&&C(r,"SegmentURL").map((function(e){return u({tag:"SegmentURL"},q(e))})),i=C(e,"SegmentBase")[0],a=r||t,o=a&&C(a,"SegmentTimeline")[0],s=r||i||t,c=s&&C(s,"Initialization")[0],d=t&&q(t);d&&c?d.initialization=c&&q(c):d&&d.initialization&&(d.initialization={sourceURL:d.initialization});var l={template:d,timeline:o&&C(o,"S").map((function(e){return q(e)})),list:r&&u(q(r),{segmentUrls:n,initialization:q(c)}),base:i&&u(q(i),{initialization:q(c)})};return Object.keys(l).forEach((function(e){l[e]||delete l[e]})),l},W=function(e,t,r){return function(n){var i=q(n),a=G(t,C(n,"BaseURL")),s=C(n,"Role")[0],c={role:q(s)},d=u(e,i,c),l=C(n,"ContentProtection").reduce((function(e,t){var r=q(t),n=$[r.schemeIdUri];if(n){e[n]={attributes:r};var i=C(t,"cenc:pssh")[0];if(i){var a=F(i),u=a&&k(a);e[n].pssh=u}}return e}),{});Object.keys(l).length&&(d=u(d,{contentProtection:l}));var m=H(n),f=C(n,"Representation"),p=u(r,m);return o(f.map(function(e,t,r){return function(n){var i=C(n,"BaseURL"),a=G(t,i),o=u(e,q(n)),s=H(n);return a.map((function(e){return{segmentInfo:u(r,s),attributes:u(o,{baseUrl:e})}}))}}(d,a,p)))}},V=function(e,t){return function(r,n){var a=G(t,C(r,"BaseURL")),s=q(r),c=parseInt(s.id,10),d=i.default.isNaN(c)?n:c,l=u(e,{periodIndex:d}),m=C(r,"AdaptationSet"),f=H(r);return o(m.map(W(l,a,f)))}},X=function(e,t){void 0===t&&(t={});var r=t,n=r.manifestUri,i=void 0===n?"":n,a=r.NOW,u=void 0===a?Date.now():a,s=r.clientOffset,d=void 0===s?0:s,l=C(e,"Period");if(!l.length)throw new Error(c);var m=C(e,"Location"),f=q(e),p=G([i],C(e,"BaseURL"));return f.sourceDuration=f.mediaPresentationDuration||0,f.NOW=u,f.clientOffset=d,m.length&&(f.locations=m.map(F)),{locations:f.locations,representationInfo:o(l.map(V(f,p)))}},Y=function(e){if(""===e)throw new Error(d);var t,n,i=new r.DOMParser;try{n=(t=i.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(l);return n},Z=D;e.VERSION="0.15.4",e.addSidxSegmentsToPlaylist=Z,e.inheritAttributes=X,e.parse=function(e,t){void 0===t&&(t={});var r=X(Y(e),t),n=B(r.representationInfo);return P(n,r.locations,t.sidxMapping)},e.parseUTCTiming=function(e){return function(e){var t=C(e,"UTCTiming")[0];if(!t)return null;var r=q(t);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(p)}return r}(Y(e))},e.stringToMpdXml=Y,e.toM3u8=P,e.toPlaylists=B,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
/*! @name mpd-parser @version 0.16.0 @license Apache-2.0 */ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("global/window"),require("xmldom")):"function"==typeof define&&define.amd?define(["exports","global/window","xmldom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).mpdParser={},e.window,e.window)}(this,(function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(t),a=function(e){return!!e&&"object"==typeof e},o=function e(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.reduce((function(t,r){return"object"!=typeof r||Object.keys(r).forEach((function(n){Array.isArray(t[n])&&Array.isArray(r[n])?t[n]=t[n].concat(r[n]):a(t[n])&&a(r[n])?t[n]=e(t[n],r[n]):t[n]=r[n]})),t}),{})},u=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},s=function(e){if(!e.length)return[];for(var t=[],r=0;r<e.length;r++)t.push(e[r]);return t},c="INVALID_NUMBER_OF_PERIOD",d="DASH_EMPTY_MANIFEST",l="DASH_INVALID_XML",m="NO_BASE_URL",f="SEGMENT_TIME_UNSPECIFIED",p="UNSUPPORTED_UTC_TIMING_SCHEME";var h=function(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}((function(e,t){var r,n,i,a,o;r=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#.*)?$/,n=/^([^\/?#]*)(.*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(e,t,r){if(r=r||{},e=e.trim(),!(t=t.trim())){if(!r.alwaysNormalize)return e;var i=o.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=o.normalizePath(i.path),o.buildURLFromParts(i)}var a=o.parseURL(t);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return r.alwaysNormalize?(a.path=o.normalizePath(a.path),o.buildURLFromParts(a)):t;var u=o.parseURL(e);if(!u)throw new Error("Error trying to parse base URL.");if(!u.netLoc&&u.path&&"/"!==u.path[0]){var s=n.exec(u.path);u.netLoc=s[1],u.path=s[2]}u.netLoc&&!u.path&&(u.path="/");var c={scheme:u.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(c.netLoc=u.netLoc,"/"!==a.path[0]))if(a.path){var d=u.path,l=d.substring(0,d.lastIndexOf("/")+1)+a.path;c.path=o.normalizePath(l)}else c.path=u.path,a.params||(c.params=u.params,a.query||(c.query=u.query));return null===c.path&&(c.path=r.alwaysNormalize?o.normalizePath(a.path):a.path),o.buildURLFromParts(c)},parseURL:function(e){var t=r.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=o})),v=function(e,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(e)||(e=h.buildAbsoluteURL(i.default.location&&i.default.location.href||"",e)),h.buildAbsoluteURL(e,t))},b=function(e){var t=e.baseUrl,r=void 0===t?"":t,n=e.source,i=void 0===n?"":n,a=e.range,o=void 0===a?"":a,u=e.indexRange,s=void 0===u?"":u,c={uri:i,resolvedUri:v(r||"",i)};if(o||s){var d=(o||s).split("-"),l=parseInt(d[0],10),m=parseInt(d[1],10);c.byterange={length:m-l+1,offset:l}}return c},g=function(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},y={static:function(e){var t=e.duration,r=e.timescale,n=void 0===r?1:r,i=e.sourceDuration,a=g(e.endNumber);return{start:0,end:"number"==typeof a?a:Math.ceil(i/(t/n))}},dynamic:function(e){var t=e.NOW,r=e.clientOffset,n=e.availabilityStartTime,i=e.timescale,a=void 0===i?1:i,o=e.duration,u=e.start,s=void 0===u?0:u,c=e.minimumUpdatePeriod,d=void 0===c?0:c,l=e.timeShiftBufferDepth,m=void 0===l?1/0:l,f=g(e.endNumber),p=(t+r)/1e3,h=n+s,v=p+d-h,b=Math.ceil(v*a/o),y=Math.floor((p-h-m)*a/o),U=Math.floor((p-h)*a/o);return{start:Math.max(0,y),end:"number"==typeof f?f:Math.min(b,U)}}},U=function(e){var t=e.type,r=void 0===t?"static":t,n=e.duration,i=e.timescale,a=void 0===i?1:i,o=e.sourceDuration,u=y[r](e),s=function(e,t){for(var r=[],n=e;n<t;n++)r.push(n);return r}(u.start,u.end).map(function(e){return function(t,r){var n=e.duration,i=e.timescale,a=void 0===i?1:i,o=e.periodIndex,u=e.startNumber;return{number:(void 0===u?1:u)+t,duration:n/a,timeline:o,time:r*n}}}(e));if("static"===r){var c=s.length-1;s[c].duration=o-n/a*c}return s},I=function(e){var t=e.baseUrl,r=e.initialization,n=void 0===r?{}:r,i=e.sourceDuration,a=e.indexRange,o=void 0===a?"":a,u=e.duration;if(!t)throw new Error(m);var s=b({baseUrl:t,source:n.sourceURL,range:n.range}),c=b({baseUrl:t,source:t,indexRange:o});if(c.map=s,u){var d=U(e);d.length&&(c.duration=d[0].duration,c.timeline=d[0].timeline)}else i&&(c.duration=i,c.timeline=0);return c.number=0,[c]},D=function(e,t,r){for(var n=e.sidx.map?e.sidx.map:null,i=e.sidx.duration,a=e.timeline||0,o=e.sidx.byterange,u=o.offset+o.length,s=t.timescale,c=t.references.filter((function(e){return 1!==e.referenceType})),d=[],l=u+t.firstOffset,m=0;m<c.length;m++){var f=t.references[m],p=f.referencedSize,h=f.subsegmentDuration,v=I({baseUrl:r,timescale:s,timeline:a,periodIndex:a,duration:h,sourceDuration:i,indexRange:l+"-"+(l+p-1)})[0];n&&(v.map=n),d.push(v),l+=p}return e.segments=d,e},T=function(e){return e&&e.uri+"-"+(t=e.byterange,r=t.offset+t.length-1,t.offset+"-"+r);var t,r},L=function(e){var t;return(t=e.reduce((function(e,t){var r,n=t.attributes.id+(t.attributes.lang||"");return e[n]?(t.segments[0]&&(t.segments[0].discontinuity=!0),(r=e[n].segments).push.apply(r,t.segments),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):e[n]=t,e}),{}),Object.keys(t).map((function(e){return t[e]}))).map((function(e){var t,r;return e.discontinuityStarts=(t=e.segments,r="discontinuity",t.reduce((function(e,t,n){return t[r]&&e.push(n),e}),[])),e}))},x=function(e,t){var r=T(e.sidx),n=r&&t[r]&&t[r].sidx;return n&&D(e,n,e.sidx.resolvedUri),e},w=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var r in e)e[r]=x(e[r],t);return e},E=function(e){var t,r=e.attributes,n=e.segments,i=e.sidx,a={attributes:(t={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(r.type||"static"),timeline:r.periodIndex,resolvedUri:"",targetDuration:r.duration,segments:n,mediaSequence:n.length?n[0].number:1};return r.contentProtection&&(a.contentProtection=r.contentProtection),i&&(a.sidx=i),a},P=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},R=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},S=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},O=function(e,t,r){var n;if(void 0===r&&(r={}),!e.length)return{};var i=e[0].attributes,a=i.sourceDuration,o=i.type,u=void 0===o?"static":o,s=i.suggestedPresentationDelay,c=i.minimumUpdatePeriod,d=L(e.filter(P)).map(E),l=L(e.filter(R)),m=e.filter(S),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(n={AUDIO:{},VIDEO:{}},n["CLOSED-CAPTIONS"]={},n.SUBTITLES={},n),uri:"",duration:a,playlists:w(d,r)};c>=0&&(f.minimumUpdatePeriod=1e3*c),t&&(f.locations=t),"dynamic"===u&&(f.suggestedPresentationDelay=s);var p=0===f.playlists.length;return l.length&&(f.mediaGroups.AUDIO.audio=function(e,t,r){var n;void 0===t&&(t={}),void 0===r&&(r=!1);var i=e.reduce((function(e,i){var a=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",u=i.attributes.label||"main";if(o&&!i.attributes.label){var s=a?" ("+a+")":"";u=""+i.attributes.lang+s}e[u]||(e[u]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var c=x(function(e,t){var r,n=e.attributes,i=e.segments,a=e.sidx,o={attributes:(r={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},r["PROGRAM-ID"]=1,r),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:i,mediaSequence:i.length?i[0].number:1};return n.contentProtection&&(o.contentProtection=n.contentProtection),a&&(o.sidx=a),t&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o}(i,r),t);return e[u].playlists.push(c),void 0===n&&"main"===a&&((n=i).default=!0),e}),{});return n||(i[Object.keys(i)[0]].default=!0),i}(l,r,p)),m.length&&(f.mediaGroups.SUBTITLES.subs=function(e,t){return void 0===t&&(t={}),e.reduce((function(e,r){var n=r.attributes.lang||"text";return e[n]||(e[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),e[n].playlists.push(x(function(e){var t,r=e.attributes,n=e.segments;void 0===n&&(n=[{uri:r.baseUrl,timeline:r.periodIndex,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);var i=((t={NAME:r.id,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,t);return r.codecs&&(i.CODECS=r.codecs),{attributes:i,uri:"",endList:"static"===(r.type||"static"),timeline:r.periodIndex,resolvedUri:r.baseUrl||"",targetDuration:r.duration,segments:n,mediaSequence:n.length?n[0].number:1}}(r),t)),e}),{})}(m,r)),f},N=function(e,t,r){var n=e.NOW,i=e.clientOffset,a=e.availabilityStartTime,o=e.timescale,u=void 0===o?1:o,s=e.start,c=void 0===s?0:s,d=e.minimumUpdatePeriod,l=(n+i)/1e3+(void 0===d?0:d)-(a+c);return Math.ceil((l*u-t)/r)},A=function(e,t){for(var r=e.type,n=void 0===r?"static":r,i=e.minimumUpdatePeriod,a=void 0===i?0:i,o=e.media,u=void 0===o?"":o,s=e.sourceDuration,c=e.timescale,d=void 0===c?1:c,l=e.startNumber,m=void 0===l?1:l,f=e.periodIndex,p=[],h=-1,v=0;v<t.length;v++){var b=t[v],g=b.d,y=b.r||0,U=b.t||0;h<0&&(h=U),U&&U>h&&(h=U);var I=void 0;if(y<0){var D=v+1;I=D===t.length?"dynamic"===n&&a>0&&u.indexOf("$Number$")>0?N(e,h,g):(s*d-h)/g:(t[D].t-h)/g}else I=y+1;for(var T=m+p.length+I,L=m+p.length;L<T;)p.push({number:L,duration:g/d,time:h,timeline:f}),h+=g,L++}return p},M=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,z=function(e,t){return e.replace(M,function(e){return function(t,r,n,i){if("$$"===t)return"$";if(void 0===e[r])return t;var a=""+e[r];return"RepresentationID"===r?a:(i=n?parseInt(i,10):1,a.length>=i?a:""+new Array(i-a.length+1).join("0")+a)}}(t))},B=function(e,t){var r={RepresentationID:e.id,Bandwidth:e.bandwidth||0},n=e.initialization,i=void 0===n?{sourceURL:"",range:""}:n,a=b({baseUrl:e.baseUrl,source:z(i.sourceURL,r),range:i.range});return function(e,t){return e.duration||t?e.duration?U(e):A(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]}(e,t).map((function(t){r.Number=t.number,r.Time=t.time;var n=z(e.media||"",r),i={uri:n,timeline:t.timeline,duration:t.duration,resolvedUri:v(e.baseUrl||"",n),map:a,number:t.number};return e.presentationTimeOffset&&(i.presentationTimeOffset=e.presentationTimeOffset),i}))},C=function(e,t){var r=e.duration,n=e.segmentUrls,i=void 0===n?[]:n;if(!r&&!t||r&&t)throw new Error(f);var a,o=i.map((function(t){return function(e,t){var r=e.baseUrl,n=e.initialization,i=void 0===n?{}:n,a=b({baseUrl:r,source:i.sourceURL,range:i.range}),o=b({baseUrl:r,source:t.media,range:t.mediaRange});return o.map=a,o}(e,t)}));return r&&(a=U(e)),t&&(a=A(e,t)),a.map((function(e,t){if(o[t]){var r=o[t];return r.timeline=e.timeline,r.duration=e.duration,r.number=e.number,r}})).filter((function(e){return e}))},F=function(e){var t,r,n=e.attributes,i=e.segmentInfo;i.template?(r=B,t=o(n,i.template),i.template.presentationTimeOffset&&(t.presentationTimeOffset=i.template.presentationTimeOffset/i.template.timescale)):i.base?(r=I,t=o(n,i.base)):i.list&&(r=C,t=o(n,i.list));var a={attributes:n};if(!r)return a;var u=r(t,i.timeline);if(t.duration){var s=t,c=s.duration,d=s.timescale,l=void 0===d?1:d;t.duration=c/l}else u.length?t.duration=u.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return a.attributes=t,a.segments=u,i.base&&t.indexRange&&(a.sidx=u[0],a.segments=[]),a},_=function(e){return e.map(F)},j=function(e,t){return s(e.childNodes).filter((function(e){return e.tagName===t}))},q=function(e){return e.textContent.trim()},k=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var r=t.slice(1),n=r[0],i=r[1],a=r[2],o=r[3],u=r[4],s=r[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(u||0)+parseFloat(s||0)},$={mediaPresentationDuration:function(e){return k(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return k(e)},suggestedPresentationDelay:function(e){return k(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return k(e)},start:function(e){return k(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?k(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},G=function(e){return e&&e.attributes?s(e.attributes).reduce((function(e,t){var r=$[t.name]||$.DEFAULT;return e[t.name]=r(t.value),e}),{}):{}};function H(e){for(var t,r=(t=e,i.default.atob?i.default.atob(t):Buffer.from(t,"base64").toString("binary")),n=new Uint8Array(r.length),a=0;a<r.length;a++)n[a]=r.charCodeAt(a);return n}var W={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},V=function(e,t){return t.length?u(e.map((function(e){return t.map((function(t){return v(e,q(t))}))}))):e},X=function(e){var t=j(e,"SegmentTemplate")[0],r=j(e,"SegmentList")[0],n=r&&j(r,"SegmentURL").map((function(e){return o({tag:"SegmentURL"},G(e))})),i=j(e,"SegmentBase")[0],a=r||t,u=a&&j(a,"SegmentTimeline")[0],s=r||i||t,c=s&&j(s,"Initialization")[0],d=t&&G(t);d&&c?d.initialization=c&&G(c):d&&d.initialization&&(d.initialization={sourceURL:d.initialization});var l={template:d,timeline:u&&j(u,"S").map((function(e){return G(e)})),list:r&&o(G(r),{segmentUrls:n,initialization:G(c)}),base:i&&o(G(i),{initialization:G(c)})};return Object.keys(l).forEach((function(e){l[e]||delete l[e]})),l},Y=function(e,t,r){return function(n){var i=G(n),a=V(t,j(n,"BaseURL")),s=j(n,"Role")[0],c={role:G(s)},d=o(e,i,c),l=j(n,"Label")[0];if(l&&l.childNodes.length){var m=l.childNodes[0].nodeValue.trim();d=o(d,{label:m})}var f=j(n,"ContentProtection").reduce((function(e,t){var r=G(t),n=W[r.schemeIdUri];if(n){e[n]={attributes:r};var i=j(t,"cenc:pssh")[0];if(i){var a=q(i),o=a&&H(a);e[n].pssh=o}}return e}),{});Object.keys(f).length&&(d=o(d,{contentProtection:f}));var p=X(n),h=j(n,"Representation"),v=o(r,p);return u(h.map(function(e,t,r){return function(n){var i=j(n,"BaseURL"),a=V(t,i),u=o(e,G(n)),s=X(n);return a.map((function(e){return{segmentInfo:o(r,s),attributes:o(u,{baseUrl:e})}}))}}(d,a,v)))}},Z=function(e,t){return function(r,n){var a=V(t,j(r,"BaseURL")),s=G(r),c=parseInt(s.id,10),d=i.default.isNaN(c)?n:c,l=o(e,{periodIndex:d}),m=j(r,"AdaptationSet"),f=X(r);return u(m.map(Y(l,a,f)))}},K=function(e,t){void 0===t&&(t={});var r=t,n=r.manifestUri,i=void 0===n?"":n,a=r.NOW,o=void 0===a?Date.now():a,s=r.clientOffset,d=void 0===s?0:s,l=j(e,"Period");if(!l.length)throw new Error(c);var m=j(e,"Location"),f=G(e),p=V([i],j(e,"BaseURL"));return f.sourceDuration=f.mediaPresentationDuration||0,f.NOW=o,f.clientOffset=d,m.length&&(f.locations=m.map(q)),{locations:f.locations,representationInfo:u(l.map(Z(f,p)))}},J=function(e){if(""===e)throw new Error(d);var t,n,i=new r.DOMParser;try{n=(t=i.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(l);return n};e.VERSION="0.16.0",e.addSidxSegmentsToPlaylist=D,e.generateSidxKey=T,e.inheritAttributes=K,e.parse=function(e,t){void 0===t&&(t={});var r=K(J(e),t),n=_(r.representationInfo);return O(n,r.locations,t.sidxMapping)},e.parseUTCTiming=function(e){return function(e){var t=j(e,"UTCTiming")[0];if(!t)return null;var r=G(t);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(p)}return r}(J(e))},e.stringToMpdXml=J,e.toM3u8=O,e.toPlaylists=_,Object.defineProperty(e,"__esModule",{value:!0})})); |
{ | ||
"name": "mpd-parser", | ||
"version": "0.15.4", | ||
"version": "0.16.0", | ||
"description": "mpd parser", | ||
@@ -11,2 +11,5 @@ "main": "dist/mpd-parser.cjs.js", | ||
}, | ||
"bin": { | ||
"mpd-to-m3u8-json": "bin/parse.js" | ||
}, | ||
"scripts": { | ||
@@ -60,3 +63,3 @@ "prenetlify": "npm run build", | ||
"global": "^4.4.0", | ||
"xmldom": "^0.4.0" | ||
"xmldom": "^0.5.0" | ||
}, | ||
@@ -73,3 +76,3 @@ "devDependencies": { | ||
"videojs-generate-rollup-config": "~6.1.0", | ||
"videojs-generator-verify": "~3.0.1", | ||
"videojs-generator-verify": "~3.0.2", | ||
"videojs-standard": "^8.0.4" | ||
@@ -76,0 +79,0 @@ }, |
@@ -33,17 +33,14 @@ # mpd-parser | ||
The npm installation is preferred, but Bower works, too. | ||
```sh | ||
bower install --save mpd-parser | ||
``` | ||
## Usage | ||
```js | ||
var manifest = [ | ||
'<>', | ||
'<>', | ||
].join('\n'); | ||
// get your manifest in whatever way works best | ||
// for example, by reading the file from the filesystem in node | ||
// or using fetch in a browser like so: | ||
var parsedManifest = mpdParser.parse(manifest, manifestUrl); | ||
const manifestUri = 'https://example.com/dash.xml'; | ||
const res = await fetch(manifestUri); | ||
const manifest = await res.text(); | ||
var parsedManifest = mpdParser.parse(manifest, { manifestUri }); | ||
``` | ||
@@ -50,0 +47,0 @@ |
import { version } from '../package.json'; | ||
import { toM3u8 } from './toM3u8'; | ||
import { toM3u8, generateSidxKey } from './toM3u8'; | ||
import { toPlaylists } from './toPlaylists'; | ||
@@ -7,3 +7,3 @@ import { inheritAttributes } from './inheritAttributes'; | ||
import { parseUTCTimingScheme } from './parseUTCTimingScheme'; | ||
import {addSegmentsToPlaylist} from './segment/segmentBase.js'; | ||
import {addSidxSegmentsToPlaylist} from './segment/segmentBase.js'; | ||
@@ -30,4 +30,2 @@ const VERSION = version; | ||
const addSidxSegmentsToPlaylist = addSegmentsToPlaylist; | ||
export { | ||
@@ -41,3 +39,4 @@ VERSION, | ||
toM3u8, | ||
addSidxSegmentsToPlaylist | ||
addSidxSegmentsToPlaylist, | ||
generateSidxKey | ||
}; |
@@ -238,2 +238,10 @@ import window from 'global/window'; | ||
const label = findChildren(adaptationSet, 'Label')[0]; | ||
if (label && label.childNodes.length) { | ||
const labelVal = label.childNodes[0].nodeValue.trim(); | ||
attrs = merge(attrs, { label: labelVal }); | ||
} | ||
const contentProtection = generateKeySystemInformation(findChildren(adaptationSet, 'ContentProtection')); | ||
@@ -240,0 +248,0 @@ |
@@ -152,3 +152,3 @@ import { from } from './utils/list'; | ||
* @return {number} | ||
* The aprsed timescale | ||
* The parsed timescale | ||
*/ | ||
@@ -160,2 +160,15 @@ timescale(value) { | ||
/** | ||
* Specifies the presentationTimeOffset. | ||
* | ||
* @param {string} value | ||
* value of the attribute as a string | ||
* | ||
* @return {number} | ||
* The parsed presentationTimeOffset | ||
*/ | ||
presentationTimeOffset(value) { | ||
return parseInt(value, 10); | ||
}, | ||
/** | ||
* Specifies the constant approximate Segment duration | ||
@@ -162,0 +175,0 @@ * NOTE: The <Period> element also contains an @duration attribute. This duration |
@@ -70,3 +70,3 @@ import errors from '../errors'; | ||
*/ | ||
export const addSegmentsToPlaylist = (playlist, sidx, baseUrl) => { | ||
export const addSidxSegmentsToPlaylist = (playlist, sidx, baseUrl) => { | ||
// Retain init segment information | ||
@@ -73,0 +73,0 @@ const initSegment = playlist.sidx.map ? playlist.sidx.map : null; |
@@ -161,3 +161,3 @@ import resolveUrl from '@videojs/vhs-utils/es/resolve-url'; | ||
return { | ||
const map = { | ||
uri, | ||
@@ -170,3 +170,9 @@ timeline: segment.timeline, | ||
}; | ||
if (attributes.presentationTimeOffset) { | ||
map.presentationTimeOffset = attributes.presentationTimeOffset; | ||
} | ||
return map; | ||
}); | ||
}; |
import { values } from './utils/object'; | ||
import { findIndexes } from './utils/list'; | ||
import { addSegmentsToPlaylist } from './segment/segmentBase'; | ||
import { addSidxSegmentsToPlaylist as addSidxSegmentsToPlaylist_ } from './segment/segmentBase'; | ||
import { byteRangeToString } from './segment/urlType'; | ||
export const generateSidxKey = (sidx) => sidx && | ||
sidx.uri + '-' + byteRangeToString(sidx.byterange); | ||
const mergeDiscontiguousPlaylists = playlists => { | ||
@@ -43,3 +46,14 @@ const mergedPlaylists = values(playlists.reduce((acc, playlist) => { | ||
const addSegmentInfoFromSidx = (playlists, sidxMapping = {}) => { | ||
export const addSidxSegmentsToPlaylist = (playlist, sidxMapping) => { | ||
const sidxKey = generateSidxKey(playlist.sidx); | ||
const sidxMatch = sidxKey && sidxMapping[sidxKey] && sidxMapping[sidxKey].sidx; | ||
if (sidxMatch) { | ||
addSidxSegmentsToPlaylist_(playlist, sidxMatch, playlist.sidx.resolvedUri); | ||
} | ||
return playlist; | ||
}; | ||
export const addSidxSegmentsToPlaylists = (playlists, sidxMapping = {}) => { | ||
if (!Object.keys(sidxMapping).length) { | ||
@@ -50,15 +64,3 @@ return playlists; | ||
for (const i in playlists) { | ||
const playlist = playlists[i]; | ||
if (!playlist.sidx) { | ||
continue; | ||
} | ||
const sidxKey = playlist.sidx.uri + '-' + | ||
byteRangeToString(playlist.sidx.byterange); | ||
const sidxMatch = sidxMapping[sidxKey] && sidxMapping[sidxKey].sidx; | ||
if (playlist.sidx && sidxMatch) { | ||
addSegmentsToPlaylist(playlist, sidxMatch, playlist.sidx.resolvedUri); | ||
} | ||
playlists[i] = addSidxSegmentsToPlaylist(playlists[i], sidxMapping); | ||
} | ||
@@ -69,3 +71,3 @@ | ||
export const formatAudioPlaylist = ({ attributes, segments, sidx }) => { | ||
export const formatAudioPlaylist = ({ attributes, segments, sidx }, isAudioOnly) => { | ||
const playlist = { | ||
@@ -95,2 +97,7 @@ attributes: { | ||
if (isAudioOnly) { | ||
playlist.attributes.AUDIO = 'audio'; | ||
playlist.attributes.SUBTITLES = 'subs'; | ||
} | ||
return playlist; | ||
@@ -134,3 +141,3 @@ }; | ||
export const organizeAudioPlaylists = (playlists, sidxMapping = {}) => { | ||
export const organizeAudioPlaylists = (playlists, sidxMapping = {}, isAudioOnly = false) => { | ||
let mainPlaylist; | ||
@@ -143,5 +150,5 @@ | ||
let label = 'main'; | ||
let label = playlist.attributes.label || 'main'; | ||
if (language) { | ||
if (language && !playlist.attributes.label) { | ||
const roleLabel = role ? ` (${role})` : ''; | ||
@@ -152,20 +159,16 @@ | ||
// skip if we already have the highest quality audio for a language | ||
if (a[label] && | ||
a[label].playlists[0].attributes.BANDWIDTH > | ||
playlist.attributes.bandwidth) { | ||
return a; | ||
if (!a[label]) { | ||
a[label] = { | ||
language, | ||
autoselect: true, | ||
default: role === 'main', | ||
playlists: [], | ||
uri: '' | ||
}; | ||
} | ||
a[label] = { | ||
language, | ||
autoselect: true, | ||
default: role === 'main', | ||
playlists: addSegmentInfoFromSidx( | ||
[formatAudioPlaylist(playlist)], | ||
sidxMapping | ||
), | ||
uri: '' | ||
}; | ||
const formatted = addSidxSegmentsToPlaylist(formatAudioPlaylist(playlist, isAudioOnly), sidxMapping); | ||
a[label].playlists.push(formatted); | ||
if (typeof mainPlaylist === 'undefined' && role === 'main') { | ||
@@ -193,18 +196,13 @@ mainPlaylist = playlist; | ||
// skip if we already have subtitles | ||
if (a[label]) { | ||
return a; | ||
if (!a[label]) { | ||
a[label] = { | ||
language: label, | ||
default: false, | ||
autoselect: false, | ||
playlists: [], | ||
uri: '' | ||
}; | ||
} | ||
a[label].playlists.push(addSidxSegmentsToPlaylist(formatVttPlaylist(playlist), sidxMapping)); | ||
a[label] = { | ||
language: label, | ||
default: false, | ||
autoselect: false, | ||
playlists: addSegmentInfoFromSidx( | ||
[formatVttPlaylist(playlist)], | ||
sidxMapping | ||
), | ||
uri: '' | ||
}; | ||
return a; | ||
@@ -248,2 +246,9 @@ }, {}); | ||
const videoOnly = ({ attributes }) => | ||
attributes.mimeType === 'video/mp4' || attributes.mimeType === 'video/webm' || attributes.contentType === 'video'; | ||
const audioOnly = ({ attributes }) => | ||
attributes.mimeType === 'audio/mp4' || attributes.mimeType === 'audio/webm' || attributes.contentType === 'audio'; | ||
const vttOnly = ({ attributes }) => | ||
attributes.mimeType === 'text/vtt' || attributes.contentType === 'text'; | ||
export const toM3u8 = (dashPlaylists, locations, sidxMapping = {}) => { | ||
@@ -262,9 +267,2 @@ if (!dashPlaylists.length) { | ||
const videoOnly = ({ attributes }) => | ||
attributes.mimeType === 'video/mp4' || attributes.mimeType === 'video/webm' || attributes.contentType === 'video'; | ||
const audioOnly = ({ attributes }) => | ||
attributes.mimeType === 'audio/mp4' || attributes.mimeType === 'audio/webm' || attributes.contentType === 'audio'; | ||
const vttOnly = ({ attributes }) => | ||
attributes.mimeType === 'text/vtt' || attributes.contentType === 'text'; | ||
const videoPlaylists = mergeDiscontiguousPlaylists(dashPlaylists.filter(videoOnly)).map(formatVideoPlaylist); | ||
@@ -287,3 +285,3 @@ const audioPlaylists = mergeDiscontiguousPlaylists(dashPlaylists.filter(audioOnly)); | ||
duration, | ||
playlists: addSegmentInfoFromSidx(videoPlaylists, sidxMapping) | ||
playlists: addSidxSegmentsToPlaylists(videoPlaylists, sidxMapping) | ||
}; | ||
@@ -303,4 +301,6 @@ | ||
const isAudioOnly = master.playlists.length === 0; | ||
if (audioPlaylists.length) { | ||
master.mediaGroups.AUDIO.audio = organizeAudioPlaylists(audioPlaylists, sidxMapping); | ||
master.mediaGroups.AUDIO.audio = organizeAudioPlaylists(audioPlaylists, sidxMapping, isAudioOnly); | ||
} | ||
@@ -307,0 +307,0 @@ |
@@ -13,2 +13,8 @@ import { merge } from './utils/object'; | ||
segmentAttributes = merge(attributes, segmentInfo.template); | ||
if (segmentInfo.template.presentationTimeOffset) { | ||
segmentAttributes.presentationTimeOffset = | ||
segmentInfo.template.presentationTimeOffset / segmentInfo.template.timescale; | ||
} | ||
} else if (segmentInfo.base) { | ||
@@ -15,0 +21,0 @@ segmentsFn = segmentsFromBase; |
@@ -16,2 +16,3 @@ import { parse, VERSION } from '../src'; | ||
import multiperiodDynamic from './manifests/multiperiod-dynamic.mpd'; | ||
import audioOnly from './manifests/audio-only.mpd'; | ||
import { | ||
@@ -46,2 +47,6 @@ parsedManifest as maatVttSegmentTemplateManifest | ||
import { | ||
parsedManifest as audioOnlyManifest | ||
} from './manifests/audio-only.js'; | ||
QUnit.module('mpd-parser'); | ||
@@ -93,2 +98,6 @@ | ||
expected: vttCodecsManifest | ||
}, { | ||
name: 'audio-only', | ||
input: audioOnly, | ||
expected: audioOnlyManifest | ||
}].forEach(({ name, input, expected }) => { | ||
@@ -95,0 +104,0 @@ QUnit.test(`${name} test manifest`, function(assert) { |
export const parsedManifest = { | ||
allowCache: true, | ||
discontinuityStarts: [], | ||
duration: 6, | ||
segments: [], | ||
endList: true, | ||
mediaGroups: { | ||
AUDIO: { | ||
'AUDIO': { | ||
audio: { | ||
['en (main)']: { | ||
'en (main)': { | ||
language: 'en', | ||
autoselect: true, | ||
default: true, | ||
language: 'en', | ||
playlists: [{ | ||
attributes: { | ||
BANDWIDTH: 125000, | ||
CODECS: 'mp4a.40.2', | ||
NAME: '125000', | ||
['PROGRAM-ID']: 1 | ||
}, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': '63000', | ||
'BANDWIDTH': 63000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 1.984, | ||
segments: [ | ||
{ | ||
uri: '63000/0.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/63000/0.m4f', | ||
map: { | ||
uri: '63000/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/init.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
{ | ||
uri: '63000/1.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/63000/1.m4f', | ||
map: { | ||
uri: '63000/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/init.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: '63000/2.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/63000/2.m4f', | ||
map: { | ||
uri: '63000/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/init.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: '63000/3.m4f', | ||
timeline: 0, | ||
duration: 0.04800000000000004, | ||
resolvedUri: 'https://www.example.com/63000/3.m4f', | ||
map: { | ||
uri: '63000/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/init.m4f' | ||
}, | ||
number: 3 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
}, | ||
endList: true, | ||
mediaSequence: 0, | ||
targetDuration: 1.984, | ||
resolvedUri: '', | ||
segments: [{ | ||
duration: 1.984, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/init.m4f', | ||
uri: '125000/init.m4f' | ||
{ | ||
attributes: { | ||
'NAME': '125000', | ||
'BANDWIDTH': 125000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/0.m4f', | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
uri: '125000/0.m4f', | ||
number: 0 | ||
}, { | ||
duration: 1.984, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/init.m4f', | ||
uri: '125000/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/1.m4f', | ||
timeline: 0, | ||
uri: '125000/1.m4f', | ||
number: 1 | ||
}, { | ||
duration: 1.984, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/init.m4f', | ||
uri: '125000/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/2.m4f', | ||
timeline: 0, | ||
uri: '125000/2.m4f', | ||
number: 2 | ||
}, { | ||
duration: 0.04800000000000004, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/init.m4f', | ||
uri: '125000/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/3.m4f', | ||
timeline: 0, | ||
uri: '125000/3.m4f', | ||
number: 3 | ||
}], | ||
timeline: 0, | ||
uri: '' | ||
}], | ||
resolvedUri: '', | ||
targetDuration: 1.984, | ||
segments: [ | ||
{ | ||
uri: '125000/0.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/125000/0.m4f', | ||
map: { | ||
uri: '125000/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/init.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
{ | ||
uri: '125000/1.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/125000/1.m4f', | ||
map: { | ||
uri: '125000/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/init.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: '125000/2.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/125000/2.m4f', | ||
map: { | ||
uri: '125000/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/init.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: '125000/3.m4f', | ||
timeline: 0, | ||
duration: 0.04800000000000004, | ||
resolvedUri: 'https://www.example.com/125000/3.m4f', | ||
map: { | ||
uri: '125000/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/init.m4f' | ||
}, | ||
number: 3 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
} | ||
], | ||
uri: '' | ||
}, | ||
['es']: { | ||
'es': { | ||
language: 'es', | ||
autoselect: true, | ||
default: false, | ||
language: 'es', | ||
playlists: [{ | ||
attributes: { | ||
BANDWIDTH: 125000, | ||
CODECS: 'mp4a.40.2', | ||
NAME: '125000', | ||
['PROGRAM-ID']: 1 | ||
}, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': '63000', | ||
'BANDWIDTH': 63000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 1.984, | ||
segments: [ | ||
{ | ||
uri: '63000/es/0.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/63000/es/0.m4f', | ||
map: { | ||
uri: '63000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/es/init.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
{ | ||
uri: '63000/es/1.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/63000/es/1.m4f', | ||
map: { | ||
uri: '63000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/es/init.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: '63000/es/2.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/63000/es/2.m4f', | ||
map: { | ||
uri: '63000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/es/init.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: '63000/es/3.m4f', | ||
timeline: 0, | ||
duration: 0.04800000000000004, | ||
resolvedUri: 'https://www.example.com/63000/es/3.m4f', | ||
map: { | ||
uri: '63000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/es/init.m4f' | ||
}, | ||
number: 3 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
}, | ||
endList: true, | ||
targetDuration: 1.984, | ||
mediaSequence: 0, | ||
resolvedUri: '', | ||
segments: [{ | ||
duration: 1.984, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f', | ||
uri: '125000/es/init.m4f' | ||
{ | ||
attributes: { | ||
'NAME': '125000', | ||
'BANDWIDTH': 125000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/es/0.m4f', | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
uri: '125000/es/0.m4f', | ||
number: 0 | ||
}, { | ||
duration: 1.984, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f', | ||
uri: '125000/es/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/es/1.m4f', | ||
timeline: 0, | ||
uri: '125000/es/1.m4f', | ||
number: 1 | ||
}, { | ||
duration: 1.984, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f', | ||
uri: '125000/es/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/es/2.m4f', | ||
timeline: 0, | ||
uri: '125000/es/2.m4f', | ||
number: 2 | ||
}, { | ||
duration: 0.04800000000000004, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f', | ||
uri: '125000/es/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/es/3.m4f', | ||
timeline: 0, | ||
uri: '125000/es/3.m4f', | ||
number: 3 | ||
}], | ||
timeline: 0, | ||
uri: '' | ||
}], | ||
resolvedUri: '', | ||
targetDuration: 1.984, | ||
segments: [ | ||
{ | ||
uri: '125000/es/0.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/125000/es/0.m4f', | ||
map: { | ||
uri: '125000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
{ | ||
uri: '125000/es/1.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/125000/es/1.m4f', | ||
map: { | ||
uri: '125000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: '125000/es/2.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/125000/es/2.m4f', | ||
map: { | ||
uri: '125000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: '125000/es/3.m4f', | ||
timeline: 0, | ||
duration: 0.04800000000000004, | ||
resolvedUri: 'https://www.example.com/125000/es/3.m4f', | ||
map: { | ||
uri: '125000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f' | ||
}, | ||
number: 3 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
} | ||
], | ||
uri: '' | ||
@@ -149,200 +299,221 @@ } | ||
}, | ||
['CLOSED-CAPTIONS']: {}, | ||
SUBTITLES: { | ||
'VIDEO': {}, | ||
'CLOSED-CAPTIONS': {}, | ||
'SUBTITLES': { | ||
subs: { | ||
en: { | ||
language: 'en', | ||
default: false, | ||
autoselect: false, | ||
default: false, | ||
language: 'en', | ||
playlists: [{ | ||
attributes: { | ||
BANDWIDTH: 256, | ||
NAME: 'en', | ||
['PROGRAM-ID']: 1 | ||
}, | ||
mediaSequence: 0, | ||
endList: true, | ||
targetDuration: 6, | ||
resolvedUri: 'https://example.com/en.vtt', | ||
segments: [{ | ||
duration: 6, | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': 'en', | ||
'BANDWIDTH': 256, | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: 'https://example.com/en.vtt', | ||
timeline: 0, | ||
uri: 'https://example.com/en.vtt', | ||
number: 0 | ||
}], | ||
timeline: 0, | ||
uri: '' | ||
}], | ||
targetDuration: 6, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/en.vtt', | ||
timeline: 0, | ||
resolvedUri: 'https://example.com/en.vtt', | ||
duration: 6, | ||
number: 0 | ||
} | ||
], | ||
mediaSequence: 0 | ||
} | ||
], | ||
uri: '' | ||
}, | ||
es: { | ||
language: 'es', | ||
default: false, | ||
autoselect: false, | ||
default: false, | ||
language: 'es', | ||
playlists: [{ | ||
attributes: { | ||
BANDWIDTH: 256, | ||
NAME: 'es', | ||
['PROGRAM-ID']: 1 | ||
}, | ||
endList: true, | ||
targetDuration: 6, | ||
mediaSequence: 0, | ||
resolvedUri: 'https://example.com/es.vtt', | ||
segments: [{ | ||
duration: 6, | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': 'es', | ||
'BANDWIDTH': 256, | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: 'https://example.com/es.vtt', | ||
timeline: 0, | ||
uri: 'https://example.com/es.vtt', | ||
number: 0 | ||
}], | ||
timeline: 0, | ||
uri: '' | ||
}], | ||
targetDuration: 6, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/es.vtt', | ||
timeline: 0, | ||
resolvedUri: 'https://example.com/es.vtt', | ||
duration: 6, | ||
number: 0 | ||
} | ||
], | ||
mediaSequence: 0 | ||
} | ||
], | ||
uri: '' | ||
} | ||
} | ||
}, | ||
VIDEO: {} | ||
} | ||
}, | ||
playlists: [{ | ||
attributes: { | ||
AUDIO: 'audio', | ||
SUBTITLES: 'subs', | ||
BANDWIDTH: 449000, | ||
CODECS: 'avc1.420015', | ||
NAME: '482', | ||
['PROGRAM-ID']: 1, | ||
RESOLUTION: { | ||
height: 270, | ||
width: 482 | ||
} | ||
}, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
uri: '', | ||
duration: 6, | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': '482', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 482, | ||
height: 270 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
}, | ||
endList: true, | ||
targetDuration: 1.9185833333333333, | ||
mediaSequence: 0, | ||
resolvedUri: '', | ||
segments: [{ | ||
duration: 1.9185833333333333, | ||
map: { | ||
resolvedUri: 'https://www.example.com/482/init.m4f', | ||
uri: '482/init.m4f' | ||
'CODECS': 'avc1.420015', | ||
'BANDWIDTH': 449000, | ||
'PROGRAM-ID': 1 | ||
}, | ||
resolvedUri: 'https://www.example.com/482/0.m4f', | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
uri: '482/0.m4f', | ||
number: 0 | ||
}, { | ||
duration: 1.9185833333333333, | ||
map: { | ||
resolvedUri: 'https://www.example.com/482/init.m4f', | ||
uri: '482/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/482/1.m4f', | ||
timeline: 0, | ||
uri: '482/1.m4f', | ||
number: 1 | ||
}, { | ||
duration: 1.9185833333333333, | ||
map: { | ||
resolvedUri: 'https://www.example.com/482/init.m4f', | ||
uri: '482/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/482/2.m4f', | ||
timeline: 0, | ||
uri: '482/2.m4f', | ||
number: 2 | ||
}, { | ||
duration: 0.24425000000000008, | ||
map: { | ||
resolvedUri: 'https://www.example.com/482/init.m4f', | ||
uri: '482/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/482/3.m4f', | ||
timeline: 0, | ||
uri: '482/3.m4f', | ||
number: 3 | ||
}], | ||
timeline: 0, | ||
uri: '' | ||
}, { | ||
attributes: { | ||
AUDIO: 'audio', | ||
SUBTITLES: 'subs', | ||
BANDWIDTH: 3971000, | ||
CODECS: 'avc1.64001e', | ||
NAME: '720', | ||
['PROGRAM-ID']: 1, | ||
RESOLUTION: { | ||
height: 404, | ||
width: 720 | ||
resolvedUri: '', | ||
targetDuration: 1.9185833333333333, | ||
segments: [ | ||
{ | ||
uri: '482/0.m4f', | ||
timeline: 0, | ||
duration: 1.9185833333333333, | ||
resolvedUri: 'https://www.example.com/482/0.m4f', | ||
map: { | ||
uri: '482/init.m4f', | ||
resolvedUri: 'https://www.example.com/482/init.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
{ | ||
uri: '482/1.m4f', | ||
timeline: 0, | ||
duration: 1.9185833333333333, | ||
resolvedUri: 'https://www.example.com/482/1.m4f', | ||
map: { | ||
uri: '482/init.m4f', | ||
resolvedUri: 'https://www.example.com/482/init.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: '482/2.m4f', | ||
timeline: 0, | ||
duration: 1.9185833333333333, | ||
resolvedUri: 'https://www.example.com/482/2.m4f', | ||
map: { | ||
uri: '482/init.m4f', | ||
resolvedUri: 'https://www.example.com/482/init.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: '482/3.m4f', | ||
timeline: 0, | ||
duration: 0.24425000000000008, | ||
resolvedUri: 'https://www.example.com/482/3.m4f', | ||
map: { | ||
uri: '482/init.m4f', | ||
resolvedUri: 'https://www.example.com/482/init.m4f' | ||
}, | ||
number: 3 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
}, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
{ | ||
attributes: { | ||
'NAME': '720', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 720, | ||
height: 404 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
}, | ||
endList: true, | ||
targetDuration: 1.9185833333333333, | ||
mediaSequence: 0, | ||
resolvedUri: '', | ||
segments: [{ | ||
duration: 1.9185833333333333, | ||
map: { | ||
resolvedUri: 'https://www.example.com/720/init.m4f', | ||
uri: '720/init.m4f' | ||
'CODECS': 'avc1.64001e', | ||
'BANDWIDTH': 3971000, | ||
'PROGRAM-ID': 1 | ||
}, | ||
resolvedUri: 'https://www.example.com/720/0.m4f', | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
uri: '720/0.m4f', | ||
number: 0 | ||
}, { | ||
duration: 1.9185833333333333, | ||
map: { | ||
resolvedUri: 'https://www.example.com/720/init.m4f', | ||
uri: '720/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/720/1.m4f', | ||
timeline: 0, | ||
uri: '720/1.m4f', | ||
number: 1 | ||
}, { | ||
duration: 1.9185833333333333, | ||
map: { | ||
resolvedUri: 'https://www.example.com/720/init.m4f', | ||
uri: '720/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/720/2.m4f', | ||
timeline: 0, | ||
uri: '720/2.m4f', | ||
number: 2 | ||
}, { | ||
duration: 0.24425000000000008, | ||
map: { | ||
resolvedUri: 'https://www.example.com/720/init.m4f', | ||
uri: '720/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/720/3.m4f', | ||
timeline: 0, | ||
uri: '720/3.m4f', | ||
number: 3 | ||
}], | ||
timeline: 0, | ||
uri: '' | ||
}], | ||
segments: [], | ||
uri: '' | ||
resolvedUri: '', | ||
targetDuration: 1.9185833333333333, | ||
segments: [ | ||
{ | ||
uri: '720/0.m4f', | ||
timeline: 0, | ||
duration: 1.9185833333333333, | ||
resolvedUri: 'https://www.example.com/720/0.m4f', | ||
map: { | ||
uri: '720/init.m4f', | ||
resolvedUri: 'https://www.example.com/720/init.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
{ | ||
uri: '720/1.m4f', | ||
timeline: 0, | ||
duration: 1.9185833333333333, | ||
resolvedUri: 'https://www.example.com/720/1.m4f', | ||
map: { | ||
uri: '720/init.m4f', | ||
resolvedUri: 'https://www.example.com/720/init.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: '720/2.m4f', | ||
timeline: 0, | ||
duration: 1.9185833333333333, | ||
resolvedUri: 'https://www.example.com/720/2.m4f', | ||
map: { | ||
uri: '720/init.m4f', | ||
resolvedUri: 'https://www.example.com/720/init.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: '720/3.m4f', | ||
timeline: 0, | ||
duration: 0.24425000000000008, | ||
resolvedUri: 'https://www.example.com/720/3.m4f', | ||
map: { | ||
uri: '720/init.m4f', | ||
resolvedUri: 'https://www.example.com/720/init.m4f' | ||
}, | ||
number: 3 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
} | ||
] | ||
}; |
@@ -13,229 +13,504 @@ export const parsedManifest = { | ||
default: true, | ||
playlists: [{ | ||
attributes: { | ||
'NAME': 'default_audio128_2', | ||
'BANDWIDTH': 123000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: false, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 2, | ||
segments: [{ | ||
uri: 'https://example.com/default_audio128_2/segment0.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init0.m4f' | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': 'default_audio128_2', | ||
'BANDWIDTH': 123000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
number: 0 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment1.m4f', | ||
uri: '', | ||
endList: false, | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init0.m4f' | ||
resolvedUri: '', | ||
targetDuration: 2, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment0.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init0.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment1.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init0.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init0.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init1.m4f' | ||
}, | ||
number: 4 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.8591383219954648, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init1.m4f' | ||
}, | ||
number: 5 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment6.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment7.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 7 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment8.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 8 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment9.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 9 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment10.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 10 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment11.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 11 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 12 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment13.m4f', | ||
timeline: 2, | ||
duration: 0.023219954648526078, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 13 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.1609977324263039, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init3.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init3.m4f' | ||
}, | ||
number: 14, | ||
presentationTimeOffset: 4.85297052154195, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment15.m4f', | ||
timeline: 3, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init3.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init3.m4f' | ||
}, | ||
number: 15, | ||
presentationTimeOffset: 4.85297052154195 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment16.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment17.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment18.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
}, | ||
{ | ||
attributes: { | ||
'NAME': 'default_audio96_2', | ||
'BANDWIDTH': 93000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
number: 1 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment2.m4f', | ||
uri: '', | ||
endList: false, | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init0.m4f' | ||
}, | ||
number: 2 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init1.m4f' | ||
}, | ||
number: 4 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.8591383219954648, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init1.m4f' | ||
}, | ||
number: 5 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment6.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment7.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 7 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment8.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 8 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment9.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 9 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment10.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 10 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment11.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 11 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 12 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment13.m4f', | ||
timeline: 2, | ||
duration: 0.023219954648526078, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 13 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.1609977324263039, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init3.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init3.m4f' | ||
}, | ||
number: 14, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment15.m4f', | ||
timeline: 3, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init3.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init3.m4f' | ||
}, | ||
number: 15 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment16.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment17.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment18.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
}], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
resolvedUri: '', | ||
targetDuration: 2, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment0.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init0.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment1.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init0.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init0.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init1.m4f' | ||
}, | ||
number: 4 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.8591383219954648, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init1.m4f' | ||
}, | ||
number: 5 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment6.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment7.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 7 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment8.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 8 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment9.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 9 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment10.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 10 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment11.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 11 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 12 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment13.m4f', | ||
timeline: 2, | ||
duration: 0.023219954648526078, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 13 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.1609977324263039, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init3.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init3.m4f' | ||
}, | ||
number: 14, | ||
presentationTimeOffset: 4.85297052154195, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment15.m4f', | ||
timeline: 3, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init3.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init3.m4f' | ||
}, | ||
number: 15, | ||
presentationTimeOffset: 4.85297052154195 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment16.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment17.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment18.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
} | ||
}], | ||
], | ||
uri: '' | ||
@@ -251,704 +526,776 @@ } | ||
duration: 36.269, | ||
playlists: [{ | ||
attributes: { | ||
'NAME': 'default_video2000_0_1280x720', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 1280, | ||
height: 720 | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': 'default_video2000_0_1280x720', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 1280, | ||
height: 720 | ||
}, | ||
'CODECS': 'avc1.4d001f', | ||
'BANDWIDTH': 2008000, | ||
'PROGRAM-ID': 1 | ||
}, | ||
'CODECS': 'avc1.4d001f', | ||
'BANDWIDTH': 2008E3, | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: false, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 3, | ||
segments: [{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment0.m4f', | ||
uri: '', | ||
endList: false, | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init0.m4f' | ||
}, | ||
number: 0 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment1.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init0.m4f' | ||
}, | ||
number: 1 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init0.m4f' | ||
}, | ||
number: 2 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init1.m4f' | ||
}, | ||
number: 4 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init1.m4f' | ||
}, | ||
number: 5 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment6.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
resolvedUri: '', | ||
targetDuration: 3, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment0.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init0.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment1.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init0.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init0.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init1.m4f' | ||
}, | ||
number: 4 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init1.m4f' | ||
}, | ||
number: 5 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment6.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment7.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 7 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment8.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 8 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment9.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 9 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment10.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 10 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment11.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 11 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 12 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment13.m4f', | ||
timeline: 3, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init3.m4f' | ||
}, | ||
number: 13, | ||
presentationTimeOffset: 4.838166666666667, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init3.m4f' | ||
}, | ||
number: 14, | ||
presentationTimeOffset: 4.838166666666667 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment15.m4f', | ||
timeline: 3, | ||
duration: 0.26693333333333336, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init3.m4f' | ||
}, | ||
number: 15, | ||
presentationTimeOffset: 4.838166666666667 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment16.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment17.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment18.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment7.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
attributes: { | ||
'NAME': 'default_video1200_1_960x540', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 960, | ||
height: 540 | ||
}, | ||
'CODECS': 'avc1.4d001f', | ||
'BANDWIDTH': 1195000, | ||
'PROGRAM-ID': 1 | ||
}, | ||
number: 7 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment8.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 8 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment9.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 9 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment10.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 10 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment11.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 11 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 12 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment13.m4f', | ||
timeline: 3, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init3.m4f' | ||
}, | ||
number: 13, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init3.m4f' | ||
}, | ||
number: 14 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment15.m4f', | ||
timeline: 3, | ||
duration: 0.26693333333333336, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init3.m4f' | ||
}, | ||
number: 15 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment16.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment17.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment18.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
}], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
uri: '', | ||
endList: false, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 3, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment0.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init0.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment1.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init0.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init0.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init1.m4f' | ||
}, | ||
number: 4 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init1.m4f' | ||
}, | ||
number: 5 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment6.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment7.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 7 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment8.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 8 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment9.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 9 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment10.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 10 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment11.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 11 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 12 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment13.m4f', | ||
timeline: 3, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init3.m4f' | ||
}, | ||
number: 13, | ||
presentationTimeOffset: 4.838166666666667, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init3.m4f' | ||
}, | ||
number: 14, | ||
presentationTimeOffset: 4.838166666666667 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment15.m4f', | ||
timeline: 3, | ||
duration: 0.26693333333333336, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init3.m4f' | ||
}, | ||
number: 15, | ||
presentationTimeOffset: 4.838166666666667 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment16.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment17.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment18.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
} | ||
}, { | ||
attributes: { | ||
'NAME': 'default_video1200_1_960x540', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 960, | ||
height: 540 | ||
}, | ||
'CODECS': 'avc1.4d001f', | ||
'BANDWIDTH': 1195E3, | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: false, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 3, | ||
segments: [{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment0.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init0.m4f' | ||
}, | ||
number: 0 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment1.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init0.m4f' | ||
}, | ||
number: 1 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init0.m4f' | ||
}, | ||
number: 2 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init1.m4f' | ||
}, | ||
number: 4 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init1.m4f' | ||
}, | ||
number: 5 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment6.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment7.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 7 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment8.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 8 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment9.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 9 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment10.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 10 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment11.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 11 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 12 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment13.m4f', | ||
timeline: 3, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init3.m4f' | ||
}, | ||
number: 13, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init3.m4f' | ||
}, | ||
number: 14 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment15.m4f', | ||
timeline: 3, | ||
duration: 0.26693333333333336, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init3.m4f' | ||
}, | ||
number: 15 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment16.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment17.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment18.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
}], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
attributes: { | ||
'NAME': 'default_video900_1_640x360', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 640, | ||
height: 360 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
}, { | ||
attributes: { | ||
'NAME': 'default_video900_1_640x360', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 640, | ||
height: 360 | ||
'CODECS': 'avc1.4d001e', | ||
'BANDWIDTH': 884000, | ||
'PROGRAM-ID': 1 | ||
}, | ||
'CODECS': 'avc1.4d001e', | ||
'BANDWIDTH': 884E3, | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: false, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 3, | ||
segments: [{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment0.m4f', | ||
uri: '', | ||
endList: false, | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init0.m4f' | ||
}, | ||
number: 0 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment1.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init0.m4f' | ||
}, | ||
number: 1 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init0.m4f' | ||
}, | ||
number: 2 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init1.m4f' | ||
}, | ||
number: 4 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init1.m4f' | ||
}, | ||
number: 5 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment6.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment7.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 7 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment8.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 8 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment9.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 9 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment10.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 10 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment11.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 11 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 12 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment13.m4f', | ||
timeline: 3, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init3.m4f' | ||
}, | ||
number: 13, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init3.m4f' | ||
}, | ||
number: 14 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment15.m4f', | ||
timeline: 3, | ||
duration: 0.26693333333333336, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init3.m4f' | ||
}, | ||
number: 15 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment16.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment17.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment18.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
}], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
resolvedUri: '', | ||
targetDuration: 3, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment0.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init0.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment1.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init0.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init0.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init1.m4f' | ||
}, | ||
number: 4 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init1.m4f' | ||
}, | ||
number: 5 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment6.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment7.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 7 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment8.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 8 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment9.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 9 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment10.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 10 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment11.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 11 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 12 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment13.m4f', | ||
timeline: 3, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init3.m4f' | ||
}, | ||
number: 13, | ||
presentationTimeOffset: 4.838166666666667, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init3.m4f' | ||
}, | ||
number: 14, | ||
presentationTimeOffset: 4.838166666666667 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment15.m4f', | ||
timeline: 3, | ||
duration: 0.26693333333333336, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init3.m4f' | ||
}, | ||
number: 15, | ||
presentationTimeOffset: 4.838166666666667 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment16.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment17.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment18.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
} | ||
}], | ||
], | ||
suggestedPresentationDelay: 18 | ||
}; |
@@ -13,229 +13,504 @@ export const parsedManifest = { | ||
default: true, | ||
playlists: [{ | ||
attributes: { | ||
'NAME': 'default_audio128_2', | ||
'BANDWIDTH': 123000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 2, | ||
segments: [{ | ||
uri: 'https://example.com/default_audio128_2/segment0.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init0.m4f' | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': 'default_audio128_2', | ||
'BANDWIDTH': 123000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
number: 0 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment1.m4f', | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init0.m4f' | ||
resolvedUri: '', | ||
targetDuration: 2, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment0.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init0.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment1.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init0.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init0.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init1.m4f' | ||
}, | ||
number: 4 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.8591383219954648, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init1.m4f' | ||
}, | ||
number: 5 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment6.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment7.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 7 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment8.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 8 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment9.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 9 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment10.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 10 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment11.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 11 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 12 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment13.m4f', | ||
timeline: 2, | ||
duration: 0.023219954648526078, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 13 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.1609977324263039, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init3.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init3.m4f' | ||
}, | ||
number: 14, | ||
presentationTimeOffset: 4.85297052154195, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment15.m4f', | ||
timeline: 3, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init3.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init3.m4f' | ||
}, | ||
number: 15, | ||
presentationTimeOffset: 4.85297052154195 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment16.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment17.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment18.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio128_2/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
}, | ||
{ | ||
attributes: { | ||
'NAME': 'default_audio96_2', | ||
'BANDWIDTH': 93000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
number: 1 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment2.m4f', | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init0.m4f' | ||
}, | ||
number: 2 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init1.m4f' | ||
}, | ||
number: 4 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.8591383219954648, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init1.m4f' | ||
}, | ||
number: 5 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment6.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment7.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 7 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment8.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 8 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment9.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 9 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment10.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 10 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment11.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 11 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 12 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment13.m4f', | ||
timeline: 2, | ||
duration: 0.023219954648526078, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init2.m4f' | ||
}, | ||
number: 13 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.1609977324263039, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init3.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init3.m4f' | ||
}, | ||
number: 14, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment15.m4f', | ||
timeline: 3, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/init3.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/init3.m4f' | ||
}, | ||
number: 15 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment16.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment17.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment18.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, { | ||
uri: 'https://example.com/default_audio128_2/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio128_2/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio128_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio128_2/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
}], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
resolvedUri: '', | ||
targetDuration: 2, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment0.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init0.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment1.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init0.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init0.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init0.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init1.m4f' | ||
}, | ||
number: 4 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.8591383219954648, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init1.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init1.m4f' | ||
}, | ||
number: 5 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment6.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment7.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 7 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment8.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 8 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment9.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 9 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment10.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 10 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment11.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 11 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 12 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment13.m4f', | ||
timeline: 2, | ||
duration: 0.023219954648526078, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init2.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init2.m4f' | ||
}, | ||
number: 13 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.1609977324263039, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init3.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init3.m4f' | ||
}, | ||
number: 14, | ||
presentationTimeOffset: 4.85297052154195, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment15.m4f', | ||
timeline: 3, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/init3.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/init3.m4f' | ||
}, | ||
number: 15, | ||
presentationTimeOffset: 4.85297052154195 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment16.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment17.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment18.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_audio96_2/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9969160997732427, | ||
resolvedUri: 'https://example.com/default_audio96_2/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_audio96_2/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_audio96_2/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
} | ||
}], | ||
], | ||
uri: '' | ||
@@ -251,703 +526,775 @@ } | ||
duration: 36.269, | ||
playlists: [{ | ||
attributes: { | ||
'NAME': 'default_video2000_0_1280x720', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 1280, | ||
height: 720 | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': 'default_video2000_0_1280x720', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 1280, | ||
height: 720 | ||
}, | ||
'CODECS': 'avc1.4d001f', | ||
'BANDWIDTH': 2008000, | ||
'PROGRAM-ID': 1 | ||
}, | ||
'CODECS': 'avc1.4d001f', | ||
'BANDWIDTH': 2008E3, | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 3, | ||
segments: [{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment0.m4f', | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init0.m4f' | ||
}, | ||
number: 0 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment1.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init0.m4f' | ||
}, | ||
number: 1 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init0.m4f' | ||
}, | ||
number: 2 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init1.m4f' | ||
}, | ||
number: 4 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init1.m4f' | ||
}, | ||
number: 5 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment6.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
resolvedUri: '', | ||
targetDuration: 3, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment0.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init0.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment1.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init0.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init0.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init1.m4f' | ||
}, | ||
number: 4 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init1.m4f' | ||
}, | ||
number: 5 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment6.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment7.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 7 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment8.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 8 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment9.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 9 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment10.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 10 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment11.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 11 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 12 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment13.m4f', | ||
timeline: 3, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init3.m4f' | ||
}, | ||
number: 13, | ||
presentationTimeOffset: 4.838166666666667, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init3.m4f' | ||
}, | ||
number: 14, | ||
presentationTimeOffset: 4.838166666666667 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment15.m4f', | ||
timeline: 3, | ||
duration: 0.26693333333333336, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init3.m4f' | ||
}, | ||
number: 15, | ||
presentationTimeOffset: 4.838166666666667 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment16.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment17.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment18.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment7.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
attributes: { | ||
'NAME': 'default_video1200_1_960x540', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 960, | ||
height: 540 | ||
}, | ||
'CODECS': 'avc1.4d001f', | ||
'BANDWIDTH': 1195000, | ||
'PROGRAM-ID': 1 | ||
}, | ||
number: 7 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment8.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 8 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment9.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 9 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment10.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 10 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment11.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 11 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init2.m4f' | ||
}, | ||
number: 12 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment13.m4f', | ||
timeline: 3, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init3.m4f' | ||
}, | ||
number: 13, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init3.m4f' | ||
}, | ||
number: 14 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment15.m4f', | ||
timeline: 3, | ||
duration: 0.26693333333333336, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/init3.m4f' | ||
}, | ||
number: 15 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment16.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment17.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment18.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video2000_0_1280x720/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
}], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 3, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment0.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init0.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment1.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init0.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init0.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init1.m4f' | ||
}, | ||
number: 4 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init1.m4f' | ||
}, | ||
number: 5 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment6.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment7.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 7 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment8.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 8 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment9.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 9 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment10.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 10 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment11.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 11 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 12 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment13.m4f', | ||
timeline: 3, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init3.m4f' | ||
}, | ||
number: 13, | ||
presentationTimeOffset: 4.838166666666667, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init3.m4f' | ||
}, | ||
number: 14, | ||
presentationTimeOffset: 4.838166666666667 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment15.m4f', | ||
timeline: 3, | ||
duration: 0.26693333333333336, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init3.m4f' | ||
}, | ||
number: 15, | ||
presentationTimeOffset: 4.838166666666667 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment16.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment17.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment18.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
} | ||
}, { | ||
attributes: { | ||
'NAME': 'default_video1200_1_960x540', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 960, | ||
height: 540 | ||
}, | ||
'CODECS': 'avc1.4d001f', | ||
'BANDWIDTH': 1195E3, | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 3, | ||
segments: [{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment0.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init0.m4f' | ||
}, | ||
number: 0 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment1.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init0.m4f' | ||
}, | ||
number: 1 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init0.m4f' | ||
}, | ||
number: 2 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init1.m4f' | ||
}, | ||
number: 4 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init1.m4f' | ||
}, | ||
number: 5 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment6.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video1200_1_960x540/segment7.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 7 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment8.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 8 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment9.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 9 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment10.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 10 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment11.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 11 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init2.m4f' | ||
}, | ||
number: 12 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment13.m4f', | ||
timeline: 3, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init3.m4f' | ||
}, | ||
number: 13, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init3.m4f' | ||
}, | ||
number: 14 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment15.m4f', | ||
timeline: 3, | ||
duration: 0.26693333333333336, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/init3.m4f' | ||
}, | ||
number: 15 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment16.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment17.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment18.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video1200_1_960x540/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
}], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
attributes: { | ||
'NAME': 'default_video900_1_640x360', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 640, | ||
height: 360 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
}, { | ||
attributes: { | ||
'NAME': 'default_video900_1_640x360', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 640, | ||
height: 360 | ||
'CODECS': 'avc1.4d001e', | ||
'BANDWIDTH': 884000, | ||
'PROGRAM-ID': 1 | ||
}, | ||
'CODECS': 'avc1.4d001e', | ||
'BANDWIDTH': 884E3, | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 3, | ||
segments: [{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment0.m4f', | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init0.m4f' | ||
}, | ||
number: 0 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment1.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init0.m4f' | ||
}, | ||
number: 1 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init0.m4f' | ||
}, | ||
number: 2 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init1.m4f' | ||
}, | ||
number: 4 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init1.m4f' | ||
}, | ||
number: 5 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment6.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment7.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 7 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment8.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 8 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment9.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 9 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment10.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 10 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment11.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 11 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 12 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment13.m4f', | ||
timeline: 3, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init3.m4f' | ||
}, | ||
number: 13, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init3.m4f' | ||
}, | ||
number: 14 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment15.m4f', | ||
timeline: 3, | ||
duration: 0.26693333333333336, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init3.m4f' | ||
}, | ||
number: 15 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment16.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment17.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment18.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, { | ||
uri: 'https://example.com/default_video900_1_640x360/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
}], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
resolvedUri: '', | ||
targetDuration: 3, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment0.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment0.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init0.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment1.m4f', | ||
timeline: 0, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment1.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init0.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment2.m4f', | ||
timeline: 0, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment2.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init0.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init0.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment3.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment3.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init1.m4f' | ||
}, | ||
number: 3, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment4.m4f', | ||
timeline: 1, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment4.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init1.m4f' | ||
}, | ||
number: 4 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment5.m4f', | ||
timeline: 1, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment5.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init1.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init1.m4f' | ||
}, | ||
number: 5 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment6.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment6.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 6, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment7.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment7.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 7 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment8.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment8.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 8 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment9.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment9.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 9 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment10.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment10.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 10 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment11.m4f', | ||
timeline: 2, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment11.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 11 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment12.m4f', | ||
timeline: 2, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment12.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init2.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init2.m4f' | ||
}, | ||
number: 12 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment13.m4f', | ||
timeline: 3, | ||
duration: 0.9676333333333333, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment13.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init3.m4f' | ||
}, | ||
number: 13, | ||
presentationTimeOffset: 4.838166666666667, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment14.m4f', | ||
timeline: 3, | ||
duration: 1.9352666666666667, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment14.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init3.m4f' | ||
}, | ||
number: 14, | ||
presentationTimeOffset: 4.838166666666667 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment15.m4f', | ||
timeline: 3, | ||
duration: 0.26693333333333336, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment15.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/init3.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/init3.m4f' | ||
}, | ||
number: 15, | ||
presentationTimeOffset: 4.838166666666667 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment16.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment16.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 16, | ||
discontinuity: true | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment17.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment17.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 17 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment18.m4f', | ||
timeline: 4, | ||
duration: 2.002, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment18.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 18 | ||
}, | ||
{ | ||
uri: 'https://example.com/default_video900_1_640x360/segment19.m4f', | ||
timeline: 4, | ||
duration: 1.9686333333333332, | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment19.m4f', | ||
map: { | ||
uri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f', | ||
resolvedUri: 'https://example.com/default_video900_1_640x360/segment$Number$.m4f' | ||
}, | ||
number: 19 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
} | ||
}] | ||
] | ||
}; |
export const parsedManifest = { | ||
allowCache: true, | ||
discontinuityStarts: [], | ||
duration: 6, | ||
segments: [], | ||
endList: true, | ||
mediaGroups: { | ||
AUDIO: { | ||
'AUDIO': { | ||
audio: { | ||
['en (main)']: { | ||
'en (main)': { | ||
language: 'en', | ||
autoselect: true, | ||
default: true, | ||
language: 'en', | ||
playlists: [{ | ||
attributes: { | ||
BANDWIDTH: 125000, | ||
CODECS: 'mp4a.40.2', | ||
NAME: '125000', | ||
['PROGRAM-ID']: 1 | ||
}, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': '63000', | ||
'BANDWIDTH': 63000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 1.984, | ||
segments: [ | ||
{ | ||
uri: '63000/0.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/63000/0.m4f', | ||
map: { | ||
uri: '63000/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/init.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
{ | ||
uri: '63000/1.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/63000/1.m4f', | ||
map: { | ||
uri: '63000/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/init.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: '63000/2.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/63000/2.m4f', | ||
map: { | ||
uri: '63000/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/init.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: '63000/3.m4f', | ||
timeline: 0, | ||
duration: 0.04800000000000004, | ||
resolvedUri: 'https://www.example.com/63000/3.m4f', | ||
map: { | ||
uri: '63000/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/init.m4f' | ||
}, | ||
number: 3 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
}, | ||
endList: true, | ||
mediaSequence: 0, | ||
targetDuration: 1.984, | ||
resolvedUri: '', | ||
segments: [{ | ||
duration: 1.984, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/init.m4f', | ||
uri: '125000/init.m4f' | ||
{ | ||
attributes: { | ||
'NAME': '125000', | ||
'BANDWIDTH': 125000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/0.m4f', | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
uri: '125000/0.m4f', | ||
number: 0 | ||
}, { | ||
duration: 1.984, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/init.m4f', | ||
uri: '125000/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/1.m4f', | ||
timeline: 0, | ||
uri: '125000/1.m4f', | ||
number: 1 | ||
}, { | ||
duration: 1.984, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/init.m4f', | ||
uri: '125000/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/2.m4f', | ||
timeline: 0, | ||
uri: '125000/2.m4f', | ||
number: 2 | ||
}, { | ||
duration: 0.04800000000000004, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/init.m4f', | ||
uri: '125000/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/3.m4f', | ||
timeline: 0, | ||
uri: '125000/3.m4f', | ||
number: 3 | ||
}], | ||
timeline: 0, | ||
uri: '' | ||
}], | ||
resolvedUri: '', | ||
targetDuration: 1.984, | ||
segments: [ | ||
{ | ||
uri: '125000/0.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/125000/0.m4f', | ||
map: { | ||
uri: '125000/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/init.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
{ | ||
uri: '125000/1.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/125000/1.m4f', | ||
map: { | ||
uri: '125000/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/init.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: '125000/2.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/125000/2.m4f', | ||
map: { | ||
uri: '125000/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/init.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: '125000/3.m4f', | ||
timeline: 0, | ||
duration: 0.04800000000000004, | ||
resolvedUri: 'https://www.example.com/125000/3.m4f', | ||
map: { | ||
uri: '125000/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/init.m4f' | ||
}, | ||
number: 3 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
} | ||
], | ||
uri: '' | ||
}, | ||
['es']: { | ||
'es': { | ||
language: 'es', | ||
autoselect: true, | ||
default: false, | ||
language: 'es', | ||
playlists: [{ | ||
attributes: { | ||
BANDWIDTH: 125000, | ||
CODECS: 'mp4a.40.2', | ||
NAME: '125000', | ||
['PROGRAM-ID']: 1 | ||
}, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': '63000', | ||
'BANDWIDTH': 63000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 1.984, | ||
segments: [ | ||
{ | ||
uri: '63000/es/0.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/63000/es/0.m4f', | ||
map: { | ||
uri: '63000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/es/init.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
{ | ||
uri: '63000/es/1.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/63000/es/1.m4f', | ||
map: { | ||
uri: '63000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/es/init.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: '63000/es/2.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/63000/es/2.m4f', | ||
map: { | ||
uri: '63000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/es/init.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: '63000/es/3.m4f', | ||
timeline: 0, | ||
duration: 0.04800000000000004, | ||
resolvedUri: 'https://www.example.com/63000/es/3.m4f', | ||
map: { | ||
uri: '63000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/63000/es/init.m4f' | ||
}, | ||
number: 3 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
}, | ||
endList: true, | ||
targetDuration: 1.984, | ||
mediaSequence: 0, | ||
resolvedUri: '', | ||
segments: [{ | ||
duration: 1.984, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f', | ||
uri: '125000/es/init.m4f' | ||
{ | ||
attributes: { | ||
'NAME': '125000', | ||
'BANDWIDTH': 125000, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1 | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/es/0.m4f', | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
uri: '125000/es/0.m4f', | ||
number: 0 | ||
}, { | ||
duration: 1.984, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f', | ||
uri: '125000/es/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/es/1.m4f', | ||
timeline: 0, | ||
uri: '125000/es/1.m4f', | ||
number: 1 | ||
}, { | ||
duration: 1.984, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f', | ||
uri: '125000/es/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/es/2.m4f', | ||
timeline: 0, | ||
uri: '125000/es/2.m4f', | ||
number: 2 | ||
}, { | ||
duration: 0.04800000000000004, | ||
map: { | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f', | ||
uri: '125000/es/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/125000/es/3.m4f', | ||
timeline: 0, | ||
uri: '125000/es/3.m4f', | ||
number: 3 | ||
}], | ||
timeline: 0, | ||
uri: '' | ||
}], | ||
resolvedUri: '', | ||
targetDuration: 1.984, | ||
segments: [ | ||
{ | ||
uri: '125000/es/0.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/125000/es/0.m4f', | ||
map: { | ||
uri: '125000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
{ | ||
uri: '125000/es/1.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/125000/es/1.m4f', | ||
map: { | ||
uri: '125000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: '125000/es/2.m4f', | ||
timeline: 0, | ||
duration: 1.984, | ||
resolvedUri: 'https://www.example.com/125000/es/2.m4f', | ||
map: { | ||
uri: '125000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: '125000/es/3.m4f', | ||
timeline: 0, | ||
duration: 0.04800000000000004, | ||
resolvedUri: 'https://www.example.com/125000/es/3.m4f', | ||
map: { | ||
uri: '125000/es/init.m4f', | ||
resolvedUri: 'https://www.example.com/125000/es/init.m4f' | ||
}, | ||
number: 3 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
} | ||
], | ||
uri: '' | ||
@@ -149,201 +299,222 @@ } | ||
}, | ||
['CLOSED-CAPTIONS']: {}, | ||
SUBTITLES: { | ||
'VIDEO': {}, | ||
'CLOSED-CAPTIONS': {}, | ||
'SUBTITLES': { | ||
subs: { | ||
en: { | ||
language: 'en', | ||
default: false, | ||
autoselect: false, | ||
default: false, | ||
language: 'en', | ||
playlists: [{ | ||
attributes: { | ||
BANDWIDTH: 256, | ||
NAME: 'en', | ||
CODECS: 'stpp.ttml.im1t', | ||
['PROGRAM-ID']: 1 | ||
}, | ||
mediaSequence: 0, | ||
endList: true, | ||
targetDuration: 6, | ||
resolvedUri: 'https://example.com/en.dash', | ||
segments: [{ | ||
duration: 6, | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': 'en', | ||
'BANDWIDTH': 256, | ||
'PROGRAM-ID': 1, | ||
'CODECS': 'stpp.ttml.im1t' | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: 'https://example.com/en.dash', | ||
timeline: 0, | ||
uri: 'https://example.com/en.dash', | ||
number: 0 | ||
}], | ||
timeline: 0, | ||
uri: '' | ||
}], | ||
targetDuration: 6, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/en.dash', | ||
timeline: 0, | ||
resolvedUri: 'https://example.com/en.dash', | ||
duration: 6, | ||
number: 0 | ||
} | ||
], | ||
mediaSequence: 0 | ||
} | ||
], | ||
uri: '' | ||
}, | ||
es: { | ||
language: 'es', | ||
default: false, | ||
autoselect: false, | ||
default: false, | ||
language: 'es', | ||
playlists: [{ | ||
attributes: { | ||
BANDWIDTH: 256, | ||
NAME: 'es', | ||
['PROGRAM-ID']: 1 | ||
}, | ||
endList: true, | ||
targetDuration: 6, | ||
mediaSequence: 0, | ||
resolvedUri: 'https://example.com/es.vtt', | ||
segments: [{ | ||
duration: 6, | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': 'es', | ||
'BANDWIDTH': 256, | ||
'PROGRAM-ID': 1 | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: 'https://example.com/es.vtt', | ||
timeline: 0, | ||
uri: 'https://example.com/es.vtt', | ||
number: 0 | ||
}], | ||
timeline: 0, | ||
uri: '' | ||
}], | ||
targetDuration: 6, | ||
segments: [ | ||
{ | ||
uri: 'https://example.com/es.vtt', | ||
timeline: 0, | ||
resolvedUri: 'https://example.com/es.vtt', | ||
duration: 6, | ||
number: 0 | ||
} | ||
], | ||
mediaSequence: 0 | ||
} | ||
], | ||
uri: '' | ||
} | ||
} | ||
}, | ||
VIDEO: {} | ||
} | ||
}, | ||
playlists: [{ | ||
attributes: { | ||
AUDIO: 'audio', | ||
SUBTITLES: 'subs', | ||
BANDWIDTH: 449000, | ||
CODECS: 'avc1.420015', | ||
NAME: '482', | ||
['PROGRAM-ID']: 1, | ||
RESOLUTION: { | ||
height: 270, | ||
width: 482 | ||
} | ||
}, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
uri: '', | ||
duration: 6, | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': '482', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 482, | ||
height: 270 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
}, | ||
endList: true, | ||
targetDuration: 1.9185833333333333, | ||
mediaSequence: 0, | ||
resolvedUri: '', | ||
segments: [{ | ||
duration: 1.9185833333333333, | ||
map: { | ||
resolvedUri: 'https://www.example.com/482/init.m4f', | ||
uri: '482/init.m4f' | ||
'CODECS': 'avc1.420015', | ||
'BANDWIDTH': 449000, | ||
'PROGRAM-ID': 1 | ||
}, | ||
resolvedUri: 'https://www.example.com/482/0.m4f', | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
uri: '482/0.m4f', | ||
number: 0 | ||
}, { | ||
duration: 1.9185833333333333, | ||
map: { | ||
resolvedUri: 'https://www.example.com/482/init.m4f', | ||
uri: '482/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/482/1.m4f', | ||
timeline: 0, | ||
uri: '482/1.m4f', | ||
number: 1 | ||
}, { | ||
duration: 1.9185833333333333, | ||
map: { | ||
resolvedUri: 'https://www.example.com/482/init.m4f', | ||
uri: '482/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/482/2.m4f', | ||
timeline: 0, | ||
uri: '482/2.m4f', | ||
number: 2 | ||
}, { | ||
duration: 0.24425000000000008, | ||
map: { | ||
resolvedUri: 'https://www.example.com/482/init.m4f', | ||
uri: '482/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/482/3.m4f', | ||
timeline: 0, | ||
uri: '482/3.m4f', | ||
number: 3 | ||
}], | ||
timeline: 0, | ||
uri: '' | ||
}, { | ||
attributes: { | ||
AUDIO: 'audio', | ||
SUBTITLES: 'subs', | ||
BANDWIDTH: 3971000, | ||
CODECS: 'avc1.64001e', | ||
NAME: '720', | ||
['PROGRAM-ID']: 1, | ||
RESOLUTION: { | ||
height: 404, | ||
width: 720 | ||
resolvedUri: '', | ||
targetDuration: 1.9185833333333333, | ||
segments: [ | ||
{ | ||
uri: '482/0.m4f', | ||
timeline: 0, | ||
duration: 1.9185833333333333, | ||
resolvedUri: 'https://www.example.com/482/0.m4f', | ||
map: { | ||
uri: '482/init.m4f', | ||
resolvedUri: 'https://www.example.com/482/init.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
{ | ||
uri: '482/1.m4f', | ||
timeline: 0, | ||
duration: 1.9185833333333333, | ||
resolvedUri: 'https://www.example.com/482/1.m4f', | ||
map: { | ||
uri: '482/init.m4f', | ||
resolvedUri: 'https://www.example.com/482/init.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: '482/2.m4f', | ||
timeline: 0, | ||
duration: 1.9185833333333333, | ||
resolvedUri: 'https://www.example.com/482/2.m4f', | ||
map: { | ||
uri: '482/init.m4f', | ||
resolvedUri: 'https://www.example.com/482/init.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: '482/3.m4f', | ||
timeline: 0, | ||
duration: 0.24425000000000008, | ||
resolvedUri: 'https://www.example.com/482/3.m4f', | ||
map: { | ||
uri: '482/init.m4f', | ||
resolvedUri: 'https://www.example.com/482/init.m4f' | ||
}, | ||
number: 3 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
}, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
{ | ||
attributes: { | ||
'NAME': '720', | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs', | ||
'RESOLUTION': { | ||
width: 720, | ||
height: 404 | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
}, | ||
endList: true, | ||
targetDuration: 1.9185833333333333, | ||
mediaSequence: 0, | ||
resolvedUri: '', | ||
segments: [{ | ||
duration: 1.9185833333333333, | ||
map: { | ||
resolvedUri: 'https://www.example.com/720/init.m4f', | ||
uri: '720/init.m4f' | ||
'CODECS': 'avc1.64001e', | ||
'BANDWIDTH': 3971000, | ||
'PROGRAM-ID': 1 | ||
}, | ||
resolvedUri: 'https://www.example.com/720/0.m4f', | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
uri: '720/0.m4f', | ||
number: 0 | ||
}, { | ||
duration: 1.9185833333333333, | ||
map: { | ||
resolvedUri: 'https://www.example.com/720/init.m4f', | ||
uri: '720/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/720/1.m4f', | ||
timeline: 0, | ||
uri: '720/1.m4f', | ||
number: 1 | ||
}, { | ||
duration: 1.9185833333333333, | ||
map: { | ||
resolvedUri: 'https://www.example.com/720/init.m4f', | ||
uri: '720/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/720/2.m4f', | ||
timeline: 0, | ||
uri: '720/2.m4f', | ||
number: 2 | ||
}, { | ||
duration: 0.24425000000000008, | ||
map: { | ||
resolvedUri: 'https://www.example.com/720/init.m4f', | ||
uri: '720/init.m4f' | ||
}, | ||
resolvedUri: 'https://www.example.com/720/3.m4f', | ||
timeline: 0, | ||
uri: '720/3.m4f', | ||
number: 3 | ||
}], | ||
timeline: 0, | ||
uri: '' | ||
}], | ||
segments: [], | ||
uri: '' | ||
resolvedUri: '', | ||
targetDuration: 1.9185833333333333, | ||
segments: [ | ||
{ | ||
uri: '720/0.m4f', | ||
timeline: 0, | ||
duration: 1.9185833333333333, | ||
resolvedUri: 'https://www.example.com/720/0.m4f', | ||
map: { | ||
uri: '720/init.m4f', | ||
resolvedUri: 'https://www.example.com/720/init.m4f' | ||
}, | ||
number: 0 | ||
}, | ||
{ | ||
uri: '720/1.m4f', | ||
timeline: 0, | ||
duration: 1.9185833333333333, | ||
resolvedUri: 'https://www.example.com/720/1.m4f', | ||
map: { | ||
uri: '720/init.m4f', | ||
resolvedUri: 'https://www.example.com/720/init.m4f' | ||
}, | ||
number: 1 | ||
}, | ||
{ | ||
uri: '720/2.m4f', | ||
timeline: 0, | ||
duration: 1.9185833333333333, | ||
resolvedUri: 'https://www.example.com/720/2.m4f', | ||
map: { | ||
uri: '720/init.m4f', | ||
resolvedUri: 'https://www.example.com/720/init.m4f' | ||
}, | ||
number: 2 | ||
}, | ||
{ | ||
uri: '720/3.m4f', | ||
timeline: 0, | ||
duration: 0.24425000000000008, | ||
resolvedUri: 'https://www.example.com/720/3.m4f', | ||
map: { | ||
uri: '720/init.m4f', | ||
resolvedUri: 'https://www.example.com/720/init.m4f' | ||
}, | ||
number: 3 | ||
} | ||
], | ||
mediaSequence: 0, | ||
contentProtection: { | ||
'com.widevine.alpha': { | ||
attributes: { | ||
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed' | ||
}, | ||
pssh: new Uint8Array([181, 235, 45]) | ||
} | ||
} | ||
} | ||
] | ||
}; |
import QUnit from 'qunit'; | ||
import { | ||
segmentsFromBase, | ||
addSegmentsToPlaylist | ||
addSidxSegmentsToPlaylist | ||
} from '../../src/segment/segmentBase'; | ||
@@ -154,3 +154,3 @@ import errors from '../../src/errors'; | ||
QUnit.module('segmentBase - addSegmentsToPlaylist'); | ||
QUnit.module('segmentBase - addSidxSegmentsToPlaylist'); | ||
@@ -185,3 +185,3 @@ QUnit.test('generates playlist from sidx references', function(assert) { | ||
assert.deepEqual(addSegmentsToPlaylist(playlist, sidx, baseUrl).segments, [{ | ||
assert.deepEqual(addSidxSegmentsToPlaylist(playlist, sidx, baseUrl).segments, [{ | ||
map: { | ||
@@ -188,0 +188,0 @@ byterange: { |
@@ -1,2 +0,2 @@ | ||
import { toM3u8 } from '../src/toM3u8'; | ||
import { toM3u8, generateSidxKey } from '../src/toM3u8'; | ||
import QUnit from 'qunit'; | ||
@@ -88,2 +88,17 @@ | ||
targetDuration: 0 | ||
}, { | ||
attributes: { | ||
BANDWIDTH: 10000, | ||
CODECS: 'foo;bar', | ||
NAME: '2', | ||
['PROGRAM-ID']: 1 | ||
}, | ||
mediaSequence: 1, | ||
endList: true, | ||
resolvedUri: '', | ||
segments: [], | ||
timeline: 1, | ||
uri: '', | ||
targetDuration: 0 | ||
}], | ||
@@ -120,2 +135,21 @@ uri: '' | ||
uri: '' | ||
}, { | ||
attributes: { | ||
BANDWIDTH: 10000, | ||
NAME: '1', | ||
['PROGRAM-ID']: 1 | ||
}, | ||
mediaSequence: 0, | ||
targetDuration: 100, | ||
endList: true, | ||
resolvedUri: 'https://www.example.com/vtt', | ||
segments: [{ | ||
duration: 100, | ||
resolvedUri: 'https://www.example.com/vtt', | ||
timeline: 1, | ||
uri: 'https://www.example.com/vtt', | ||
number: 0 | ||
}], | ||
timeline: 1, | ||
uri: '' | ||
}], | ||
@@ -287,3 +321,3 @@ uri: '' | ||
duration: 2, | ||
id: '1', | ||
id: '2', | ||
bandwidth: 10000, | ||
@@ -363,2 +397,36 @@ periodIndex: 1, | ||
uri: '' | ||
}, { | ||
attributes: { | ||
BANDWIDTH: 10000, | ||
CODECS: 'foo;bar', | ||
NAME: '2', | ||
['PROGRAM-ID']: 1 | ||
}, | ||
targetDuration: 2, | ||
mediaSequence: 1, | ||
endList: true, | ||
resolvedUri: '', | ||
segments: [{ | ||
uri: '', | ||
timeline: 1, | ||
duration: 2, | ||
resolvedUri: '', | ||
map: { | ||
uri: '', | ||
resolvedUri: '' | ||
}, | ||
number: 1 | ||
}, { | ||
uri: '', | ||
timeline: 1, | ||
duration: 2, | ||
resolvedUri: '', | ||
map: { | ||
uri: '', | ||
resolvedUri: '' | ||
}, | ||
number: 2 | ||
}], | ||
timeline: 1, | ||
uri: '' | ||
}], | ||
@@ -409,2 +477,35 @@ uri: '' | ||
uri: '' | ||
}, { | ||
attributes: { | ||
BANDWIDTH: 10000, | ||
NAME: '2', | ||
['PROGRAM-ID']: 1 | ||
}, | ||
endList: true, | ||
targetDuration: 2, | ||
mediaSequence: 1, | ||
resolvedUri: 'https://www.example.com/vtt', | ||
segments: [{ | ||
uri: '', | ||
timeline: 1, | ||
duration: 2, | ||
resolvedUri: '', | ||
map: { | ||
uri: '', | ||
resolvedUri: '' | ||
}, | ||
number: 1 | ||
}, { | ||
uri: '', | ||
timeline: 1, | ||
duration: 2, | ||
resolvedUri: '', | ||
map: { | ||
uri: '', | ||
resolvedUri: '' | ||
}, | ||
number: 2 | ||
}], | ||
timeline: 1, | ||
uri: '' | ||
}], | ||
@@ -709,1 +810,65 @@ uri: '' | ||
}); | ||
QUnit.test('playlists with label', function(assert) { | ||
const label = 'English with commentary'; | ||
const input = [{ | ||
attributes: { | ||
id: '1', | ||
codecs: 'foo;bar', | ||
sourceDuration: 100, | ||
duration: 0, | ||
bandwidth: 20000, | ||
periodIndex: 1, | ||
mimeType: 'audio/mp4', | ||
type: 'dynamic', | ||
label | ||
}, | ||
segments: [] | ||
}, { | ||
attributes: { | ||
id: '2', | ||
codecs: 'foo;bar', | ||
sourceDuration: 100, | ||
duration: 0, | ||
bandwidth: 10000, | ||
periodIndex: 1, | ||
mimeType: 'audio/mp4' | ||
}, | ||
segments: [] | ||
}, { | ||
attributes: { | ||
sourceDuration: 100, | ||
id: '1', | ||
width: 800, | ||
height: 600, | ||
codecs: 'foo;bar', | ||
duration: 0, | ||
bandwidth: 10000, | ||
periodIndex: 1, | ||
mimeType: 'video/mp4' | ||
}, | ||
segments: [] | ||
}]; | ||
const output = toM3u8(input); | ||
assert.ok(label in output.mediaGroups.AUDIO.audio, 'label exists'); | ||
}); | ||
QUnit.module('generateSidxKey'); | ||
QUnit.test('generates correct key', function(assert) { | ||
const sidxInfo = { | ||
byterange: { | ||
offset: 1, | ||
length: 5 | ||
}, | ||
uri: 'uri' | ||
}; | ||
assert.strictEqual( | ||
generateSidxKey(sidxInfo), | ||
'uri-1-5', | ||
'the key byterange should have a inclusive end' | ||
); | ||
}); | ||
@@ -172,1 +172,41 @@ import { | ||
}); | ||
QUnit.test('presentationTimeOffset', function(assert) { | ||
const representations = [{ | ||
attributes: { baseUrl: 'http://example.com/', periodIndex: 0, sourceDuration: 2 }, | ||
segmentInfo: { | ||
template: { | ||
presentationTimeOffset: 100, | ||
timescale: 4 | ||
} | ||
} | ||
}]; | ||
// the presentationTimeOffset output should be the value in the template | ||
// divided by the timescale in the template. | ||
// It should be available on segments | ||
const playlists = [{ | ||
attributes: { | ||
baseUrl: 'http://example.com/', | ||
periodIndex: 0, | ||
sourceDuration: 2, | ||
duration: 2, | ||
presentationTimeOffset: 25, | ||
timescale: 4 | ||
}, | ||
segments: [{ | ||
uri: '', | ||
timeline: 0, | ||
duration: 2, | ||
presentationTimeOffset: 25, | ||
resolvedUri: 'http://example.com/', | ||
map: { | ||
uri: '', | ||
resolvedUri: 'http://example.com/' | ||
}, | ||
number: 1 | ||
}] | ||
}]; | ||
assert.deepEqual(toPlaylists(representations), playlists); | ||
}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
621541
63
16412
162
1
+ Addedxmldom@0.5.0(transitive)
- Removedxmldom@0.4.0(transitive)
Updatedxmldom@^0.5.0