Jump to content

Quick question with the youtube embed


Ryusuke

Recommended Posts

 <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/Yi4GkqwqI_Q"></param><embed src="http://www.youtube.com/v/Yi4GkqwqI_Q" type="application/x-shockwave-flash" width="425" height="350"></embed></object>

So that's the youtube code, but I want the video to play automatically.I know I have to put autostart=true but it didn't work maybe I didn't place it right

Link to comment
Share on other sites

 <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/Yi4GkqwqI_Q"></param><embed src="http://www.youtube.com/v/Yi4GkqwqI_Q" type="application/x-shockwave-flash" width="425" height="350"></embed></object>

So that's the youtube code, but I want the video to play automatically.I know I have to put autostart=true but it didn't work maybe I didn't place it right

i'd place it in the embed tag somwhere also i dont think the embed tag has an end tag. if you are using xhtml you should end it like <embed (stuff goes here) /> just like a br tag <br />
<objectclassid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"width="425" height="350" id="movie"><param name="movie" value="http://www.youtube.com/v/Yi4GkqwqI_Q" /><embed src="http://www.youtube.com/v/Yi4GkqwqI_Q" quality="high" width="425" height="350" name="movie" type="application/x-shockwave-flash"plug inspage="http://www.macromedia.com/go/getflashplayer" autostart="true" /> </object>

Link to comment
Share on other sites

Youtube uses a Flash movie to play the movie you selected. Using autostart on it works, because the Flash movie does start up. But the control to play the selected movie is inside the Flash movie, it's just a Flash button they made. There's not a way to simulate a click on a button or something like that. You could try to create your own Flash movie player and use it to load and play the same movie from Youtube.

Link to comment
Share on other sites

i'd place it in the embed tag somwhere also i dont think the embed tag has an end tag. if you are using xhtml you should end it like <embed (stuff goes here) /> just like a br tag <br />
<objectclassid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"width="425" height="350" id="movie"><param name="movie" value="http://www.youtube.com/v/Yi4GkqwqI_Q" /><embed src="http://www.youtube.com/v/Yi4GkqwqI_Q" quality="high" width="425" height="350" name="movie" type="application/x-shockwave-flash"plug inspage="http://www.macromedia.com/go/getflashplayer" autostart="true" /> </object>

Huh?What's with all the extra stuff, isn't auto start=true all that's required?
Link to comment
Share on other sites

Huh?What's with all the extra stuff, isn't auto start=true all that's required?
all that other stuff makes it valid script. like justsomeguy said above, autostart='true' will not play the move because the movie is in a flash file. flash controls the starting of the movie. if you could get the actual movie and not the flash file then you could use autostart='true'
Link to comment
Share on other sites

Well either way the video still does not start up automatically
It does start automatically. What is starting automatically is the Flash movie player, not the movie that the movie player is playing. You are embedding a movie player, not a movie. Autostart makes the movie player automatically start, which it does. It has its own controls for playing the movie that you want it to play. You can see the parameter of the movie you want it to play, which I assume is a FLV file. You can try playing that file directly instead of going through the player.Also, is
lol!! HELP mel lol!! lol!LOL heELP me!1!
really necessary?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...