Skip to content

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

Open
@Eraldo

Description

@Eraldo

Feature Description

Since the ready event is not fired anymore (#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. 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: youtube-playerfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions