Embedded YouTube Video won't play with ?autoplay=1 - youtube

Any thoughts on why the embedded YouTube video won't autoplay on this site?
https://quantumleapin.wpengine.com/
As far as I can tell the autoplay is integrated correctly…

Your src attribute is not formatted correctly, it reads :
https://www.youtube.com/embed/T8u41Uy7wNw?rel=0&showinfo=0?ecver=1?autoplay=1
It should be :
https://www.youtube.com/embed/T8u41Uy7wNw?rel=0&showinfo=0&ecver=1&autoplay=1

Same thing was happening to me and I copied the embed code exactly from YouTube and it included that ?ecver=1 which was making it not play. Once I removed ?ecver=1 it was ok.

Related

Embedded YouTube Video to Auto Play Muted?

I have 6 videos on my site and i've added autoplay and loop to them, but i would like them to play with no audio, how can i do that ?
This is how the code looks https://www.youtube.com/embed/s0qLJ4geZko?autoplay=1&loop=1&playlist=s0qLJ4geZko
If i'm allowed to post the link to my site, please let me know.
Yes you should add mute=1 to the string in order to play it in mute by default...
https://www.youtube.com/embed/s0qLJ4geZko?autoplay=1&mute=1&loop=1&playlist=s0qLJ4geZko
Apparently they already play muted, so problem solved.

Autoplay an embedded youtube video

Working with Adobe DPS to create an app. Trying to embed a Youtube video with Folio Overlays/Web content and it works perfectly. But is there some way to make it autoplay?
I've tried adding ?autoplay=1 , &autoplay=1 and ?rel=0&autoplay=1 after the video's ID but it doesn't work.
Any suggestions?
Ciao,
Elin
How can you see here, some mobile plataforms are disabling autoplay on web content, on android you can use the youtube api as you can see here.
YouTube API Doc

YouTube Embed Shows Different Video in Various Browsers

I've got a YouTube video I'm embedding in an iFrame. Here's the embed URL:
http://www.youtube.com/embed/-3W3xvAcD2Y
In the current versions of Safari, Mobile Safari, and Firefox on my Mac I get a doubled video (3D version?) once the video actually starts playing, as shown below:
(Note: the preview image looks normal, you have to actually start playing the video before it doubles like this.)
In Chrome I get the correct version:
Both are using the HTML5 player FWIW, and these embed links have been working for me until recently. I see the same results when actually embedding the links in an iFrame; it's just easier to link to the embed URL here. In my testing, I don't see this for all YouTube videos; it might be limited to videos that have been uploaded recently, but I'm not 100% sure on that (here's another example that shows the problem).
Any idea what is going on? Could this be an embed code error on YouTube that popped up recently? Give that URL a try and let me know if how it works on other browsers.
I'm having the same problem.
Looks like YouTube is forcing 3D on embeds for random HTML5 videos. I noticed mozstereomode="1" is being applied on videos that are having this issue.

Get the video tag of youtube embed videos

I'm trying to change the playback rate of an embed youtube video, is there any way to get the video tag?
I know that the video is held in an iframe, could a chrome extension be used to bypass the security?
Any help appreciated :)
YouTube API creates a public JavaScript object that allows you to control the YouTube video. By default the object is called player.
The only problem is if the developer assigned it to another object.
I guess what you need is not to bypass the iframe, you just need to detect the name of that object.
If you're using the HTML5 YouTube player:
document.getElementsByTagName("video")[0]

Phonegap Video player plugin for iOS [duplicate]

I am using a Phonegap plugin for playing a video in my iOS app. I'm able to play a video with the URL format like http://easyhtml5video.com/images/happyfit2.mp4.
How do I play Youtube videos using the phonegap-videoplayer-plugin?
YouTube Terms of Service: "You agree not to access Content
through any technology or means other than the video playback pages of
the Service itself, the Embeddable Player, or other explicitly
authorized means YouTube may designate."
There are some methods that will give you direct link to youtube videos. Use "gdata" option to find all possible video formats.
Then parse the result to get desired link. Hope this might be useful
But everywhere I found the code to be edited in .m and .h files. None have explained how to use it.
That's because you can only directly use MPMoviePlayerController from native apps (written in Objective-C). For any other technology you'll have to have an intermediary layer in between.
From googling, I found this plugin for PhoneGap that claims to integrate with MPMoviePlayerController. I've no idea if it's any good, but it might do as a starting point.
try to give the youtube url in this format.
http://www.youtube.com/embed/jxXukpxNSx4
You will get the desired result. But Autoplay is not enabled, as Apple stopped supporting autoplay to save user's bandwidth

Resources