cloudflare / cloudflare/stream-react

Add dvrEnabled support for live stream videos

Aperta
#111 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
198
Fork
30
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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):

```jsx

```

## Current Behavior
- The React component does not accept or forward a `dvrEnabled` option.
- 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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia individuando il componente player React e le definizioni delle prop o della configurazione del player in @cloudflare/stream-react. Confronta le opzioni supportate dal componente con la documentazione DVR di Cloudflare Stream, quindi verifica che una prop dvrEnabled venga accettata e raggiunga la configurazione del player sottostante, includendo la copertura per l'abilitazione di DVR su uno stream live.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
react, typescript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
64/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.