Help - Search - Members - Calendar
Full Version: How to embed flash video on my site from external site?
InsanelyMac Forum > Everything Else > Creativity > Web and Graphical Design
Dr. Evil
can anyone help me with html code to embed flash video from external site on my own site.
I know youtube provides the embed code, but many other sites do not.

so if i wanted to embed the following video
http://www.example.com/coolvid.flv
on my own site or blog, is it possible?


I almost found a solution here but it doesn't work, http://www.jeroenwijering.com/?item=embedding_flash

any suggestions much appreciated.

hecker
It's very straightforward. Here's an official W3 tutorial: http://www.w3schools.com/flash/flash_inhtml.asp

~pcwiz
Yup, just like hecker said. Here's the base code:

CODE
<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>


You can state the object width (w x h of your player) and replace somefilename.swf with the correct extension and the path to your flv that you want to embed (e.g. http://www.example.com/coolvid.flv)
ThinkMark
iWeb does it through drag and drop...tongue.gif

Think Mark
Dr. Evil
thanks. for youtube etc, this works fine. however, it doesn't work for all sites, like youpr0n for example. i think some sites block you from doing this.
any suggestions for sites that don't give you the embed code?

hecker
If they don't give you the code, then it's probably because they have some kind of check system integrated that will block the content if the referring URL is not theirs. Sorry.

EDIT: I do recall seeing some videos of the site you mentioned on other pages. Why don't you just go to youpr0n, display the page source contents and look for the part with the embed code?
Dr. Evil
thanks hecker. most sites do provide the embed code, and for those that don't, a simple link will have to do!


hecker
QUOTE(Dr. Evil @ Jan 27 2008, 08:04 PM) *
thanks hecker. most sites do provide the embed code, and for those that don't, a simple link will have to do!

I know it's not always easy to desipher, but displaying a web page's source code in your browser may reveal the code you need to display the video on your website. It may help to display the code, and diplay it in a WYSIWYG web editor (e.g. dreamweaver) via copy/paste.

Hope this helps,

hecker

PS: I cannot access youpr0n because it's blocked by my ISP, but if you like you can send me the source code so I can take a look.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.