@vindral/web-sdk 4.7.2-13-g587beb8d → 4.7.2-15-gf5e093ee
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/{9nc90eic.js → BK3DBk5v.js} +1095 -1088
- package/{DJyLL1L8.js → BjkoNfwT.js} +19 -8
- package/core.js +1 -1
- package/legacy.es.js +19 -8
- package/legacy.umd.js +1 -1
- package/package.json +1 -1
- package/player.js +2 -2
- package/vindral-player-component.js +2 -2
|
@@ -12523,7 +12523,7 @@ var Vx = class {
|
|
|
12523
12523
|
let e = this.modules.canvasModule instanceof Vb ? !0 : void 0;
|
|
12524
12524
|
return y({
|
|
12525
12525
|
uptime: this.uptime,
|
|
12526
|
-
version: "4.7.2-
|
|
12526
|
+
version: "4.7.2-15-gf5e093ee",
|
|
12527
12527
|
clientId: this.clientId,
|
|
12528
12528
|
sessionId: this.sessionId,
|
|
12529
12529
|
channelId: this.channelId,
|
|
@@ -12762,17 +12762,28 @@ var Vx = class {
|
|
|
12762
12762
|
case "double downgrade":
|
|
12763
12763
|
a = Math.max(r - 2, 0);
|
|
12764
12764
|
break;
|
|
12765
|
-
case "reconnect":
|
|
12766
|
-
|
|
12767
|
-
|
|
12765
|
+
case "reconnect": {
|
|
12766
|
+
var d;
|
|
12767
|
+
let e = this.modules.connection.lastConnectionTime;
|
|
12768
|
+
if (e !== void 0 && performance.now() - e >= this.modules.qualityOfService.fatalQosGraceTime() && this.modules.connection.getState() === "connected" && (r === 0 || this.modules.qualityOfService.timeSpentBufferingLast(6e3) > 5e3)) {
|
|
12769
|
+
this.modules.qualityOfService.incrementFatalQosCount(), this.logger.info("Reconnecting due to poor qos"), this.modules.connection.reconnect("Fatal QOS"), this.emitter.emit("adapted level");
|
|
12770
|
+
return;
|
|
12771
|
+
}
|
|
12772
|
+
if (this.modules.subscription.getTargetSubscription().channelId !== ((d = this.modules.subscription.getCurrentSubscription()) == null ? void 0 : d.channelId)) return;
|
|
12773
|
+
let t = this.targetSubscription, n = this.modules.renditions.getRenditionLevels(t)[0];
|
|
12774
|
+
if (!n || Et(this.modules.renditions.getRenditionLevel(t), n)) return;
|
|
12775
|
+
this.alignSizeAndBitRate(y(y({}, t), {}, {
|
|
12776
|
+
video: y(y({}, t.video), n.video),
|
|
12777
|
+
audio: y(y({}, t.audio), n.audio)
|
|
12778
|
+
})), this.emitter.emit("adapted level");
|
|
12768
12779
|
return;
|
|
12769
|
-
}
|
|
12780
|
+
}
|
|
12770
12781
|
}
|
|
12771
12782
|
if (a === r) return;
|
|
12772
|
-
let
|
|
12783
|
+
let f = t[a];
|
|
12773
12784
|
this.alignSizeAndBitRate(y(y({}, this.targetSubscription), {}, {
|
|
12774
|
-
video: y(y({}, this.targetSubscription.video),
|
|
12775
|
-
audio: y(y({}, this.targetSubscription.audio),
|
|
12785
|
+
video: y(y({}, this.targetSubscription.video), f == null ? void 0 : f.video),
|
|
12786
|
+
audio: y(y({}, this.targetSubscription.audio), f == null ? void 0 : f.audio)
|
|
12776
12787
|
})), this.emitter.emit("adapted level");
|
|
12777
12788
|
}), this.emitter.on("ping timeout", this.stepDownForRejoin), this.emitter.on("text track data", (e) => {
|
|
12778
12789
|
let t = s(cS, this).find((t) => t.language === e.language), n = this.modules.sync.getTimeshiftOffset() / 1e3, r = n - s(sS, this);
|
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 "./BjkoNfwT.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
|
@@ -14107,7 +14107,7 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
|
|
|
14107
14107
|
let e = this.modules.canvasModule instanceof AC ? !0 : void 0;
|
|
14108
14108
|
return L({
|
|
14109
14109
|
uptime: this.uptime,
|
|
14110
|
-
version: "4.7.2-
|
|
14110
|
+
version: "4.7.2-15-gf5e093ee",
|
|
14111
14111
|
clientId: this.clientId,
|
|
14112
14112
|
sessionId: this.sessionId,
|
|
14113
14113
|
channelId: this.channelId,
|
|
@@ -14346,17 +14346,28 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
|
|
|
14346
14346
|
case "double downgrade":
|
|
14347
14347
|
a = Math.max(r - 2, 0);
|
|
14348
14348
|
break;
|
|
14349
|
-
case "reconnect":
|
|
14350
|
-
|
|
14351
|
-
|
|
14349
|
+
case "reconnect": {
|
|
14350
|
+
var d;
|
|
14351
|
+
let e = this.modules.connection.lastConnectionTime;
|
|
14352
|
+
if (e !== void 0 && performance.now() - e >= this.modules.qualityOfService.fatalQosGraceTime() && this.modules.connection.getState() === "connected" && (r === 0 || this.modules.qualityOfService.timeSpentBufferingLast(6e3) > 5e3)) {
|
|
14353
|
+
this.modules.qualityOfService.incrementFatalQosCount(), this.logger.info("Reconnecting due to poor qos"), this.modules.connection.reconnect("Fatal QOS"), this.emitter.emit("adapted level");
|
|
14354
|
+
return;
|
|
14355
|
+
}
|
|
14356
|
+
if (this.modules.subscription.getTargetSubscription().channelId !== ((d = this.modules.subscription.getCurrentSubscription()) == null ? void 0 : d.channelId)) return;
|
|
14357
|
+
let t = this.targetSubscription, n = this.modules.renditions.getRenditionLevels(t)[0];
|
|
14358
|
+
if (!n || en(this.modules.renditions.getRenditionLevel(t), n)) return;
|
|
14359
|
+
this.alignSizeAndBitRate(L(L({}, t), {}, {
|
|
14360
|
+
video: L(L({}, t.video), n.video),
|
|
14361
|
+
audio: L(L({}, t.audio), n.audio)
|
|
14362
|
+
})), this.emitter.emit("adapted level");
|
|
14352
14363
|
return;
|
|
14353
|
-
}
|
|
14364
|
+
}
|
|
14354
14365
|
}
|
|
14355
14366
|
if (a === r) return;
|
|
14356
|
-
let
|
|
14367
|
+
let f = t[a];
|
|
14357
14368
|
this.alignSizeAndBitRate(L(L({}, this.targetSubscription), {}, {
|
|
14358
|
-
video: L(L({}, this.targetSubscription.video),
|
|
14359
|
-
audio: L(L({}, this.targetSubscription.audio),
|
|
14369
|
+
video: L(L({}, this.targetSubscription.video), f == null ? void 0 : f.video),
|
|
14370
|
+
audio: L(L({}, this.targetSubscription.audio), f == null ? void 0 : f.audio)
|
|
14360
14371
|
})), this.emitter.emit("adapted level");
|
|
14361
14372
|
}), this.emitter.on("ping timeout", this.stepDownForRejoin), this.emitter.on("text track data", (e) => {
|
|
14362
14373
|
let t = j(Zw, this).find((t) => t.language === e.language), n = this.modules.sync.getTimeshiftOffset() / 1e3, r = n - j(Xw, this);
|