PDA

View Full Version : php youtube style embed code



mainegate
November 18th, 2008, 11:43 PM
I'm looking to have a embed code for people be as short as possible. I'm trying to figure out how to do this. So something like...

HTML Code:

<EMBED SRC="http://www.website.com/myembedscript.php?id=1"
HEIGHT=60 WIDTH=144>

I'm looking to figure out what "myembedscript.php" should do. I have it currently get the id of 1 and get all the information about it and actually embed the video player. So if you were to actually go to that absolute url it works great. However, how would I get it to embed on someone's page by have someone embed the above code?

simplistik
November 19th, 2008, 08:40 AM
<object width="60" height="144" data="http://www.website.com/myembedscript.php?id=1">
<param name="movie" value="http://www.website.com/myembedscript.php?id=1" />
</object>

is the bare minimum you need to have your flash script work AND be valid.

mainegate
November 19th, 2008, 10:26 AM
Right ... but that is not embedding...in myembedscript.php should I actually have the embeded video in the page?