Im dragging a youtube control in and using the following URL
https://www.youtube.com/watch?v=QBa-e45o6eM?rel=0&autoplay=1
For some reason its not autoplaying it?
Anyone any ideas?
Im dragging a youtube control in and using the following URL
https://www.youtube.com/watch?v=QBa-e45o6eM?rel=0&autoplay=1
For some reason its not autoplaying it?
Anyone any ideas?
Have you try to change this & to ?
https://www.youtube.com/watch?v=QBa-e45o6eM?rel=0&autoplay=1
with explanation mark
This is from Api…
<iframe id="ytplayer" type="text/html" width="640" height="390"
src="http://www.youtube.com/embed/M7lc1UVf-VE?autoplay=1&origin=http://example.com"
frameborder="0"/>
This & is only to separate the parts… so you need only the explanation mark…
On my player i have this.
Self.LoadURL("http://www.youtube.com/embed/" + videoID + "?enablejsapi=1&autoplay=1")
and working ok…
There are two ?'s in the first example URL. Then it will only read the first parameter but not the rest.
Your iFrame example is a different URL but correct. First parameter a ?, then the rest with &'s.
Ok i found it,and autoplay working.
https://www.youtube.com/embed/QBa-e45o6eM?controls=0?rel=0&autoplay=1
https://www.dropbox.com/s/p3un18o6eyn31l5/test_video.zip?dl=0
Hey @dave duke did you follow @Loannis Kolliageorgas clue? The trick is to not use the youtube control in a Web app, but use the HTML viewer with showurl. You should give his response the big tick - he spent the effort!
You may need to set the UserAgent for Youtube to display correctly.
If you check the api from youtube you see the available parameters.
FYI the for the Autoplay Supported players HTML5, AS3
and here is the link if you want it
Youtube Api
I just tried placing a rectangle and a label over a WebHTMLViewer, and they show up in all browsers, including Safari…
I make a simple web app with htmlviewer as background and a youtube video above with autoplay working fine…
here is the link
webtest