livepeer / ui-kit

Livepeer UI Kit: Video primitives for React
https://docs.livepeer.org/sdks/react/getting-started
MIT License
64 stars 28 forks source link

fix: add backoff cap and props #505

Closed 0xcadams closed 6 months ago

0xcadams commented 6 months ago

Description

Added backoff and backoffMax to the Player, which defines the time which the Player waits before attempting, as well as the cap for exponential backoff.

/**
 * Controls the initial value for exponential backoff, in ms. Defaults to 500ms, which is subsequently multiplied by 2^n power on each error.
 */
backoff: number;

/**
 * Controls the maximum backoff when an error is encountered, in ms. Defaults to 30s.
 */
backoffMax: number;
vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lvpr-tv ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2024 11:52pm
ui-kit-docs-embed ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2024 11:52pm
ui-kit-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2024 11:52pm
ui-kit-next-pages ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2024 11:52pm