stormcloud-video-player 0.8.44 → 0.8.45

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/lib/index.cjs CHANGED
@@ -1460,7 +1460,9 @@ function createHlsAdPlayer(contentVideo, options) {
1460
1460
  if (options === null || options === void 0 ? void 0 : options.continueLiveStreamDuringAds) {
1461
1461
  if (contentVideo.paused) {
1462
1462
  console.log("[HlsAdPlayer] Content video paused in live mode, resuming playback");
1463
- contentVideo.play().catch(function() {});
1463
+ contentVideo.play().catch(function(error) {
1464
+ console.error("[HlsAdPlayer] Error resuming content playback in live mode:", error);
1465
+ });
1464
1466
  } else {
1465
1467
  console.log("[HlsAdPlayer] Content video already playing in live mode");
1466
1468
  }
@@ -1694,7 +1696,9 @@ function createHlsAdPlayer(contentVideo, options) {
1694
1696
  if (options === null || options === void 0 ? void 0 : options.continueLiveStreamDuringAds) {
1695
1697
  if (contentVideo.paused) {
1696
1698
  console.log("[HlsAdPlayer] Content video paused in live mode, resuming playback on stop");
1697
- contentVideo.play().catch(function() {});
1699
+ contentVideo.play().catch(function(error) {
1700
+ console.error("[HlsAdPlayer] Error resuming content playback in live mode on stop:", error);
1701
+ });
1698
1702
  }
1699
1703
  }
1700
1704
  if (adHls) {