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

Enable JS control of playing video by adding enablejsapi=1 parameter to iFrame src #128

Closed
hannahbeasley opened this issue May 26, 2022 · 2 comments

Comments

@hannahbeasley
Copy link

It would be great to update the iFrame src so that controlling the video via JS is possible! Tested and verified that adding the parameter works perfectly. Reference to solution found here: https://stackoverflow.com/questions/15164942/stop-embedded-youtube-iframe#comment70304120_30358006

@kingkool68
Copy link

You can pass any additional parameters to the YouTube iframe src using the params parameter like this <lite-youtube videoid="ogfYd705cRs" params="enablejsapi=1"></lite-youtube>

And here is a list of all the supported parameters and their values: https://developers.google.com/youtube/player_parameters#Parameters

@paulirish
Copy link
Owner

Yup can be done with params as mentioned. but now we have firstclass support via #164

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

3 participants