stormcloud-video-player 0.8.35 → 0.8.37

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.
@@ -20,6 +20,7 @@ declare class AdConfigManager {
20
20
  get debug(): boolean;
21
21
  isVmapEnabled(): boolean;
22
22
  fetchAdConfiguration(): Promise<void>;
23
+ private applyMqttConfigFromResponse;
23
24
  private fetchAndParseVmap;
24
25
  private parseVmapToBreaks;
25
26
  private parseVmapTimeOffsetToMs;
@@ -1104,7 +1104,7 @@ var HlsEngine = /*#__PURE__*/ function() {
1104
1104
  value: function setupHls() {
1105
1105
  var _this = this;
1106
1106
  this.hls = new import_hls.default(_object_spread_props(_object_spread({
1107
- enableWorker: true,
1107
+ enableWorker: typeof globalThis !== "undefined",
1108
1108
  backBufferLength: 30,
1109
1109
  liveDurationInfinity: true,
1110
1110
  lowLatencyMode: !!this.config.lowLatencyMode,
@@ -1493,6 +1493,22 @@ var HlsEngine = /*#__PURE__*/ function() {
1493
1493
  return typeof pos === "number" && Number.isFinite(pos) ? pos : void 0;
1494
1494
  }
1495
1495
  },
1496
+ {
1497
+ key: "restartLoadAt",
1498
+ value: function restartLoadAt(position) {
1499
+ if (!this.hls) {
1500
+ return;
1501
+ }
1502
+ try {
1503
+ this.hls.stopLoad();
1504
+ this.hls.startLoad(position);
1505
+ } catch (error) {
1506
+ if (this.debug) {
1507
+ console.warn("[StormcloudVideoPlayer] Failed to restart HLS load at live edge:", error);
1508
+ }
1509
+ }
1510
+ }
1511
+ },
1496
1512
  {
1497
1513
  key: "destroy",
1498
1514
  value: function destroy() {