stormcloud-video-player 0.8.45 → 0.8.46

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.
@@ -18,6 +18,7 @@ interface AdBreakOrchestratorHost {
18
18
  getLiveSyncPosition(): number | undefined;
19
19
  restartHlsLoad(position: number): void;
20
20
  reloadLiveStream(): void;
21
+ recoverMediaError(): void;
21
22
  generatePodVastUrl(baseUrl: string, breakDurationMs?: number): string;
22
23
  }
23
24
  declare class AdBreakOrchestrator {
@@ -1511,6 +1511,21 @@ var HlsEngine = /*#__PURE__*/ function() {
1511
1511
  }
1512
1512
  }
1513
1513
  },
1514
+ {
1515
+ key: "recoverMediaError",
1516
+ value: function recoverMediaError() {
1517
+ if (!this.hls) {
1518
+ return;
1519
+ }
1520
+ try {
1521
+ this.hls.recoverMediaError();
1522
+ } catch (error) {
1523
+ if (this.debug) {
1524
+ console.warn("[StormcloudVideoPlayer] recoverMediaError() failed:", error);
1525
+ }
1526
+ }
1527
+ }
1528
+ },
1514
1529
  {
1515
1530
  key: "reloadLiveStream",
1516
1531
  value: function reloadLiveStream() {
@@ -1528,7 +1543,9 @@ var HlsEngine = /*#__PURE__*/ function() {
1528
1543
  try {
1529
1544
  this.video.removeAttribute("src");
1530
1545
  this.video.load();
1531
- } catch (unused) {}
1546
+ } catch (error) {
1547
+ console.warn("[StormcloudVideoPlayer] video.load() threw after src removal:", error);
1548
+ }
1532
1549
  hls.attachMedia(this.video);
1533
1550
  } catch (error) {
1534
1551
  this.reloadingLiveStream = false;