cloudflare / cloudflare/stream-react
Responsive video gets cut off when using full screen API on parent element
- Ngôn ngữ chính
- TypeScript
- Star
- 198
- Fork
- 30
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.

Hướng dẫn đóng góp
Hướng nghiên cứu
Tái hiện vấn đề bằng cách đặt player trong một phần tử cha được react-full-screen điều khiển, sau đó kiểm tra hành vi của padding-top của iframe wrapper trong chế độ toàn màn hình. Được xem là hoàn tất khi video responsive giữ đúng tỷ lệ khung hình và không bị cắt trên màn hình lớn khi phần tử cha chuyển sang chế độ toàn màn hình.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend, web-dev
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100