@vindral/web-sdk 4.7.1-1-g9d41bb8aa → 4.7.1-2-g72bf274f
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/{DIsNeRuI.js → D5NaiJmn.js} +1 -1
- package/{DKr8WNnY.js → DBP00llQ.js} +6 -6
- package/core.js +1 -1
- package/legacy.es.js +6 -6
- package/legacy.umd.js +2 -2
- package/package.json +1 -1
- package/player.js +2 -2
- package/vindral-player-component.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, t } from "./BsfwXDui.js";
|
|
2
|
-
import { C as n, D as r, E as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as ee, k as d, m as te, p as ne, t as re, v as ie, w as ae, x as oe, y as se } from "./
|
|
2
|
+
import { C as n, D as r, E as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as ee, k as d, m as te, p as ne, t as re, v as ie, w as ae, x as oe, y as se } from "./DBP00llQ.js";
|
|
3
3
|
import { t as ce } from "./CuYn2z5X.js";
|
|
4
4
|
import { i as f, n as p, r as m, t as h } from "./DSw1XhvD.js";
|
|
5
5
|
import { c as le, n as ue, t as de } from "./D40eQS8l.js";
|
|
@@ -3847,8 +3847,8 @@ var rc = (e, t, n) => {
|
|
|
3847
3847
|
this._isPaused = !1, this.element.pause();
|
|
3848
3848
|
}), e(this, "tryPlay", () => {
|
|
3849
3849
|
this.element.muted = this._userProvidedMuted, this._play().catch(n);
|
|
3850
|
-
}), e(this, "play", () => {
|
|
3851
|
-
this.element.muted = this._userProvidedMuted, this._play().catch((e) => {
|
|
3850
|
+
}), e(this, "play", ({ preserveMuted: e = !1 } = {}) => {
|
|
3851
|
+
e || (this.element.muted = this._userProvidedMuted), this._play(e).catch((e) => {
|
|
3852
3852
|
if (e instanceof Error && e.name !== "AbortError") {
|
|
3853
3853
|
let t = new A("Media Play Error", {
|
|
3854
3854
|
source: e,
|
|
@@ -3858,9 +3858,9 @@ var rc = (e, t, n) => {
|
|
|
3858
3858
|
this.emit("error", t);
|
|
3859
3859
|
}
|
|
3860
3860
|
});
|
|
3861
|
-
}), e(this, "_play", t(function* () {
|
|
3861
|
+
}), e(this, "_play", t(function* (e = !1) {
|
|
3862
3862
|
try {
|
|
3863
|
-
yield d.element.play(), d._userHasProvidedInput = !d.muted || d._userProvidedMuted;
|
|
3863
|
+
yield d.element.play(), d._userHasProvidedInput = e && d._userHasProvidedInput || !d.muted || d._userProvidedMuted;
|
|
3864
3864
|
} catch (e) {
|
|
3865
3865
|
if (e instanceof Error && e.name === "NotAllowedError") if (d._userHasProvidedInput = !1, d.element.muted) d.emit("needs user input", {
|
|
3866
3866
|
forAudio: !0,
|
|
@@ -12453,7 +12453,7 @@ var Ax = class {
|
|
|
12453
12453
|
let e = this.modules.canvasModule instanceof Ib ? !0 : void 0;
|
|
12454
12454
|
return y({
|
|
12455
12455
|
uptime: this.uptime,
|
|
12456
|
-
version: "4.7.1-
|
|
12456
|
+
version: "4.7.1-2-g72bf274f",
|
|
12457
12457
|
clientId: this.clientId,
|
|
12458
12458
|
sessionId: this.sessionId,
|
|
12459
12459
|
channelId: this.channelId,
|
|
@@ -12644,7 +12644,7 @@ var Ax = class {
|
|
|
12644
12644
|
var r;
|
|
12645
12645
|
(r = this.modules.decoder) == null || r.enableBackgroundTimers();
|
|
12646
12646
|
}
|
|
12647
|
-
this.resumeModules(), this.isSuspended = !1, this.isHiddenWithBackgroundPlayback() && this.scheduleInactivityDisconnect();
|
|
12647
|
+
this.resumeModules(), this.isSuspended = !1, this.playbackSource instanceof sc ? this.playbackSource.element.paused && this.playbackSource.play({ preserveMuted: !0 }) : this.playbackSource.play(), this.isHiddenWithBackgroundPlayback() && this.scheduleInactivityDisconnect();
|
|
12648
12648
|
});
|
|
12649
12649
|
let T;
|
|
12650
12650
|
this.emitter.on("context switch complete", () => {
|
package/core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, o, r as s, s as c, t as l, u } from "./
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, o, r as s, s as c, t as l, u } from "./DBP00llQ.js";
|
|
2
2
|
export { s as AUTHENTICATION_EXPIRED_CODE, i as AUTHENTICATION_FAILED_CODE, e as CHANNEL_NOT_FOUND_CODE, o as CHANNEL_NOT_LIVE_CODE, c as CONNECTION_FAILED_AFTER_RETRIES_CODE, t as CONNECTION_FAILED_CODE, a as DISCONNECTED_BY_EDGE, u as INACTIVITY_CODE, n as NO_INCOMING_DATA, l as Vindral, r as VindralError };
|
package/legacy.es.js
CHANGED
|
@@ -4674,8 +4674,8 @@ var $l = class e extends $t {
|
|
|
4674
4674
|
this._isPaused = !1, this.element.pause();
|
|
4675
4675
|
}), p(this, "tryPlay", () => {
|
|
4676
4676
|
this.element.muted = this._userProvidedMuted, this._play().catch(C);
|
|
4677
|
-
}), p(this, "play", () => {
|
|
4678
|
-
this.element.muted = this._userProvidedMuted, this._play().catch((e) => {
|
|
4677
|
+
}), p(this, "play", ({ preserveMuted: e = !1 } = {}) => {
|
|
4678
|
+
e || (this.element.muted = this._userProvidedMuted), this._play(e).catch((e) => {
|
|
4679
4679
|
if (e instanceof Error && e.name !== "AbortError") {
|
|
4680
4680
|
let t = new W("Media Play Error", {
|
|
4681
4681
|
source: e,
|
|
@@ -4685,9 +4685,9 @@ var $l = class e extends $t {
|
|
|
4685
4685
|
this.emit("error", t);
|
|
4686
4686
|
}
|
|
4687
4687
|
});
|
|
4688
|
-
}), p(this, "_play", P(function* () {
|
|
4688
|
+
}), p(this, "_play", P(function* (e = !1) {
|
|
4689
4689
|
try {
|
|
4690
|
-
yield s.element.play(), s._userHasProvidedInput = !s.muted || s._userProvidedMuted;
|
|
4690
|
+
yield s.element.play(), s._userHasProvidedInput = e && s._userHasProvidedInput || !s.muted || s._userProvidedMuted;
|
|
4691
4691
|
} catch (e) {
|
|
4692
4692
|
if (e instanceof Error && e.name === "NotAllowedError") if (s._userHasProvidedInput = !1, s.element.muted) s.emit("needs user input", {
|
|
4693
4693
|
forAudio: !0,
|
|
@@ -14037,7 +14037,7 @@ var Lw = 1e4, Rw = 1280 * 720, zw = /* @__PURE__ */ new WeakMap(), Bw = /* @__PU
|
|
|
14037
14037
|
let e = this.modules.canvasModule instanceof TC ? !0 : void 0;
|
|
14038
14038
|
return R({
|
|
14039
14039
|
uptime: this.uptime,
|
|
14040
|
-
version: "4.7.1-
|
|
14040
|
+
version: "4.7.1-2-g72bf274f",
|
|
14041
14041
|
clientId: this.clientId,
|
|
14042
14042
|
sessionId: this.sessionId,
|
|
14043
14043
|
channelId: this.channelId,
|
|
@@ -14228,7 +14228,7 @@ var Lw = 1e4, Rw = 1280 * 720, zw = /* @__PURE__ */ new WeakMap(), Bw = /* @__PU
|
|
|
14228
14228
|
var r;
|
|
14229
14229
|
(r = this.modules.decoder) == null || r.enableBackgroundTimers();
|
|
14230
14230
|
}
|
|
14231
|
-
this.resumeModules(), this.isSuspended = !1, this.isHiddenWithBackgroundPlayback() && this.scheduleInactivityDisconnect();
|
|
14231
|
+
this.resumeModules(), this.isSuspended = !1, this.playbackSource instanceof $l ? this.playbackSource.element.paused && this.playbackSource.play({ preserveMuted: !0 }) : this.playbackSource.play(), this.isHiddenWithBackgroundPlayback() && this.scheduleInactivityDisconnect();
|
|
14232
14232
|
});
|
|
14233
14233
|
let ce;
|
|
14234
14234
|
this.emitter.on("context switch complete", () => {
|