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.
@@ -17208,6 +17208,17 @@ 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;
17211
17222
  var _objCreate = Object.create || function() {
17212
17223
  function F() {
17213
17224
  }
@@ -18566,7 +18577,7 @@ var require_stream_engine_player = __commonJS({
18566
18577
  });
18567
18578
  }
18568
18579
  var vttregion = VTTRegion;
18569
- var window$1 = window_1$1;
18580
+ var window$1 = window_1;
18570
18581
  var vttjs = browserIndex.exports = {
18571
18582
  WebVTT: vtt,
18572
18583
  VTTCue: vttcue,
@@ -18758,17 +18769,6 @@ var require_stream_engine_player = __commonJS({
18758
18769
  };
18759
18770
  return _extends.apply(this, arguments);
18760
18771
  }
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$1.location.href, baseUrl);
20146
+ baseUrl = urlToolkit.buildAbsoluteURL(window_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$1.atob(b64Text);
20807
+ var decodedString = window_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$1.isNaN(parsedPeriodId) ? index : parsedPeriodId;
20931
+ var periodIndex = window_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$1.DOMParser();
20960
+ var parser = new window_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) {
@@ -59805,7 +59805,7 @@ var require_stream_engine_player = __commonJS({
59805
59805
  player.removeClass("vjs-interactive");
59806
59806
  }
59807
59807
  });
59808
- if (player.info.isDVR) {
59808
+ if (scope.options.isDVR) {
59809
59809
  player.addClass("vjs-live-dvr");
59810
59810
  }
59811
59811
  if (scope.options.captions) {