Skip to content

feat(youtube-player): Support looping of video #27530

Open
@drullo

Description

@drullo

Feature Description

Provide a property that allows looping to be enabled so that the video is automatically restarted upon completion. Currently, this has to be accomplished by monitoring for stateChange, then manually calling playVideo() once getPlayerState() reports 0 (zero).

Incidentally, this has to be done using the native object (passed via $event) - it does not work if trying to call playVideo() from a reference to the YouTubePlayer object obtained via ViewChild() for some reason. The object is present and properties seem to be available. But calling playVideo() on that object doesn't work. I have to call it on $event.target.

Use Case

No response

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