angular / angular/components

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

Abierto
#28,844 0 comentarios 1 reacción 0 asignados Ver en GitHub
area: youtube-player feature P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con el componente Youtube Player y su método load, actualmente privado, usando como contexto la issue enlazada de ready-event. Define la finalización como una forma expuesta de determinar si el Player se ha cargado y una forma pública de cargarlo mediante programación, admitiendo el caso de uso descrito del botón.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
api, frontend
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
40/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.