rx-player 4.0.0-dev.202402213 → 4.0.0-dev.2024022300
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.js +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.js +1 -1
- package/dist/commonjs/core/main/worker/worker_main.js +8 -9
- package/dist/commonjs/features/features_object.js +1 -1
- package/dist/commonjs/features/list/dash.js +2 -2
- package/dist/commonjs/features/types.d.ts +8 -3
- package/dist/commonjs/main_thread/api/public_api.js +2 -7
- package/dist/commonjs/multithread_types.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +4 -3
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +11 -4
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +2 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +12 -3
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +3 -2
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +22 -11
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +11 -2
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +74 -3
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +2 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.js +3 -1
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/index.d.ts +17 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/index.js +19 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/AdaptationSet.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/AdaptationSet.js +400 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/BaseURL.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/BaseURL.js +33 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/ContentComponent.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/ContentComponent.js +70 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.js +118 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/EventStream.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/EventStream.js +154 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Initialization.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Initialization.js +70 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.js +221 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Period.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Period.js +179 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Representation.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Representation.js +256 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentBase.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentBase.js +152 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentList.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentList.js +60 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTemplate.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTemplate.js +125 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTimeline.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTimeline.js +36 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentURL.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentURL.js +82 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/utils.d.ts +176 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/utils.js +382 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/parse_from_xml_string.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/parse_from_xml_string.js +142 -0
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.d.ts +5 -3
- package/dist/commonjs/public_types.d.ts +1 -1
- package/dist/commonjs/transports/dash/manifest_parser.js +33 -4
- package/dist/commonjs/utils/xml-parser.d.ts +70 -0
- package/dist/commonjs/utils/xml-parser.js +357 -0
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.js +1 -1
- package/dist/es2017/__GENERATED_CODE/embedded_worker.js +1 -1
- package/dist/es2017/core/main/worker/worker_main.js +8 -9
- package/dist/es2017/features/features_object.js +1 -1
- package/dist/es2017/features/list/dash.js +2 -2
- package/dist/es2017/features/types.d.ts +8 -3
- package/dist/es2017/main_thread/api/public_api.js +2 -7
- package/dist/es2017/multithread_types.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +4 -3
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +12 -5
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +2 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +13 -4
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +3 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +22 -11
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +11 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +49 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +2 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.js +3 -1
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/index.d.ts +17 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/index.js +17 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/AdaptationSet.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/AdaptationSet.js +358 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/BaseURL.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/BaseURL.js +30 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/ContentComponent.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/ContentComponent.js +45 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.js +77 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/EventStream.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/EventStream.js +101 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Initialization.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Initialization.js +45 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.js +179 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Period.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Period.js +137 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Representation.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Representation.js +214 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentBase.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentBase.js +111 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentList.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentList.js +41 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTemplate.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTemplate.js +84 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTimeline.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTimeline.js +33 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentURL.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentURL.js +57 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/utils.d.ts +176 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/utils.js +310 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/parse_from_xml_string.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/parse_from_xml_string.js +114 -0
- package/dist/es2017/parsers/manifest/dash/node_parser_types.d.ts +5 -3
- package/dist/es2017/public_types.d.ts +1 -1
- package/dist/es2017/transports/dash/manifest_parser.js +33 -4
- package/dist/es2017/utils/xml-parser.d.ts +70 -0
- package/dist/es2017/utils/xml-parser.js +322 -0
- package/dist/mpd-parser.wasm +0 -0
- package/dist/rx-player.js +141 -65
- package/dist/rx-player.min.js +1 -1
- package/dist/worker.js +8 -3
- package/package.json +1 -1
- package/.vscode/settings.json +0 -9
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/index.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/index.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/AdaptationSet.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/AdaptationSet.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/BaseURL.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/BaseURL.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/ContentComponent.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/ContentComponent.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/ContentProtection.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/ContentProtection.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/EventStream.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/EventStream.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/Initialization.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/Initialization.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/MPD.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/MPD.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/Period.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/Period.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/Representation.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/Representation.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentBase.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentBase.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentList.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentList.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentTemplate.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentTemplate.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentTimeline.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentTimeline.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentURL.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentURL.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/utils.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/utils.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/parse_from_document.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/parse_from_document.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/index.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/index.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/AdaptationSet.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/AdaptationSet.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/BaseURL.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/BaseURL.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/ContentComponent.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/ContentComponent.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/ContentProtection.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/ContentProtection.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/EventStream.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/EventStream.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/Initialization.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/Initialization.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/MPD.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/MPD.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/Period.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/Period.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/Representation.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/Representation.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentBase.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentBase.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentList.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentList.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentTemplate.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentTemplate.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentTimeline.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentTimeline.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentURL.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentURL.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/utils.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/utils.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/parse_from_document.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/parse_from_document.js +0 -0
package/dist/rx-player.js
CHANGED
|
@@ -7188,7 +7188,8 @@ function normalizeAudioTrack(_language) {
|
|
|
7188
7188
|
var features = {
|
|
7189
7189
|
dashParsers: {
|
|
7190
7190
|
wasm: null,
|
|
7191
|
-
|
|
7191
|
+
"native": null,
|
|
7192
|
+
fastJs: null
|
|
7192
7193
|
},
|
|
7193
7194
|
codecSupportProber: null,
|
|
7194
7195
|
createDebugElement: null,
|
|
@@ -30193,12 +30194,57 @@ function convertElementsToIndexSegment(item, previousItem, nextItem) {
|
|
|
30193
30194
|
* limitations under the License.
|
|
30194
30195
|
*/
|
|
30195
30196
|
|
|
30197
|
+
|
|
30198
|
+
/**
|
|
30199
|
+
* Parse a given <S> element in the MPD under a parsed Node form into a JS
|
|
30200
|
+
* Object.
|
|
30201
|
+
* @param {Object} root
|
|
30202
|
+
* @returns {Object}
|
|
30203
|
+
*/
|
|
30204
|
+
function parseSElementNode(root) {
|
|
30205
|
+
var parsedS = {};
|
|
30206
|
+
for (var _i = 0, _Object$keys = Object.keys(root.attributes); _i < _Object$keys.length; _i++) {
|
|
30207
|
+
var attributeName = _Object$keys[_i];
|
|
30208
|
+
var attributeVal = root.attributes[attributeName];
|
|
30209
|
+
if (is_null_or_undefined_isNullOrUndefined(attributeVal)) {
|
|
30210
|
+
continue;
|
|
30211
|
+
}
|
|
30212
|
+
switch (attributeName) {
|
|
30213
|
+
case "t":
|
|
30214
|
+
var start = parseInt(attributeVal, 10);
|
|
30215
|
+
if (isNaN(start)) {
|
|
30216
|
+
src_log.warn("DASH: invalid t (\"" + attributeVal + "\")");
|
|
30217
|
+
} else {
|
|
30218
|
+
parsedS.start = start;
|
|
30219
|
+
}
|
|
30220
|
+
break;
|
|
30221
|
+
case "d":
|
|
30222
|
+
var duration = parseInt(attributeVal, 10);
|
|
30223
|
+
if (isNaN(duration)) {
|
|
30224
|
+
src_log.warn("DASH: invalid d (\"" + attributeVal + "\")");
|
|
30225
|
+
} else {
|
|
30226
|
+
parsedS.duration = duration;
|
|
30227
|
+
}
|
|
30228
|
+
break;
|
|
30229
|
+
case "r":
|
|
30230
|
+
var repeatCount = parseInt(attributeVal, 10);
|
|
30231
|
+
if (isNaN(repeatCount)) {
|
|
30232
|
+
src_log.warn("DASH: invalid r (\"" + attributeVal + "\")");
|
|
30233
|
+
} else {
|
|
30234
|
+
parsedS.repeatCount = repeatCount;
|
|
30235
|
+
}
|
|
30236
|
+
break;
|
|
30237
|
+
}
|
|
30238
|
+
}
|
|
30239
|
+
return parsedS;
|
|
30240
|
+
}
|
|
30196
30241
|
/**
|
|
30197
|
-
* Parse a given <S> element in the MPD into a JS
|
|
30242
|
+
* Parse a given <S> element in the MPD under an `Element` form into a JS
|
|
30243
|
+
* Object.
|
|
30198
30244
|
* @param {Element} root
|
|
30199
30245
|
* @returns {Object}
|
|
30200
30246
|
*/
|
|
30201
|
-
function
|
|
30247
|
+
function parseSHTMLElement(root) {
|
|
30202
30248
|
var parsedS = {};
|
|
30203
30249
|
for (var j = 0; j < root.attributes.length; j++) {
|
|
30204
30250
|
var attribute = root.attributes[j];
|
|
@@ -30254,20 +30300,26 @@ function parseSElement(root) {
|
|
|
30254
30300
|
* Call this function when the timeline is unknown.
|
|
30255
30301
|
* This function was added to only perform that task lazily, i.e. only when
|
|
30256
30302
|
* first needed.
|
|
30257
|
-
* @param {HTMLCollection} elements - All S nodes constituting
|
|
30258
|
-
* SegmentTimeline node.
|
|
30303
|
+
* @param {Array.<Object>|HTMLCollection} elements - All S nodes constituting
|
|
30304
|
+
* the corresponding SegmentTimeline node.
|
|
30259
30305
|
* @returns {Array.<Object>}
|
|
30260
30306
|
*/
|
|
30261
30307
|
function constructTimelineFromElements(elements) {
|
|
30262
30308
|
var initialTimeline = [];
|
|
30263
|
-
|
|
30264
|
-
|
|
30309
|
+
if (Array.isArray(elements)) {
|
|
30310
|
+
for (var i = 0; i < elements.length; i++) {
|
|
30311
|
+
initialTimeline.push(parseSElementNode(elements[i]));
|
|
30312
|
+
}
|
|
30313
|
+
} else {
|
|
30314
|
+
for (var _i = 0; _i < elements.length; _i++) {
|
|
30315
|
+
initialTimeline.push(parseSHTMLElement(elements[_i]));
|
|
30316
|
+
}
|
|
30265
30317
|
}
|
|
30266
30318
|
var timeline = [];
|
|
30267
|
-
for (var
|
|
30268
|
-
var item = initialTimeline[
|
|
30319
|
+
for (var _i2 = 0; _i2 < initialTimeline.length; _i2++) {
|
|
30320
|
+
var item = initialTimeline[_i2];
|
|
30269
30321
|
var previousItem = timeline[timeline.length - 1] === undefined ? null : timeline[timeline.length - 1];
|
|
30270
|
-
var nextItem = initialTimeline[
|
|
30322
|
+
var nextItem = initialTimeline[_i2 + 1] === undefined ? null : initialTimeline[_i2 + 1];
|
|
30271
30323
|
var timelineElement = convertElementsToIndexSegment(item, previousItem, nextItem);
|
|
30272
30324
|
if (timelineElement !== null) {
|
|
30273
30325
|
timeline.push(timelineElement);
|
|
@@ -30291,13 +30343,14 @@ function constructTimelineFromElements(elements) {
|
|
|
30291
30343
|
* See the License for the specific language governing permissions and
|
|
30292
30344
|
* limitations under the License.
|
|
30293
30345
|
*/
|
|
30346
|
+
|
|
30294
30347
|
/**
|
|
30295
30348
|
* By comparing two timelines for the same content at different points in time,
|
|
30296
30349
|
* retrieve the index in both timelines of the first segment having the same
|
|
30297
30350
|
* starting time.
|
|
30298
30351
|
* Returns `null` if not found.
|
|
30299
30352
|
* @param {Array.<Object>} prevTimeline
|
|
30300
|
-
* @param {
|
|
30353
|
+
* @param {Array.<Object>} newElements
|
|
30301
30354
|
* @returns {Object|null}
|
|
30302
30355
|
*/
|
|
30303
30356
|
function findFirstCommonStartTime(prevTimeline, newElements) {
|
|
@@ -30305,8 +30358,8 @@ function findFirstCommonStartTime(prevTimeline, newElements) {
|
|
|
30305
30358
|
return null;
|
|
30306
30359
|
}
|
|
30307
30360
|
var prevInitialStart = prevTimeline[0].start;
|
|
30308
|
-
var newFirstTAttr = newElements[0].getAttribute("t");
|
|
30309
|
-
var newInitialStart = newFirstTAttr
|
|
30361
|
+
var newFirstTAttr = Array.isArray(newElements) ? newElements[0].attributes.t : newElements[0].getAttribute("t");
|
|
30362
|
+
var newInitialStart = is_null_or_undefined_isNullOrUndefined(newFirstTAttr) ? null : parseInt(newFirstTAttr, 10);
|
|
30310
30363
|
if (newInitialStart === null || Number.isNaN(newInitialStart)) {
|
|
30311
30364
|
return null;
|
|
30312
30365
|
}
|
|
@@ -30351,16 +30404,17 @@ function findFirstCommonStartTime(prevTimeline, newElements) {
|
|
|
30351
30404
|
}
|
|
30352
30405
|
} else {
|
|
30353
30406
|
var newElementsIdx = 0;
|
|
30354
|
-
var
|
|
30407
|
+
var newNodeElt = Array.isArray(newElements) ? newElements[0] : null;
|
|
30408
|
+
var newDomElt = Array.isArray(newElements) ? null : newElements[0];
|
|
30355
30409
|
var currentTimeOffset = newInitialStart;
|
|
30356
30410
|
while (true) {
|
|
30357
|
-
var dAttr =
|
|
30358
|
-
var duration = dAttr
|
|
30411
|
+
var dAttr = newNodeElt !== null ? newNodeElt.attributes.d : newDomElt === null || newDomElt === void 0 ? void 0 : newDomElt.getAttribute("d");
|
|
30412
|
+
var duration = is_null_or_undefined_isNullOrUndefined(dAttr) ? null : parseInt(dAttr, 10);
|
|
30359
30413
|
if (duration === null || Number.isNaN(duration)) {
|
|
30360
30414
|
return null;
|
|
30361
30415
|
}
|
|
30362
|
-
var rAttr =
|
|
30363
|
-
var repeatCount = rAttr
|
|
30416
|
+
var rAttr = newNodeElt !== null ? newNodeElt.attributes.r : newDomElt === null || newDomElt === void 0 ? void 0 : newDomElt.getAttribute("r");
|
|
30417
|
+
var repeatCount = is_null_or_undefined_isNullOrUndefined(rAttr) ? null : parseInt(rAttr, 10);
|
|
30364
30418
|
if (repeatCount !== null) {
|
|
30365
30419
|
if (Number.isNaN(repeatCount) || repeatCount < 0) {
|
|
30366
30420
|
return null;
|
|
@@ -30385,9 +30439,13 @@ function findFirstCommonStartTime(prevTimeline, newElements) {
|
|
|
30385
30439
|
if (newElementsIdx >= newElements.length) {
|
|
30386
30440
|
return null;
|
|
30387
30441
|
}
|
|
30388
|
-
|
|
30389
|
-
|
|
30390
|
-
|
|
30442
|
+
if (Array.isArray(newElements)) {
|
|
30443
|
+
newNodeElt = newElements[newElementsIdx];
|
|
30444
|
+
} else {
|
|
30445
|
+
newDomElt = newElements[newElementsIdx];
|
|
30446
|
+
}
|
|
30447
|
+
var tAttr = newNodeElt !== null ? newNodeElt.attributes.t : newDomElt === null || newDomElt === void 0 ? void 0 : newDomElt.getAttribute("t");
|
|
30448
|
+
var time = is_null_or_undefined_isNullOrUndefined(tAttr) ? null : parseInt(tAttr, 10);
|
|
30391
30449
|
if (time !== null) {
|
|
30392
30450
|
if (Number.isNaN(time)) {
|
|
30393
30451
|
return null;
|
|
@@ -30459,7 +30517,7 @@ function constructTimelineFromPreviousTimeline(newElements, prevTimeline) {
|
|
|
30459
30517
|
return constructTimelineFromElements(newElements);
|
|
30460
30518
|
}
|
|
30461
30519
|
var prevLastElement = newTimeline[newTimeline.length - 1];
|
|
30462
|
-
var newCommonElt =
|
|
30520
|
+
var newCommonElt = Array.isArray(newElements) ? parseSElementNode(newElements[lastCommonEltNewEltsIdx]) : parseSHTMLElement(newElements[lastCommonEltNewEltsIdx]);
|
|
30463
30521
|
var newRepeatCountOffseted = ((_a = newCommonElt.repeatCount) !== null && _a !== void 0 ? _a : 0) - repeatNumberInNewElements;
|
|
30464
30522
|
if (newCommonElt.duration !== prevLastElement.duration || prevLastElement.repeatCount > newRepeatCountOffseted) {
|
|
30465
30523
|
src_log.info('DASH: Cannot perform "based" update. ' + "The new timeline has a different form at the beginning.");
|
|
@@ -30470,13 +30528,19 @@ function constructTimelineFromPreviousTimeline(newElements, prevTimeline) {
|
|
|
30470
30528
|
}
|
|
30471
30529
|
var newEltsToPush = [];
|
|
30472
30530
|
var items = [];
|
|
30473
|
-
|
|
30474
|
-
|
|
30531
|
+
if (Array.isArray(newElements)) {
|
|
30532
|
+
for (var i = lastCommonEltNewEltsIdx + 1; i < newElements.length; i++) {
|
|
30533
|
+
items.push(parseSElementNode(newElements[i]));
|
|
30534
|
+
}
|
|
30535
|
+
} else {
|
|
30536
|
+
for (var _i = lastCommonEltNewEltsIdx + 1; _i < newElements.length; _i++) {
|
|
30537
|
+
items.push(parseSHTMLElement(newElements[_i]));
|
|
30538
|
+
}
|
|
30475
30539
|
}
|
|
30476
|
-
for (var
|
|
30477
|
-
var item = items[
|
|
30540
|
+
for (var _i2 = 0; _i2 < items.length; _i2++) {
|
|
30541
|
+
var item = items[_i2];
|
|
30478
30542
|
var previousItem = newEltsToPush[newEltsToPush.length - 1] === undefined ? prevLastElement : newEltsToPush[newEltsToPush.length - 1];
|
|
30479
|
-
var nextItem = items[
|
|
30543
|
+
var nextItem = items[_i2 + 1] === undefined ? null : items[_i2 + 1];
|
|
30480
30544
|
var timelineElement = convertElementsToIndexSegment(item, previousItem, nextItem);
|
|
30481
30545
|
if (timelineElement !== null) {
|
|
30482
30546
|
newEltsToPush.push(timelineElement);
|
|
@@ -32651,7 +32715,7 @@ function generateStreamEvents(baseIr, periodStart, xmlNamespaces) {
|
|
|
32651
32715
|
try {
|
|
32652
32716
|
xmlData = {
|
|
32653
32717
|
namespaces: allNamespaces,
|
|
32654
|
-
data: utf8ToStr(new Uint8Array(eventIr.eventStreamData))
|
|
32718
|
+
data: typeof eventIr.eventStreamData === "string" ? eventIr.eventStreamData : utf8ToStr(new Uint8Array(eventIr.eventStreamData))
|
|
32655
32719
|
};
|
|
32656
32720
|
} catch (err) {
|
|
32657
32721
|
src_log.error("DASH: Error while parsing event-stream:", err instanceof Error ? err.message : "Unknown error");
|
|
@@ -32981,7 +33045,7 @@ function parseCompleteIntermediateRepresentation(mpdIR, args, warnings, xlinkInf
|
|
|
32981
33045
|
|
|
32982
33046
|
/* harmony default export */ var common = (parseMpdIr);
|
|
32983
33047
|
|
|
32984
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
33048
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/BaseURL.ts
|
|
32985
33049
|
/**
|
|
32986
33050
|
* Copyright 2015 CANAL+ Group
|
|
32987
33051
|
*
|
|
@@ -33013,7 +33077,7 @@ function parseBaseURL(root) {
|
|
|
33013
33077
|
value: value
|
|
33014
33078
|
}, warnings];
|
|
33015
33079
|
}
|
|
33016
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
33080
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/ContentComponent.ts
|
|
33017
33081
|
/**
|
|
33018
33082
|
* Copyright 2015 CANAL+ Group
|
|
33019
33083
|
*
|
|
@@ -33055,7 +33119,7 @@ function parseContentComponent(root) {
|
|
|
33055
33119
|
}
|
|
33056
33120
|
return ret;
|
|
33057
33121
|
}
|
|
33058
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
33122
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/utils.ts
|
|
33059
33123
|
|
|
33060
33124
|
|
|
33061
33125
|
|
|
@@ -33361,7 +33425,7 @@ var MPDError = /*#__PURE__*/function (_Error) {
|
|
|
33361
33425
|
return MPDError;
|
|
33362
33426
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
33363
33427
|
|
|
33364
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
33428
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/ContentProtection.ts
|
|
33365
33429
|
/**
|
|
33366
33430
|
* Copyright 2015 CANAL+ Group
|
|
33367
33431
|
*
|
|
@@ -33446,7 +33510,7 @@ function parseContentProtection(contentProtectionElement) {
|
|
|
33446
33510
|
attributes: attributes
|
|
33447
33511
|
}, childrenWarnings];
|
|
33448
33512
|
}
|
|
33449
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
33513
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/Initialization.ts
|
|
33450
33514
|
/**
|
|
33451
33515
|
* Copyright 2015 CANAL+ Group
|
|
33452
33516
|
*
|
|
@@ -33488,7 +33552,7 @@ function parseInitialization(root) {
|
|
|
33488
33552
|
}
|
|
33489
33553
|
return [parsedInitialization, warnings];
|
|
33490
33554
|
}
|
|
33491
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
33555
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/SegmentBase.ts
|
|
33492
33556
|
/**
|
|
33493
33557
|
* Copyright 2015 CANAL+ Group
|
|
33494
33558
|
*
|
|
@@ -33598,7 +33662,7 @@ function parseSegmentBase(root) {
|
|
|
33598
33662
|
}
|
|
33599
33663
|
return [attributes, warnings];
|
|
33600
33664
|
}
|
|
33601
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
33665
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/SegmentURL.ts
|
|
33602
33666
|
/**
|
|
33603
33667
|
* Copyright 2015 CANAL+ Group
|
|
33604
33668
|
*
|
|
@@ -33652,7 +33716,7 @@ function parseSegmentURL(root) {
|
|
|
33652
33716
|
}
|
|
33653
33717
|
return [parsedSegmentURL, warnings];
|
|
33654
33718
|
}
|
|
33655
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
33719
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/SegmentList.ts
|
|
33656
33720
|
/**
|
|
33657
33721
|
* Copyright 2015 CANAL+ Group
|
|
33658
33722
|
*
|
|
@@ -33699,7 +33763,7 @@ function parseSegmentList(root) {
|
|
|
33699
33763
|
});
|
|
33700
33764
|
return [ret, warnings];
|
|
33701
33765
|
}
|
|
33702
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
33766
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/SegmentTimeline.ts
|
|
33703
33767
|
/**
|
|
33704
33768
|
* Copyright 2015 CANAL+ Group
|
|
33705
33769
|
*
|
|
@@ -33730,7 +33794,7 @@ function createSegmentTimelineParser(root) {
|
|
|
33730
33794
|
return result;
|
|
33731
33795
|
};
|
|
33732
33796
|
}
|
|
33733
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
33797
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/SegmentTemplate.ts
|
|
33734
33798
|
/**
|
|
33735
33799
|
* Copyright 2015 CANAL+ Group
|
|
33736
33800
|
*
|
|
@@ -33818,7 +33882,7 @@ function parseSegmentTemplate(root) {
|
|
|
33818
33882
|
}
|
|
33819
33883
|
return [ret, warnings];
|
|
33820
33884
|
}
|
|
33821
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
33885
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/Representation.ts
|
|
33822
33886
|
/**
|
|
33823
33887
|
* Copyright 2015 CANAL+ Group
|
|
33824
33888
|
*
|
|
@@ -34045,7 +34109,7 @@ function createRepresentationIntermediateRepresentation(representationElement) {
|
|
|
34045
34109
|
attributes: attributes
|
|
34046
34110
|
}, warnings];
|
|
34047
34111
|
}
|
|
34048
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
34112
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/AdaptationSet.ts
|
|
34049
34113
|
/**
|
|
34050
34114
|
* Copyright 2015 CANAL+ Group
|
|
34051
34115
|
*
|
|
@@ -34415,7 +34479,7 @@ function createAdaptationSetIntermediateRepresentation(adaptationSetElement) {
|
|
|
34415
34479
|
attributes: attributes
|
|
34416
34480
|
}, warnings];
|
|
34417
34481
|
}
|
|
34418
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
34482
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/EventStream.ts
|
|
34419
34483
|
/**
|
|
34420
34484
|
* Copyright 2015 CANAL+ Group
|
|
34421
34485
|
*
|
|
@@ -34520,7 +34584,7 @@ function parseEvent(element) {
|
|
|
34520
34584
|
}
|
|
34521
34585
|
return [eventIR, warnings];
|
|
34522
34586
|
}
|
|
34523
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
34587
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/Period.ts
|
|
34524
34588
|
/**
|
|
34525
34589
|
* Copyright 2015 CANAL+ Group
|
|
34526
34590
|
*
|
|
@@ -34659,7 +34723,7 @@ function createPeriodIntermediateRepresentation(periodElement) {
|
|
|
34659
34723
|
attributes: attributes
|
|
34660
34724
|
}, warnings];
|
|
34661
34725
|
}
|
|
34662
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
34726
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/node_parsers/MPD.ts
|
|
34663
34727
|
/**
|
|
34664
34728
|
* Copyright 2015 CANAL+ Group
|
|
34665
34729
|
*
|
|
@@ -34837,7 +34901,7 @@ function createMPDIntermediateRepresentation(root) {
|
|
|
34837
34901
|
attributes: attributes
|
|
34838
34902
|
}, warnings];
|
|
34839
34903
|
}
|
|
34840
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
34904
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/parse_from_document.ts
|
|
34841
34905
|
/**
|
|
34842
34906
|
* Copyright 2015 CANAL+ Group
|
|
34843
34907
|
*
|
|
@@ -34951,7 +35015,7 @@ function parseFromDocument(document, args) {
|
|
|
34951
35015
|
}
|
|
34952
35016
|
}
|
|
34953
35017
|
}
|
|
34954
|
-
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/
|
|
35018
|
+
;// CONCATENATED MODULE: ./src/parsers/manifest/dash/native-parser/index.ts
|
|
34955
35019
|
/**
|
|
34956
35020
|
* Copyright 2015 CANAL+ Group
|
|
34957
35021
|
*
|
|
@@ -34968,7 +35032,7 @@ function parseFromDocument(document, args) {
|
|
|
34968
35032
|
* limitations under the License.
|
|
34969
35033
|
*/
|
|
34970
35034
|
|
|
34971
|
-
/* harmony default export */ var
|
|
35035
|
+
/* harmony default export */ var native_parser = (parseFromDocument);
|
|
34972
35036
|
;// CONCATENATED MODULE: ./src/transports/dash/manifest_parser.ts
|
|
34973
35037
|
/**
|
|
34974
35038
|
* Copyright 2015 CANAL+ Group
|
|
@@ -35046,12 +35110,17 @@ function generateManifestParser(options) {
|
|
|
35046
35110
|
* @returns {Object|Promise.<Object>}
|
|
35047
35111
|
*/
|
|
35048
35112
|
function runDefaultJsParser() {
|
|
35049
|
-
if (parsers.
|
|
35113
|
+
if (parsers.fastJs !== null) {
|
|
35114
|
+
var manifestStr = getManifestAsString(responseData);
|
|
35115
|
+
var parsedManifest = parsers.fastJs(manifestStr, dashParserOpts);
|
|
35116
|
+
return processMpdParserResponse(parsedManifest);
|
|
35117
|
+
} else if (parsers["native"] !== null) {
|
|
35118
|
+
var manifestDocument = getManifestAsDocument(responseData);
|
|
35119
|
+
var _parsedManifest = parsers["native"](manifestDocument, dashParserOpts);
|
|
35120
|
+
return processMpdParserResponse(_parsedManifest);
|
|
35121
|
+
} else {
|
|
35050
35122
|
throw new Error("No MPD parser is imported");
|
|
35051
35123
|
}
|
|
35052
|
-
var manifestDoc = getManifestAsDocument(responseData);
|
|
35053
|
-
var parsedManifest = parsers.js(manifestDoc, dashParserOpts);
|
|
35054
|
-
return processMpdParserResponse(parsedManifest);
|
|
35055
35124
|
}
|
|
35056
35125
|
/**
|
|
35057
35126
|
* Process return of one of the MPD parser.
|
|
@@ -35186,6 +35255,25 @@ function assertLoadedResourcesFormatArrayBuffer(loadedResources) {
|
|
|
35186
35255
|
throw new Error("Invalid data given to the LoadedRessource");
|
|
35187
35256
|
});
|
|
35188
35257
|
}
|
|
35258
|
+
/**
|
|
35259
|
+
* Try to convert a Manifest from an unknown format to an array of nodes as
|
|
35260
|
+
* parsed by our XML DOM parser.
|
|
35261
|
+
*
|
|
35262
|
+
* Throws if the format cannot be converted.
|
|
35263
|
+
* @param {*} manifestSrc
|
|
35264
|
+
* @returns {Array.<Object | string>}
|
|
35265
|
+
*/
|
|
35266
|
+
function getManifestAsString(manifestSrc) {
|
|
35267
|
+
if (manifestSrc instanceof ArrayBuffer) {
|
|
35268
|
+
return utf8ToStr(new Uint8Array(manifestSrc));
|
|
35269
|
+
} else if (typeof manifestSrc === "string") {
|
|
35270
|
+
return manifestSrc;
|
|
35271
|
+
} else if (manifestSrc instanceof Document) {
|
|
35272
|
+
return manifestSrc.documentElement.outerHTML;
|
|
35273
|
+
} else {
|
|
35274
|
+
throw new Error("DASH Manifest Parser: Unrecognized Manifest format");
|
|
35275
|
+
}
|
|
35276
|
+
}
|
|
35189
35277
|
/**
|
|
35190
35278
|
* Try to convert a Manifest from an unknown format to a `Document` format.
|
|
35191
35279
|
* Useful to exploit DOM-parsing APIs to quickly parse an XML Manifest.
|
|
@@ -37266,7 +37354,7 @@ function addDASHFeature(features) {
|
|
|
37266
37354
|
if (features.transports.dash === undefined) {
|
|
37267
37355
|
features.transports.dash = dash;
|
|
37268
37356
|
}
|
|
37269
|
-
features.dashParsers
|
|
37357
|
+
features.dashParsers["native"] = native_parser;
|
|
37270
37358
|
features.mainThreadMediaSourceInit = MediaSourceContentInitializer;
|
|
37271
37359
|
features.codecSupportProber = main_codec_support_prober;
|
|
37272
37360
|
}
|
|
@@ -50081,13 +50169,6 @@ function getStartDate(mediaElement) {
|
|
|
50081
50169
|
var hasMseInWorker = typeof MediaSource === "function" && /* eslint-disable-next-line */
|
|
50082
50170
|
MediaSource.canConstructInDedicatedWorker === true;
|
|
50083
50171
|
/* harmony default export */ var has_mse_in_worker = (hasMseInWorker);
|
|
50084
|
-
;// CONCATENATED MODULE: ./src/compat/has_webassembly.ts
|
|
50085
|
-
/**
|
|
50086
|
-
* If `true` the current environment support known WebAssembly API to
|
|
50087
|
-
* instantiate a WebAssembly module.
|
|
50088
|
-
*/
|
|
50089
|
-
var hasWebassembly = typeof WebAssembly === "object" && typeof WebAssembly.instantiate === "function";
|
|
50090
|
-
/* harmony default export */ var has_webassembly = (hasWebassembly);
|
|
50091
50172
|
;// CONCATENATED MODULE: ./src/errors/worker_initialization_error.ts
|
|
50092
50173
|
|
|
50093
50174
|
|
|
@@ -52845,7 +52926,6 @@ function public_api_arrayLikeToArray(arr, len) { if (len == null || len > arr.le
|
|
|
52845
52926
|
|
|
52846
52927
|
|
|
52847
52928
|
|
|
52848
|
-
|
|
52849
52929
|
|
|
52850
52930
|
|
|
52851
52931
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
@@ -52892,7 +52972,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) {
|
|
|
52892
52972
|
// Workaround to support Firefox autoplay on FF 42.
|
|
52893
52973
|
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
|
|
52894
52974
|
videoElement.preload = "auto";
|
|
52895
|
-
_this.version = /* PLAYER_VERSION */"4.0.0-dev.
|
|
52975
|
+
_this.version = /* PLAYER_VERSION */"4.0.0-dev.2024022300";
|
|
52896
52976
|
_this.log = src_log;
|
|
52897
52977
|
_this.state = "STOPPED";
|
|
52898
52978
|
_this.videoElement = videoElement;
|
|
@@ -52947,10 +53027,6 @@ var Player = /*#__PURE__*/function (_EventEmitter) {
|
|
|
52947
53027
|
src_log.warn("API: Cannot rely on a WebWorker: Worker API unavailable");
|
|
52948
53028
|
return rej(new WorkerInitializationError("INCOMPATIBLE_ERROR", "Worker unavailable"));
|
|
52949
53029
|
}
|
|
52950
|
-
if (!has_webassembly) {
|
|
52951
|
-
src_log.warn("API: Cannot rely on a WebWorker: WebAssembly unavailable");
|
|
52952
|
-
return rej(new WorkerInitializationError("INCOMPATIBLE_ERROR", "WebAssembly unavailable"));
|
|
52953
|
-
}
|
|
52954
53030
|
if (typeof workerSettings.workerUrl === "string") {
|
|
52955
53031
|
_this2._priv_worker = new Worker(workerSettings.workerUrl);
|
|
52956
53032
|
} else {
|
|
@@ -55320,7 +55396,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) {
|
|
|
55320
55396
|
}]);
|
|
55321
55397
|
return Player;
|
|
55322
55398
|
}(EventEmitter);
|
|
55323
|
-
Player.version = /* PLAYER_VERSION */"4.0.0-dev.
|
|
55399
|
+
Player.version = /* PLAYER_VERSION */"4.0.0-dev.2024022300";
|
|
55324
55400
|
/* harmony default export */ var public_api = (Player);
|
|
55325
55401
|
;// CONCATENATED MODULE: ./src/main_thread/api/index.ts
|
|
55326
55402
|
/**
|