-
Notifications
You must be signed in to change notification settings - Fork 30
Add dvrEnabled support for live stream videos #111
Description
The @cloudflare/stream-react package currently does not expose or support the dvrEnabled property for live streams, as documented in Cloudflare Stream’s DVR feature: https://developers.cloudflare.com/stream/stream-live/dvr-for-live/
This prevents React users from enabling DVR functionality (pause, rewind, and resume live streams) through the official component.
Expected Behavior
It should be possible to enable DVR playback for live streams by passing a dvrEnabled (or equivalent) prop to the React player component, aligning with the underlying Stream player capabilities.
Example (hypothetical):
<Stream
src={streamUid}
controls
dvrEnabled={true}
/>Current Behavior
- The React component does not accept or forward a
dvrEnabledoption. - There is no documented way to enable DVR via
@cloudflare/stream-react. - Developers must fall back to using HLS URLs or direct iframe usage.
Why This Matters
DVR is an important feature for live streaming use cases, including:
- Allowing viewers to rewind live content
- Improving user experience for long-running streams
- Aligning React SDK capabilities with Cloudflare Stream’s core features
Without this support, the React SDK is functionally incomplete compared to the underlying platform.
Proposed Solution
Expose a dvrEnabled prop in the React component and ensure it is passed through to the underlying player configuration.
Alternatively, provide a generic way to pass through player options so new features like DVR can be used without waiting for SDK updates.