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.js CHANGED
@@ -1243,7 +1243,9 @@ function createHlsAdPlayer(contentVideo, options) {
1243
1243
  if (options === null || options === void 0 ? void 0 : options.continueLiveStreamDuringAds) {
1244
1244
  if (contentVideo.paused) {
1245
1245
  console.log("[HlsAdPlayer] Content video paused in live mode, resuming playback");
1246
- contentVideo.play().catch(function() {});
1246
+ contentVideo.play().catch(function(error) {
1247
+ console.error("[HlsAdPlayer] Error resuming content playback in live mode:", error);
1248
+ });
1247
1249
  } else {
1248
1250
  console.log("[HlsAdPlayer] Content video already playing in live mode");
1249
1251
  }
@@ -1477,7 +1479,9 @@ function createHlsAdPlayer(contentVideo, options) {
1477
1479
  if (options === null || options === void 0 ? void 0 : options.continueLiveStreamDuringAds) {
1478
1480
  if (contentVideo.paused) {
1479
1481
  console.log("[HlsAdPlayer] Content video paused in live mode, resuming playback on stop");
1480
- contentVideo.play().catch(function() {});
1482
+ contentVideo.play().catch(function(error) {
1483
+ console.error("[HlsAdPlayer] Error resuming content playback in live mode on stop:", error);
1484
+ });
1481
1485
  }
1482
1486
  }
1483
1487
  if (adHls) {