Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YouTube] Allow supplying extra parameters to the YouTube element #18

Open
rbozan opened this issue May 24, 2024 · 0 comments
Open

[YouTube] Allow supplying extra parameters to the YouTube element #18

rbozan opened this issue May 24, 2024 · 0 comments

Comments

@rbozan
Copy link

rbozan commented May 24, 2024

const params = {
// ?controls=true is enabled by default in the iframe
controls: attrs.controls === '' ? null : 0,
autoplay: attrs.autoplay,
loop: attrs.loop,
mute: attrs.muted,
playsinline: attrs.playsinline,
preload: attrs.preload ?? 'metadata',
// origin: globalThis.location?.origin,
enablejsapi: 1,
showinfo: 0,
rel: 0,
iv_load_policy: 3,
modestbranding: 1,
};

According to this page:
https://developers.google.com/youtube/player_parameters

The YouTube embed supports multiple parameters but they can not be passed using this package.

Personally I am missing start, end and cc_load_policy

Old issue

muxinc/youtube-video-element#26

@luwes luwes changed the title Allow supplying extra parameters to the YouTube element [YouTube] Allow supplying extra parameters to the YouTube element Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant