stream-engine-player 0.0.7 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -17208,17 +17208,6 @@ var require_stream_engine_player = __commonJS({
|
|
17208
17208
|
function noop$1() {
|
17209
17209
|
}
|
17210
17210
|
var browserIndex = { exports: {} };
|
17211
|
-
var win$1;
|
17212
|
-
if (typeof window !== "undefined") {
|
17213
|
-
win$1 = window;
|
17214
|
-
} else if (typeof commonjsGlobal !== "undefined") {
|
17215
|
-
win$1 = commonjsGlobal;
|
17216
|
-
} else if (typeof self !== "undefined") {
|
17217
|
-
win$1 = self;
|
17218
|
-
} else {
|
17219
|
-
win$1 = {};
|
17220
|
-
}
|
17221
|
-
var window_1 = win$1;
|
17222
17211
|
var _objCreate = Object.create || function() {
|
17223
17212
|
function F() {
|
17224
17213
|
}
|
@@ -18577,7 +18566,7 @@ var require_stream_engine_player = __commonJS({
|
|
18577
18566
|
});
|
18578
18567
|
}
|
18579
18568
|
var vttregion = VTTRegion;
|
18580
|
-
var window$1 = window_1;
|
18569
|
+
var window$1 = window_1$1;
|
18581
18570
|
var vttjs = browserIndex.exports = {
|
18582
18571
|
WebVTT: vtt,
|
18583
18572
|
VTTCue: vttcue,
|
@@ -18769,6 +18758,17 @@ var require_stream_engine_player = __commonJS({
|
|
18769
18758
|
};
|
18770
18759
|
return _extends.apply(this, arguments);
|
18771
18760
|
}
|
18761
|
+
var win$1;
|
18762
|
+
if (typeof window !== "undefined") {
|
18763
|
+
win$1 = window;
|
18764
|
+
} else if (typeof commonjsGlobal !== "undefined") {
|
18765
|
+
win$1 = commonjsGlobal;
|
18766
|
+
} else if (typeof self !== "undefined") {
|
18767
|
+
win$1 = self;
|
18768
|
+
} else {
|
18769
|
+
win$1 = {};
|
18770
|
+
}
|
18771
|
+
var window_1 = win$1;
|
18772
18772
|
var atob$1 = function atob2(s) {
|
18773
18773
|
return window_1.atob ? window_1.atob(s) : Buffer.from(s, "base64").toString("binary");
|
18774
18774
|
};
|
@@ -20143,7 +20143,7 @@ var require_stream_engine_player = __commonJS({
|
|
20143
20143
|
return relativeUrl;
|
20144
20144
|
}
|
20145
20145
|
if (!/\/\//i.test(baseUrl)) {
|
20146
|
-
baseUrl = urlToolkit.buildAbsoluteURL(window_1.location.href, baseUrl);
|
20146
|
+
baseUrl = urlToolkit.buildAbsoluteURL(window_1$1.location.href, baseUrl);
|
20147
20147
|
}
|
20148
20148
|
return urlToolkit.buildAbsoluteURL(baseUrl, relativeUrl);
|
20149
20149
|
};
|
@@ -20804,7 +20804,7 @@ var require_stream_engine_player = __commonJS({
|
|
20804
20804
|
}, {});
|
20805
20805
|
};
|
20806
20806
|
function decodeB64ToUint8Array(b64Text) {
|
20807
|
-
var decodedString = window_1.atob(b64Text);
|
20807
|
+
var decodedString = window_1$1.atob(b64Text);
|
20808
20808
|
var array = new Uint8Array(decodedString.length);
|
20809
20809
|
for (var i2 = 0; i2 < decodedString.length; i2++) {
|
20810
20810
|
array[i2] = decodedString.charCodeAt(i2);
|
@@ -20928,7 +20928,7 @@ var require_stream_engine_player = __commonJS({
|
|
20928
20928
|
var periodBaseUrls = buildBaseUrls(mpdBaseUrls, findChildren(period, "BaseURL"));
|
20929
20929
|
var periodAtt = parseAttributes(period);
|
20930
20930
|
var parsedPeriodId = parseInt(periodAtt.id, 10);
|
20931
|
-
var periodIndex = window_1.isNaN(parsedPeriodId) ? index : parsedPeriodId;
|
20931
|
+
var periodIndex = window_1$1.isNaN(parsedPeriodId) ? index : parsedPeriodId;
|
20932
20932
|
var periodAttributes = merge(mpdAttributes, {
|
20933
20933
|
periodIndex
|
20934
20934
|
});
|
@@ -20957,7 +20957,7 @@ var require_stream_engine_player = __commonJS({
|
|
20957
20957
|
if (manifestString === "") {
|
20958
20958
|
throw new Error(errors.DASH_EMPTY_MANIFEST);
|
20959
20959
|
}
|
20960
|
-
var parser = new window_1.DOMParser();
|
20960
|
+
var parser = new window_1$1.DOMParser();
|
20961
20961
|
var xml = parser.parseFromString(manifestString, "application/xml");
|
20962
20962
|
var mpd = xml && xml.documentElement.tagName === "MPD" ? xml.documentElement : null;
|
20963
20963
|
if (!mpd || mpd && mpd.getElementsByTagName("parsererror").length > 0) {
|