@beyondwords/player 0.1.33 → 0.1.35

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/dist/es.js CHANGED
@@ -45,7 +45,7 @@ var pi = (t, e, i) => new Promise((n, o) => {
45
45
  }, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(s, l);
46
46
  a((i = i.apply(t, e)).next());
47
47
  });
48
- /*! version:"0.1.33" */
48
+ /*! version:"0.1.35" */
49
49
  function ee() {
50
50
  }
51
51
  const yu = (t) => t;
@@ -593,7 +593,7 @@ class we {
593
593
  }
594
594
  const Nu = "4";
595
595
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nu);
596
- const xu = "@beyondwords/player", Yo = "0.1.33", di = (t, e) => {
596
+ const xu = "@beyondwords/player", Yo = "0.1.35", di = (t, e) => {
597
597
  t = [t].flat().join(`
598
598
  `);
599
599
  let i = `${xu}:
@@ -952,7 +952,7 @@ const gc = (t, e) => pi(void 0, null, function* () {
952
952
  };
953
953
  }, hc = (t, e, i, n, o, s, l) => {
954
954
  var c, g;
955
- if (window.disableMediaLoad || ((c = n == null ? void 0 : n.detachMedia) == null || c.call(n), (g = n == null ? void 0 : n.destroy) == null || g.call(n), !e || !t))
955
+ if (window.disableMediaLoad || ((c = n == null ? void 0 : n.detachMedia) == null || c.call(n), (g = n == null ? void 0 : n.destroy) == null || g.call(n), n = null, !e || !t))
956
956
  return;
957
957
  const a = e.paused, r = e.playbackRate, u = e.sourceUrl && e.sourceUrl !== t.url;
958
958
  if (er(t, e)) {
@@ -968,7 +968,7 @@ const gc = (t, e) => pi(void 0, null, function* () {
968
968
  n.manifestLoaded = !0, s({ fromHls: !0 });
969
969
  }), n.loadSource(t.url), n.attachMedia(e);
970
970
  } else
971
- u && (e.removeAttribute("src"), e.load());
971
+ u ? (e.removeAttribute("src"), e.load()) : e.sourceUrl && s({});
972
972
  return a || l(), e.playbackRate = r, e.sourceUrl = t.url, n || "not-used";
973
973
  }, tr = (t, e, i = 10) => {
974
974
  if (!(!t || t === "not-used" || t.loadMediaCalled)) {