@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.mjs CHANGED
@@ -398,6 +398,9 @@ styleInject(`/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */
398
398
  .w-full {
399
399
  width: 100%;
400
400
  }
401
+ .grow {
402
+ flex-grow: 1;
403
+ }
401
404
  .animate-pulse {
402
405
  animation: var(--animate-pulse);
403
406
  }
@@ -1201,7 +1204,7 @@ var supportsWidevinePersistentLicenses = () => {
1201
1204
  import initShakaPlayerMux from "@mux/mux-data-shakaplayer";
1202
1205
 
1203
1206
  // package.json
1204
- var version = "1.0.1-rc.69";
1207
+ var version = "1.0.1-rc.70";
1205
1208
 
1206
1209
  // src/utils/licenseCache.ts
1207
1210
  var PERSISTENT_LICENSE_PREFIX = "motto_lic_";
@@ -1415,6 +1418,22 @@ var useShakaPlayer = ({
1415
1418
  const player = new shaka.Player();
1416
1419
  playerRef.current = player;
1417
1420
  await player.attach(video);
1421
+ const defaultConfig = {
1422
+ manifest: {
1423
+ // Override availability window to allow DVR window to grow from start
1424
+ // Set to a very large value (24 hours in seconds) to effectively allow unlimited growth
1425
+ availabilityWindowOverride: 86400
1426
+ // 24 hours in seconds
1427
+ },
1428
+ streaming: {
1429
+ // Allow seeking to any point within the availability window
1430
+ safeSeekOffset: 5,
1431
+ // 5 seconds from live edge to prevent buffering
1432
+ // Increase tolerance for manifest timing inaccuracies in live streams
1433
+ inaccurateManifestTolerance: 2
1434
+ }
1435
+ };
1436
+ player.configure(defaultConfig);
1418
1437
  if (shakaConfig) {
1419
1438
  player.configure(shakaConfig);
1420
1439
  }
@@ -3036,6 +3055,9 @@ styleInject(`/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */
3036
3055
  .w-full {
3037
3056
  width: 100%;
3038
3057
  }
3058
+ .grow {
3059
+ flex-grow: 1;
3060
+ }
3039
3061
  .animate-pulse {
3040
3062
  animation: var(--animate-pulse);
3041
3063
  }