cloudflare / cloudflare/stream-react
Responsive video gets cut off when using full screen API on parent element
- Lingua principale
- TypeScript
- Stelle
- 198
- Fork
- 30
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I have a situation where I have the player wrapped in a parent div that the user can toggle full screen on, as in, not by using the fullscreen button in the player itself. This is so that other elements can be included in fullscreen mode. The lib I'm using for this is [https://www.npmjs.com/package/react-full-screen](https://www.npmjs.com/package/react-full-screen).
The problem is that the aspect ratio doesn't get updated correctly which results in the video getting cut off on large screens.
It looks to be because of the `padding-top` on the iframe wrapper div.

Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci il problema posizionando il player in un elemento padre controllato da react-full-screen, quindi esamina il comportamento di padding-top del wrapper dell’iframe durante la modalità a schermo intero. Il lavoro è completato quando il video responsive mantiene il corretto rapporto d’aspetto e non viene tagliato sugli schermi grandi quando l’elemento padre entra in modalità a schermo intero.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react, typescript
- Ambito
- frontend, web-dev
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100