Dr. Evil Posted January 19, 2008 Share Posted January 19, 2008 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. Link to comment Share on other sites More sharing options...
hecker Posted January 19, 2008 Share Posted January 19, 2008 It's very straightforward. Here's an official W3 tutorial: http://www.w3schools.com/flash/flash_inhtml.asp Link to comment Share on other sites More sharing options...
~pcwiz Posted January 22, 2008 Share Posted January 22, 2008 Yup, just like hecker said. Here's the base 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) Link to comment Share on other sites More sharing options...
Ongeloof Posted January 22, 2008 Share Posted January 22, 2008 iWeb does it through drag and drop... Think Mark Link to comment Share on other sites More sharing options...
Dr. Evil Posted January 25, 2008 Author Share Posted January 25, 2008 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? Link to comment Share on other sites More sharing options...
hecker Posted January 25, 2008 Share Posted January 25, 2008 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? Link to comment Share on other sites More sharing options...
Dr. Evil Posted January 27, 2008 Author Share Posted January 27, 2008 thanks hecker. most sites do provide the embed code, and for those that don't, a simple link will have to do! Link to comment Share on other sites More sharing options...
hecker Posted January 27, 2008 Share Posted January 27, 2008 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. Link to comment Share on other sites More sharing options...
Recommended Posts