-
Notifications
You must be signed in to change notification settings - Fork 37
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 or Vimeo embed with autoplay? #14
Comments
I’m almost certain this is a feature you add in the URL, something like ?autoplay=1. I’ll have to check when I’m at my computer. |
I have the same problem with Vimeo videos. But they have a documentation that listed all the options. Maybe this is helping. And some code example would be helpful. |
It seems the library |
I think I have a way around this by using PHP to edit the DOM on the iframe. I'll need to look into this abit more. |
Seems to be linked to this issue, I still think DOM manipulation might be the way I've still got some playing around to do |
…Tube or Vimeo embed to use autoplay.
Deployed fix in v1.1.8 |
Since April 2018, Google made some changes to the Autoplay Policy. You not only need to add the autoplay=1 as a query param, but also add allow='autoplay' as an iframe's attribute So while embed youtube video, you will have to do something like this:
|
I can't for the life of me figure out how to use this oEmbed plugin to parse a URL to a YouTube or Vimeo video and render an iframe with control over things like width/height and autoplay. Could you possibly provide a code example?
The problem I'm running into seems to be that the
options
object does nothing to affect the output. Here's my code:The output ends up being this (linebreaks added for readability):
Thanks for any help you can provide!
The text was updated successfully, but these errors were encountered: