HTML Help Forum

Autoplay YouTube Video?

Post all questions relating to MySpace in this board.

Postby everyday09 » Sun Dec 24, 2006 12:25 am

all you have to do is get rid of everything before the first "embed" and after the second "embed" til it looks like this below.

<embed src="http://www.youtube.com/v/s3iyAFFElb4" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>

after that you add to the url "&autoplay=1"
like below

<embed src="http://www.youtube.com/v/s3iyAFFElb4&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>
everyday09
 
Posts: 1
Joined: Sun Dec 24, 2006 12:20 am

Don't need to remove "object" code

Postby Spencer Critchley » Sun May 04, 2008 2:58 pm

Thanks for the useful tip, everyday09, but I found that you don't need to remove the "object" code, which is there to make the embed compatible with IE. You can just add "&autoplay=1" (without the quotes) to the end of both url's: the one within the object tag and the one within the embed tag.
Spencer Critchley
 
Posts: 1
Joined: Sun May 04, 2008 2:52 pm

Loop

Postby chercheur de sagesse » Sat Oct 25, 2008 3:20 pm

Also, if you wanted to make the video or playlist loop just add &loop=1 after the original code (or after &autoplay=1 if you want both autoplay and loop.)


<embed src="http://www.youtube.com/v/s3iyAFFElb4&autoplay=1&loop=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>
chercheur de sagesse
 
Posts: 1
Joined: Sat Oct 25, 2008 3:16 pm

Is autoplay possible on ScreenCast Videos?

Postby Elmar Sandyck » Fri Feb 19, 2010 3:27 pm

First I want to say Hi to everyone on this forum.
I'm new here and I'm glad I found this place.

I found the forum by doing a Google search with this searchterm "html code to make video autoplay"

Actually I was searching for an autoplay code to add to the HTML code I get from Screencast when I want to put a video I recored with Camtasia and uploaded to Screencast on my blog. (I hope this sentence is clear... :-)

I added this code "&autoplay=1" to the URL in that code, but this does not work...

Does anyone knows if there is another way to do it?

Would be very helpful!

Thanks a lot,

Elmar
Elmar Sandyck
 
Posts: 1
Joined: Fri Feb 19, 2010 3:14 pm

Postby mike97242 » Sun Jun 13, 2010 6:03 pm

If you're just looking to loop videos for yourself, try Log in or Register to see link

In the address bar, add the word "infinite" before the word "youtube". This is the easiest way to put Youtube videos on loop. When you are finished your address bar should be changed from:

Log in or Register to see link

To

Log in or Register to see link


You can also go to Log in or Register to see link and just paste in a link to the video or even search for videos.
mike97242
 
Posts: 1
Joined: Sun Jun 13, 2010 6:02 pm

Postby coramackenzie » Tue Jun 22, 2010 7:44 am

If you couldn't get it to work you made a mistake with the code... there can be no space before the &autoplay=1" That is what should be added to the end of the script like shown above. There are no spaces and no extra quotations at the beginning... it is simply added on to the script:

<embed src="http://www.youtube.com/v/oXaUpoPJPTk&hl=en_US&fs=1&color1=0xcc2550&color2=0xe87a9f&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed>
coramackenzie
 
Posts: 1
Joined: Tue Jun 22, 2010 7:37 am

Postby migsly » Thu Oct 28, 2010 4:48 pm

How do you make this video autoplay?

<embed id=VideoPlayback src=http://video.google.com/googleplayer.swf?docid=-2956447426428748010&hl=en&fs=true style=width:400px;height:326px allowFullScreen=true allowScriptAccess=always type=application/x-shockwave-flash> </embed>

I can't seem to do it. Thanks.
migsly
 
Posts: 1
Joined: Thu Oct 28, 2010 4:46 pm

Postby yemz88 » Wed Feb 09, 2011 1:49 pm

migsly wrote:How do you make this video autoplay?

<embed id=VideoPlayback src=http://video.google.com/googleplayer.swf?docid=-2956447426428748010&hl=en&fs=true style=width:400px;height:326px allowFullScreen=true allowScriptAccess=always type=application/x-shockwave-flash> </embed>

I can't seem to do it. Thanks.


you need to add here :

<embed id=VideoPlayback src=http://video.google.com/googleplayer.swf?docid=-2956447426428748010&hl=en&fs=1&autoplay=1" true style=width:400px;height:326px allowFullScreen=true allowScriptAccess=always type=application/x-shockwave-flash> </embed>
yemz88
 
Posts: 1
Joined: Wed Feb 09, 2011 1:45 pm

How to autoplay this youtube video?

Postby jamesfrancisco » Thu Feb 10, 2011 11:25 am

I tried many times to debug this code. Please help me to auto-play this video.


<object width="480" height="390"><param name="movie" value="http://www.youtube.com/v/AbUc68bTBmg?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/AbUc68bTBmg?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="390"></embed></object>[/code]
jamesfrancisco
 
Posts: 1
Joined: Thu Feb 10, 2011 11:21 am

ANSWER TO ALL USING YOUTUBE

Postby marhen3530 » Thu Feb 17, 2011 8:48 am

Answer to @jamesfrancisco
Code: Select all
<iframe src="http://www.youtube.com/v/AbUc68bTBmg&autoplay=1" width="480px" height="390px" scrolling="no" style="border-width: 0px;">Your browser does not support iframes.</iframe>


If you need words to wrap around this video, then you will need to specify align="left/right".

If you need to configure margins and padding, then add to the style attribute.

I have found that style="margin-left: -10px; margin-top: -10px; -moz-padding-start: 10px;"> works to make mine line-up the same on IE and FireFox. But I also use align="right" to make the words wrap the left side of my video.

You might need to tinker around with the different margins and padding options to get the video to appear correctly and exactly where you want it.

The &autoplay=1 only works on youtube URL's that have a "/v/" instead of "/embed/". ie.

THIS WORKS

<iframe src="http://www.youtube.com/v/AbUc68bTBmg&autoplay=1" width="480px" height="390px" scrolling="no" style="border-width: 0px;">Your browser does not support iframes.</iframe>

THIS DOES NOT WORK

<iframe src="http://www.youtube.com/embed/AbUc68bTBmg&autoplay=1" width="480px" height="390px" scrolling="no" style="border-width: 0px;">Your browser does not support iframes.</iframe>

In fact, the second example doesn't even appear on the screen.


If you want your video to NOT autoplay, then add &autoplay=0 to the end of your URL without spaces.
Or simply remove &autoplay=1
marhen3530
 
Posts: 1
Joined: Thu Feb 17, 2011 7:51 am

Autoplay and Loop You Tube iframe code

Postby leedssocialclubs » Mon Feb 21, 2011 3:36 pm

Hi,
I managed to get the code sorted for iframe code to autoplay substituting ?autoplay for &autoplay.
What I would like to do now is as well as autoplay be able to loop play a youtube video . Are you aware of what amendment can be done to the iframe code for both these functions to happen.
Code I have at present is :-
<iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/OKQEpzJTUio?autoplay=1" frameborder="0" allowfullscreen></iframe

Thanks Alan
leedssocialclubs
 
Posts: 2
Joined: Mon Feb 21, 2011 3:26 pm

Postby leedssocialclubs » Mon Feb 21, 2011 4:11 pm

Sorted this now. Used the code suggested in an above posting to substitute v for embed and added &autoplay=1&loop=1

Code Used for this:-
<iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/v/OKQEpzJTUio&autoplay=1&loop=1" frameborder="0" allowfullscreen></iframe>
leedssocialclubs
 
Posts: 2
Joined: Mon Feb 21, 2011 3:26 pm

Can somone Make this embed so its autoplay

Postby kyleconrod » Mon Feb 21, 2011 6:17 pm

<object width="960" height="750"><param name="movie" value="http://www.youtube.com/v/xrvzosgenZA?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/xrvzosgenZA?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="960" height="750"></embed></object>



I NEED SOMEONE TO MAKE THIS EMBED AUTO PLAY
kyleconrod
 
Posts: 1
Joined: Mon Feb 21, 2011 5:56 pm

HELP AUTOPLAY ERROR FOR YOUTUBE.

Postby Bfreshhhx » Sat Mar 26, 2011 11:38 am

I am trying to get a youtube video to autoplay on my tumblr page. I decreased the size of it to where its just the play/pause button now I just need it to autoplay please help thanks.

heres my code.

<iframe title="YouTube video player" width="32" height="28" src="http://www.youtube.com/embed/6AmJX4zUrUA" frameborder="0" allowfullscreen></iframe>
Bfreshhhx
 
Posts: 1
Joined: Sat Mar 26, 2011 11:35 am

Correction

Postby Bannana97 » Mon Apr 04, 2011 8:40 am

If &autoplay=1 does not work, try ?autoplay=1 - one will have to work.

Example:

Code: Select all
src="http://www.youtube.com/embed/TghtXh5m0?autoplay=1"
Bannana97
 
Posts: 5
Joined: Wed Jan 07, 2009 12:03 pm

Next

Return to MySpace

Who is online

Users browsing this forum: No registered users and 1 guest