@mottosports/motto-video-player 1.0.1-rc.69 → 1.0.1-rc.70

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/dist/index.js CHANGED
@@ -439,6 +439,9 @@ styleInject(`/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */
439
439
  .w-full {
440
440
  width: 100%;
441
441
  }
442
+ .grow {
443
+ flex-grow: 1;
444
+ }
442
445
  .animate-pulse {
443
446
  animation: var(--animate-pulse);
444
447
  }
@@ -1242,7 +1245,7 @@ var supportsWidevinePersistentLicenses = () => {
1242
1245
  var import_mux_data_shakaplayer = __toESM(require("@mux/mux-data-shakaplayer"));
1243
1246
 
1244
1247
  // package.json
1245
- var version = "1.0.1-rc.69";
1248
+ var version = "1.0.1-rc.70";
1246
1249
 
1247
1250
  // src/utils/licenseCache.ts
1248
1251
  var PERSISTENT_LICENSE_PREFIX = "motto_lic_";
@@ -1456,6 +1459,22 @@ var useShakaPlayer = ({
1456
1459
  const player = new import_shaka_player.default.Player();
1457
1460
  playerRef.current = player;
1458
1461
  await player.attach(video);
1462
+ const defaultConfig = {
1463
+ manifest: {
1464
+ // Override availability window to allow DVR window to grow from start
1465
+ // Set to a very large value (24 hours in seconds) to effectively allow unlimited growth
1466
+ availabilityWindowOverride: 86400
1467
+ // 24 hours in seconds
1468
+ },
1469
+ streaming: {
1470
+ // Allow seeking to any point within the availability window
1471
+ safeSeekOffset: 5,
1472
+ // 5 seconds from live edge to prevent buffering
1473
+ // Increase tolerance for manifest timing inaccuracies in live streams
1474
+ inaccurateManifestTolerance: 2
1475
+ }
1476
+ };
1477
+ player.configure(defaultConfig);
1459
1478
  if (shakaConfig) {
1460
1479
  player.configure(shakaConfig);
1461
1480
  }
@@ -3077,6 +3096,9 @@ styleInject(`/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */
3077
3096
  .w-full {
3078
3097
  width: 100%;
3079
3098
  }
3099
+ .grow {
3100
+ flex-grow: 1;
3101
+ }
3080
3102
  .animate-pulse {
3081
3103
  animation: var(--animate-pulse);
3082
3104
  }