PDA

View Full Version : Youtube-like code to embed external flash videos


sakka
09-24-2008, 10:34 PM
Hello! I am working on a page that allows viewers to embed videos, much like Youtube, except the videos are hosted on our server. However, I know the player swf will cause trouble as it needs to be on the actual server that is playing the video and so on. Does anyone have any ideas how I could do this? Thank you... :)

_Aerospace_Eng_
09-25-2008, 12:10 AM
Use absolute urls in your flash file and in your embed code meaning instead of using yoursite.swf you should use http://www.yoursite.com/yoursite.swf same goes with the flv files. This is how youtube does their way of embedding.

gnomeontherun
09-25-2008, 07:42 AM
Do some research on crossdomain.xml files. You need it set up so that others can access your flash files properly too.