Skip to content

youtube-player docs use invalid tag syntax #17368

@Succubussix

Description

@Succubussix

https://github.com/angular/components/tree/master/src/youtube-player
not
else it will throw

 ERROR Error: Uncaught (in promise): Error: Template parse errors:
Only void and foreign elements can be self closed "youtube-player" ("height="200" frameborder="0" allowfullscreen>

this part is i have no idea

const tag = document.createElement('script');

    tag.src = "https://www.youtube.com/iframe_api";
    document.body.appendChild(tag);

but it throws

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('http://localhost:4200').

delete this

private _width = DEFAULT_PLAYER_WIDTH;

so if we don't attach width.. it will auto-fill it.. not the original 640px

Metadata

Metadata

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentdocsThis issue is related to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions