Skip to content

bug(youtube-player): videoId required for initialization #27529

@drullo

Description

@drullo

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Using playerVars, it is possible to specify a video/list to play upon initialization - eliminating the (redundant) need to specify a videoId property. However, the player won't initialize if videoId is missing.

Reproduction

<youtube-player [playerVars]="playerVars"></youtube-player>

playerVars = {
    list: 'LISTID',
    listtype: 'playlist'
  };

Expected Behavior

If video is specified in playerVars, don't require videoId property to have a value

Actual Behavior

No player displayed when videoId is missing

Environment

  • Angular: 16.1.6
  • Operating System: Windows 10

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-player

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions