dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Adding video to website

  1. #1
    Member
    Join Date
    Sep 2004
    Posts
    40

    Adding video to website

    Hi I am in the process of adding video content to a website but I would just like to know what is the best approach and coding practices of embedding videos?

    I have got my videos in flv format, is this the best way forward?

    Also how do i enable the user to downlaod flash player if the video doesnt load?

    Thanks

  2. #2
    Senior Member
    Join Date
    May 2008
    Posts
    332
    I'd suggest using swfobject to place the Flash on the page. It will take care of both of your concerns.
    http://code.google.com/p/swfobject/
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com

  3. #3
    Banned
    Join Date
    Oct 2008
    Posts
    74
    Now that you already have video in FLV format, you just need a web-based FLV player to stream the flv video on your website.
    If you don't have Flash tool, you can check playerDIY FLV player creator(http://www.playerdiy.com/). And use SWFObject to embed the web player to webpage.
    This is tutorial.

  4. #4
    Member
    Join Date
    Sep 2004
    Posts
    40
    Hi thanks for your help.

    I have tested the swfobject that embeds my file, locally and it works fine. I upload everything to the server and get this message:

    SecurityError: Error #2148: SWF file http://www.mywebsite.com/new/test.swf cannot access local resource M:\Websites SBU\www.mywebsite.com\assets\video\test.flv. Only local-with-filesystem and trusted local SWF files may access local resources.
    at flash.net::NetStream/play()
    at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_play()
    at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_setUpStream()
    at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_load()
    at fl.video::VideoPlayer/load()
    at fl.video::FLVPlayback/doContentPathConnect()


    Do you know what this means and any idea on how to fix it? I am using flash cs3.
    Last edited by robert475; 01-07-2010 at 08:39 AM.

  5. #5
    Senior Member
    Join Date
    May 2008
    Posts
    332
    Looks like you are using a path with the hard drive address letter (M:/) hard coded as part of the path.
    This would work on your local machine because that would be part of absolute address.. but only on that one local machine.
    Double check all addresses used in your Flash and swfobject to be sure that no drive letters are included in the address.
    So for example, you might have your .swf in C:/data/web_root/flash, but from a Web page in the root. you would only use /flash to path to the .swf.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com

  6. #6
    Member
    Join Date
    Apr 2009
    Posts
    45
    If you want to add video to website, video encoder for adobe flash, you can try it, it can make your video to Flash files (SWF and FLV) with excellent performance, and speed up your video hosting and sharing business over the Internet. Work well on my computer, it is trail version, register version willl remove watermark limit, inexpensive, good service and quality, i like it, following is a step by step guide about flash vido encoder:
    http://www.flash-video-soft.com/flash_video_encoder/

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center