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