cloudflare / cloudflare/stream-react
Responsive video gets cut off when using full screen API on parent element
- 主要言語
- TypeScript
- スター
- 198
- フォーク
- 30
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.

コントリビューションガイド
調査の方向性
react-full-screen によって制御される親要素にプレイヤーを配置して問題を再現し、フルスクリーン中の iframe wrapper の padding-top の挙動を調査します。親要素がフルスクリーンになる際に、responsive video が正しいアスペクト比を維持し、大きな画面で切り取られなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- frontend, web-dev
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100