feat(Youtube Player): view loading status and load programmatically
- Ngôn ngữ chính
- TypeScript
- Star
- 25k
- Fork
- 6.8k
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 91
Mô tả
### Feature Description
Since the ready event is not fired anymore (https://github.com/angular/components/issues/28834), I would like to know if the player has been loaded yet or not (still showing placeholder). Is there already an api for that? If so I did not find it.
Furthermore it would be great if there were a way to programmatically load the player.
(The load method is currently private to the player component.)
"Dirty" workaround:
I am accessing the placeholder via css selectors and dispatching a click event on them in order to trigger the player load.
### Use Case
Example use case: UI Button that will trigger the player to play.
=> The button label may change depending on the loaded status and the click might trigger the player to load and start.
_PS: Thanks for the wrapper component. 🙏_
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với component Youtube Player và phương thức load hiện đang ở chế độ private của nó, sử dụng issue về ready-event được liên kết làm ngữ cảnh. Xác định việc hoàn thành là có một cách được expose để xác định liệu Player đã được load hay chưa và một cách public để load nó theo chương trình, hỗ trợ use case về button được mô tả.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, typescript
- Lĩnh vực
- api, frontend
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 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
- 40/100