Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Nov 2007
    Posts
    41
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Youtube-like code to embed external flash videos

    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...

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Do some research on crossdomain.xml files. You need it set up so that others can access your flash files properly too.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •