@vindral/web-sdk 4.8.2-24-g6a89da20e → 4.8.2-27-ge01b9d3a
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/{nFreW7Nt.js → C6THE7g1.js} +8 -7
- package/{QWgZmxMJ.js → CPosj8wE.js} +2 -2
- package/{CV2d2e7z.js → DGp5pXQS.js} +2 -2
- package/{C-2YQ1DN.js → DeDKEcFp.js} +1 -1
- package/{B5RavaT7.js → OwGxSXha.js} +1 -1
- package/core.js +1 -1
- package/legacy.es.js +5 -4
- package/legacy.umd.js +2 -2
- package/{DGcm5Ovk.js → ooDqeHgz.js} +1 -1
- package/package.json +1 -1
- package/player.js +2 -2
- package/vindral-player-component.js +1 -1
|
@@ -9719,7 +9719,7 @@ var Sx = (e, t) => `${e}\u0000${t == null ? "" : t}`, Cx = (e, t, n, r) => e ===
|
|
|
9719
9719
|
case "audio": {
|
|
9720
9720
|
let n, i, a = !1;
|
|
9721
9721
|
if (c) {
|
|
9722
|
-
let { WebCodecsAudioDecoderContext: t } = yield import("./
|
|
9722
|
+
let { WebCodecsAudioDecoderContext: t } = yield import("./DeDKEcFp.js");
|
|
9723
9723
|
if (a = t.isSupported(), a) try {
|
|
9724
9724
|
n = yield t.create(r.createContext("WebCodecsAudio")), h = !0;
|
|
9725
9725
|
} catch (t) {
|
|
@@ -9731,7 +9731,7 @@ var Sx = (e, t) => `${e}\u0000${t == null ? "" : t}`, Cx = (e, t, n, r) => e ===
|
|
|
9731
9731
|
}
|
|
9732
9732
|
if (!n) {
|
|
9733
9733
|
if (e.codec === "opus") {
|
|
9734
|
-
let { OpusDecoderContext: t } = yield import("./
|
|
9734
|
+
let { OpusDecoderContext: t } = yield import("./OwGxSXha.js");
|
|
9735
9735
|
n = yield t.create(e.sampleRate || 48e3, e.channels || 2);
|
|
9736
9736
|
} else {
|
|
9737
9737
|
let t = c ? i ? `WebCodecs audio decoder initialization failed: ${i.message}` : a ? "WebCodecs audio decoder could not be initialized." : "WebCodecs AudioDecoder API is not supported in this environment." : "WebCodecs audio decoding is disabled.";
|
|
@@ -9748,7 +9748,7 @@ var Sx = (e, t) => `${e}\u0000${t == null ? "" : t}`, Cx = (e, t, n, r) => e ===
|
|
|
9748
9748
|
break;
|
|
9749
9749
|
}
|
|
9750
9750
|
case "video": {
|
|
9751
|
-
let { VideoDecoderWorkerContext: n } = yield import("./
|
|
9751
|
+
let { VideoDecoderWorkerContext: n } = yield import("./ooDqeHgz.js"), a = yield n.create(r.createContext("VideoDecoderWorker"), i, s, c, l, u, () => o.currentTime, d, f);
|
|
9752
9752
|
m = a.isWebCodecs, g = a.usingOffscreenCanvas, t.set(e.type, {
|
|
9753
9753
|
buffer: [],
|
|
9754
9754
|
decoderContext: a,
|
|
@@ -10756,7 +10756,7 @@ function hS({ initSegments: e, pendingSamples: t }) {
|
|
|
10756
10756
|
var gS = class {
|
|
10757
10757
|
constructor(n, r, i) {
|
|
10758
10758
|
var a = this;
|
|
10759
|
-
e(this, "maxChunkSize", 20), e(this, "minConsecutiveErrorsBeforeEmit", 5), e(this, "maxSecondsInBuffer", 60), e(this, "logger", void 0), e(this, "timers", j.create()), e(this, "emitter", void 0), e(this, "mediaElement", void 0), e(this, "mediaSource", new rc()), e(this, "trackContexts", /* @__PURE__ */ new Map()), e(this, "autoRecoverFromMediaErrors", !0), e(this, "quotaErrorCount", 0), e(this, "recoveredFromErrorCount", 0), e(this, "sourceOpenStartTime", performance.now()), e(this, "sourceOpenEndTime", performance.now()), e(this, "pendingTracksToAddSourceBuffers", void 0), e(this, "hasAddedInitialPosterFrame", !0), e(this, "videoKeyframeTimestamps", []), e(this, "isReopening", !1), e(this, "pendingMediaError", void 0), e(this, "isFlushDeferred", !1), e(this, "hasRecoveredSinceShown", !1), e(this, "playbackStallCount", 0), e(this, "hasStartedPlayback", !1), e(this, "isPlaybackStalled", !1), e(this, "load", () => {
|
|
10759
|
+
e(this, "maxChunkSize", 20), e(this, "minConsecutiveErrorsBeforeEmit", 5), e(this, "maxSecondsInBuffer", 60), e(this, "recoveryBeforeHideWindowMs", 1e3), e(this, "logger", void 0), e(this, "timers", j.create()), e(this, "emitter", void 0), e(this, "mediaElement", void 0), e(this, "mediaSource", new rc()), e(this, "trackContexts", /* @__PURE__ */ new Map()), e(this, "autoRecoverFromMediaErrors", !0), e(this, "quotaErrorCount", 0), e(this, "recoveredFromErrorCount", 0), e(this, "sourceOpenStartTime", performance.now()), e(this, "sourceOpenEndTime", performance.now()), e(this, "pendingTracksToAddSourceBuffers", void 0), e(this, "hasAddedInitialPosterFrame", !0), e(this, "videoKeyframeTimestamps", []), e(this, "isReopening", !1), e(this, "pendingMediaError", void 0), e(this, "isFlushDeferred", !1), e(this, "hasRecoveredSinceShown", !1), e(this, "lastRecoveredAt", -Infinity), e(this, "playbackStallCount", 0), e(this, "hasStartedPlayback", !1), e(this, "isPlaybackStalled", !1), e(this, "load", () => {
|
|
10760
10760
|
this.emitter.on("init segment", this.init), this.emitter.on("coded sample", this.onCodedSample), this.emitter.on("flush buffers", this.flushBuffers), this.emitter.on("fragment", this.onFragment), this.emitter.on("page active", this.onPageActive);
|
|
10761
10761
|
}), e(this, "unload", () => {
|
|
10762
10762
|
this.logger.debug("Unloading module..."), this.pendingMediaError = void 0, this.emitter.off("init segment", this.init), this.emitter.off("coded sample", this.onCodedSample), this.emitter.off("flush buffers", this.flushBuffers), this.emitter.off("fragment", this.onFragment), this.emitter.off("page active", this.onPageActive), this.mediaSource.off("source ended", this.onSourceEnded), this.mediaSource.off("source open", this.onSourceOpen), this.mediaElement.removeEventListener("error", this.onMediaElementError), this.mediaElement.removeEventListener("waiting", this.onPlaybackStall), this.mediaElement.removeEventListener("stalled", this.onPlaybackStall), this.mediaElement.removeEventListener("playing", this.onPlaybackProgress), this.mediaElement.removeEventListener("pause", this.onPlaybackPauseOrSeek), this.mediaElement.removeEventListener("play", this.onPlay), this.mediaElement.removeEventListener("seeking", this.onPlaybackPauseOrSeek), this.mediaSource.detach(this.mediaElement), this.trackContexts.forEach((e) => {
|
|
@@ -11030,7 +11030,7 @@ var gS = class {
|
|
|
11030
11030
|
this.logger.debug("source opened"), this.sourceOpenEndTime = performance.now(), this.isReopening = !1;
|
|
11031
11031
|
let e = this.pendingTracksToAddSourceBuffers, t = this.pendingMediaError;
|
|
11032
11032
|
this.pendingTracksToAddSourceBuffers = void 0, e && this.setSourceBuffers(e).then(() => {
|
|
11033
|
-
t && this.pendingMediaError === t && (this.pendingMediaError = void 0, this.hasRecoveredSinceShown = !0, this.emitter.emit("recovered from media error", {
|
|
11033
|
+
t && this.pendingMediaError === t && (this.pendingMediaError = void 0, document.visibilityState === "visible" ? this.lastRecoveredAt = performance.now() : this.hasRecoveredSinceShown = !0, this.emitter.emit("recovered from media error", {
|
|
11034
11034
|
error: t,
|
|
11035
11035
|
count: this.recoveredFromErrorCount
|
|
11036
11036
|
}));
|
|
@@ -11070,7 +11070,8 @@ var gS = class {
|
|
|
11070
11070
|
}), e(this, "onPlay", () => {
|
|
11071
11071
|
this.isFlushDeferred && !this.mediaElement.paused && this.flushBuffers();
|
|
11072
11072
|
}), e(this, "onPageActive", (e) => {
|
|
11073
|
-
if (e
|
|
11073
|
+
if (!e) performance.now() - this.lastRecoveredAt < this.recoveryBeforeHideWindowMs && (this.hasRecoveredSinceShown = !0), this.lastRecoveredAt = -Infinity;
|
|
11074
|
+
else if (this.isFlushDeferred && this.flushBuffers(), this.hasRecoveredSinceShown) {
|
|
11074
11075
|
var t;
|
|
11075
11076
|
this.hasRecoveredSinceShown = !1, ((t = this.trackContexts.get("video")) == null ? void 0 : t.state) === "initialized" && (this.mediaElement.currentTime += .05);
|
|
11076
11077
|
}
|
|
@@ -12735,7 +12736,7 @@ var uC = class {
|
|
|
12735
12736
|
let e = this.modules.canvasModule instanceof dS || void 0;
|
|
12736
12737
|
return p({
|
|
12737
12738
|
uptime: this.uptime,
|
|
12738
|
-
version: "4.8.2-
|
|
12739
|
+
version: "4.8.2-27-ge01b9d3a",
|
|
12739
12740
|
clientId: this.clientId,
|
|
12740
12741
|
sessionId: this.sessionId,
|
|
12741
12742
|
channelId: this.channelId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, t } from "./DvtbAkGW.js";
|
|
2
|
-
import { A as n, C as r, D as i, E as a, F as o, M as s, N as c, O as l, S as u, T as d, _ as f, b as ee, g as te, j as ne, k as re, t as ie, v as ae, w as oe, x as se, y as ce } from "./
|
|
2
|
+
import { A as n, C as r, D as i, E as a, F as o, M as s, N as c, O as l, S as u, T as d, _ as f, b as ee, g as te, j as ne, k as re, t as ie, v as ae, w as oe, x as se, y as ce } from "./C6THE7g1.js";
|
|
3
3
|
import { a as p, i as m, n as le, o as h, r as ue, s as g } from "./Bz5OiWeK.js";
|
|
4
4
|
import { c as de, n as fe, t as pe } from "./BeCY4GvT.js";
|
|
5
5
|
import { t as me } from "./DHV7WJZT.js";
|
|
@@ -2999,7 +2999,7 @@ function To() {
|
|
|
2999
2999
|
h(H, this, co).call(this), m(ta, this) && (clearTimeout(m(ta, this)), p(ta, this, null)), m(na, this).stop(), this.disconnectListener(this);
|
|
3000
3000
|
}
|
|
3001
3001
|
function Eo() {
|
|
3002
|
-
let e = () => (customElements.get("vindral-debug-panel") || import("./
|
|
3002
|
+
let e = () => (customElements.get("vindral-debug-panel") || import("./DGp5pXQS.js").then((e) => e.n).then(({ registerDebugComponents: e }) => e()), this.setAttribute(_.DEBUG_PANEL_OPEN, ""), m(I, this));
|
|
3003
3003
|
window._vindralDebug = e, p(ba, this, e);
|
|
3004
3004
|
}
|
|
3005
3005
|
function Do() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o } from "./
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o } from "./CPosj8wE.js";
|
|
2
2
|
import { n as s, t as c } from "./DvtbAkGW.js";
|
|
3
|
-
import { _ as ee } from "./
|
|
3
|
+
import { _ as ee } from "./C6THE7g1.js";
|
|
4
4
|
import { a as l, i as u, o as d, s as f } from "./Bz5OiWeK.js";
|
|
5
5
|
import { l as p } from "./BeCY4GvT.js";
|
|
6
6
|
// \0rolldown/runtime.js
|
package/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { o as AUTHENTICATION_EXPIRED_CODE, s as AUTHENTICATION_FAILED_CODE, c as CHANNEL_NOT_FOUND_CODE, l as CHANNEL_NOT_LIVE_CODE, u as CONNECTION_FAILED_AFTER_RETRIES_CODE, d as CONNECTION_FAILED_CODE, f as DISCONNECTED_BY_EDGE, p as INACTIVITY_CODE, m as NO_INCOMING_DATA, t as Vindral, h as VindralError } from "./
|
|
1
|
+
export { o as AUTHENTICATION_EXPIRED_CODE, s as AUTHENTICATION_FAILED_CODE, c as CHANNEL_NOT_FOUND_CODE, l as CHANNEL_NOT_LIVE_CODE, u as CONNECTION_FAILED_AFTER_RETRIES_CODE, d as CONNECTION_FAILED_CODE, f as DISCONNECTED_BY_EDGE, p as INACTIVITY_CODE, m as NO_INCOMING_DATA, t as Vindral, h as VindralError } from "./C6THE7g1.js";
|
package/legacy.es.js
CHANGED
|
@@ -12180,7 +12180,7 @@ function Gw({ initSegments: e, pendingSamples: t }) {
|
|
|
12180
12180
|
var Kw = class {
|
|
12181
12181
|
constructor(e, t, n) {
|
|
12182
12182
|
var r = this;
|
|
12183
|
-
u(this, "maxChunkSize", 20), u(this, "minConsecutiveErrorsBeforeEmit", 5), u(this, "maxSecondsInBuffer", 60), u(this, "logger", void 0), u(this, "timers", or.create()), u(this, "emitter", void 0), u(this, "mediaElement", void 0), u(this, "mediaSource", new Rl()), u(this, "trackContexts", /* @__PURE__ */ new Map()), u(this, "autoRecoverFromMediaErrors", !0), u(this, "quotaErrorCount", 0), u(this, "recoveredFromErrorCount", 0), u(this, "sourceOpenStartTime", performance.now()), u(this, "sourceOpenEndTime", performance.now()), u(this, "pendingTracksToAddSourceBuffers", void 0), u(this, "hasAddedInitialPosterFrame", !0), u(this, "videoKeyframeTimestamps", []), u(this, "isReopening", !1), u(this, "pendingMediaError", void 0), u(this, "isFlushDeferred", !1), u(this, "hasRecoveredSinceShown", !1), u(this, "playbackStallCount", 0), u(this, "hasStartedPlayback", !1), u(this, "isPlaybackStalled", !1), u(this, "load", () => {
|
|
12183
|
+
u(this, "maxChunkSize", 20), u(this, "minConsecutiveErrorsBeforeEmit", 5), u(this, "maxSecondsInBuffer", 60), u(this, "recoveryBeforeHideWindowMs", 1e3), u(this, "logger", void 0), u(this, "timers", or.create()), u(this, "emitter", void 0), u(this, "mediaElement", void 0), u(this, "mediaSource", new Rl()), u(this, "trackContexts", /* @__PURE__ */ new Map()), u(this, "autoRecoverFromMediaErrors", !0), u(this, "quotaErrorCount", 0), u(this, "recoveredFromErrorCount", 0), u(this, "sourceOpenStartTime", performance.now()), u(this, "sourceOpenEndTime", performance.now()), u(this, "pendingTracksToAddSourceBuffers", void 0), u(this, "hasAddedInitialPosterFrame", !0), u(this, "videoKeyframeTimestamps", []), u(this, "isReopening", !1), u(this, "pendingMediaError", void 0), u(this, "isFlushDeferred", !1), u(this, "hasRecoveredSinceShown", !1), u(this, "lastRecoveredAt", -Infinity), u(this, "playbackStallCount", 0), u(this, "hasStartedPlayback", !1), u(this, "isPlaybackStalled", !1), u(this, "load", () => {
|
|
12184
12184
|
this.emitter.on("init segment", this.init), this.emitter.on("coded sample", this.onCodedSample), this.emitter.on("flush buffers", this.flushBuffers), this.emitter.on("fragment", this.onFragment), this.emitter.on("page active", this.onPageActive);
|
|
12185
12185
|
}), u(this, "unload", () => {
|
|
12186
12186
|
this.logger.debug("Unloading module..."), this.pendingMediaError = void 0, this.emitter.off("init segment", this.init), this.emitter.off("coded sample", this.onCodedSample), this.emitter.off("flush buffers", this.flushBuffers), this.emitter.off("fragment", this.onFragment), this.emitter.off("page active", this.onPageActive), this.mediaSource.off("source ended", this.onSourceEnded), this.mediaSource.off("source open", this.onSourceOpen), this.mediaElement.removeEventListener("error", this.onMediaElementError), this.mediaElement.removeEventListener("waiting", this.onPlaybackStall), this.mediaElement.removeEventListener("stalled", this.onPlaybackStall), this.mediaElement.removeEventListener("playing", this.onPlaybackProgress), this.mediaElement.removeEventListener("pause", this.onPlaybackPauseOrSeek), this.mediaElement.removeEventListener("play", this.onPlay), this.mediaElement.removeEventListener("seeking", this.onPlaybackPauseOrSeek), this.mediaSource.detach(this.mediaElement), this.trackContexts.forEach((e) => {
|
|
@@ -12454,7 +12454,7 @@ var Kw = class {
|
|
|
12454
12454
|
this.logger.debug("source opened"), this.sourceOpenEndTime = performance.now(), this.isReopening = !1;
|
|
12455
12455
|
let e = this.pendingTracksToAddSourceBuffers, t = this.pendingMediaError;
|
|
12456
12456
|
this.pendingTracksToAddSourceBuffers = void 0, e && this.setSourceBuffers(e).then(() => {
|
|
12457
|
-
t && this.pendingMediaError === t && (this.pendingMediaError = void 0, this.hasRecoveredSinceShown = !0, this.emitter.emit("recovered from media error", {
|
|
12457
|
+
t && this.pendingMediaError === t && (this.pendingMediaError = void 0, document.visibilityState === "visible" ? this.lastRecoveredAt = performance.now() : this.hasRecoveredSinceShown = !0, this.emitter.emit("recovered from media error", {
|
|
12458
12458
|
error: t,
|
|
12459
12459
|
count: this.recoveredFromErrorCount
|
|
12460
12460
|
}));
|
|
@@ -12494,7 +12494,8 @@ var Kw = class {
|
|
|
12494
12494
|
}), u(this, "onPlay", () => {
|
|
12495
12495
|
this.isFlushDeferred && !this.mediaElement.paused && this.flushBuffers();
|
|
12496
12496
|
}), u(this, "onPageActive", (e) => {
|
|
12497
|
-
if (e
|
|
12497
|
+
if (!e) performance.now() - this.lastRecoveredAt < this.recoveryBeforeHideWindowMs && (this.hasRecoveredSinceShown = !0), this.lastRecoveredAt = -Infinity;
|
|
12498
|
+
else if (this.isFlushDeferred && this.flushBuffers(), this.hasRecoveredSinceShown) {
|
|
12498
12499
|
var t;
|
|
12499
12500
|
this.hasRecoveredSinceShown = !1, ((t = this.trackContexts.get("video")) == null ? void 0 : t.state) === "initialized" && (this.mediaElement.currentTime += .05);
|
|
12500
12501
|
}
|
|
@@ -14163,7 +14164,7 @@ var iE = 1e4, aE = 300, oE = 3e3, sE = 1e4, cE = 250, lE = 921600, uE = /* @__PU
|
|
|
14163
14164
|
let e = this.modules.canvasModule instanceof Vw || void 0;
|
|
14164
14165
|
return L({
|
|
14165
14166
|
uptime: this.uptime,
|
|
14166
|
-
version: "4.8.2-
|
|
14167
|
+
version: "4.8.2-27-ge01b9d3a",
|
|
14167
14168
|
clientId: this.clientId,
|
|
14168
14169
|
sessionId: this.sessionId,
|
|
14169
14170
|
channelId: this.channelId,
|