angular / angular/components

feat(Youtube Player): view loading status and load programmatically

オープン
#28,844 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
area: youtube-player feature P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

### 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. 🙏_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Youtube Playerコンポーネントと、現在privateになっているそのloadメソッドから始め、コンテキストとしてリンクされたready-event issueを使用します。完了の定義は、Playerがロード済みかどうかを判断するための公開された方法と、プログラムからロードするためのpublicな方法を提供し、説明されているボタンのユースケースをサポートすることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
api, frontend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
40/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。