stream-engine-player 0.0.5 → 0.0.7

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