A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Flash video wont play

  1. #1
    Registered User
    Join Date
    Dec 2009

    Flash video wont play


    I have a flash video that i want to embed into my page. The problem that im having is that the page is recognising the code, however nothing is playing.

    Here is the code that im using:

    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="576" height="364" id="vroom" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="harry.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="harry.swf" quality="high" bgcolor="#000000" width="576" height="364" name="vroom" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

  2. #2
    Senior Member
    Join Date
    May 2008
    Technically speaking, you are not embedding a Flash video file (.flv) into the Web page but rather a Flash .swf file, "harry.swf" which is a video player that will play the .flv video file. So when you say that the page is recognizing the code, what do you mean? Does it display the "harry.swf" video player but that player does not display the video? Have you tested harry.swf on your local machine and does it work? Is the Flash video file, the .flv on your local machine and/or server or is it a url pulled in from YouTube or something?
    The most common problem when implementing video on a Web page is pathing to associated video files. So for example, if the player "harry" is expecting to find the .flv in the same folder as itself (say, the flash folder) and then you embed that player on a Web page what is not in the same folder, "harry" will not be able to locate the .flv file. Once you place that video player on a page outside it's intended folder, you are in effect removing it from that folder. Now the relative path to the .flv file has changed, and unless that path is corrected in the actionscript inside harry, it will not find and play the .flv video file.
    But that is just one of many potential problems. It's impossible to tell the exact cause from just the code above. Investigate the pathing issue. If that doesn't solve it, post a link to the actual Web page, that would be much more helpful.
    Best wishes,
    Eye for Video

  3. #3
    Join Date
    Apr 2009
    Embed the FLV video on Web page step by step.
    # Step 1. Upload the created “.swf” file and the “.flv” video file to the same folder on your server. For example, if you want to show the video on http://www.myhomepage.com/index.htm, then upload the “.swf” and “.flv” files together to the path http://www.myhomepage.com/.
    # Step 2. Add the following html code to your page and customize the relating parameters.If you have chosen “Get the FLV path from a URL variable and play progressively” , then
    add code:

    <object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/
    cabs/flash/swflash.cab#version=7,0,0,0″ width=”400″ height=”300″
    id=”flashvideoplayer.swf” align=”middle”>
    <param name=”allowScriptAccess” value=”sameDomain”>
    <param name=”movie”
    <param name=”quality” value=”high”>
    <param name=”bgcolor” value=”#ffffff”>
    <embed src=”http://www.myhomepage.com/flashvideoplayer.swf?
    flv=http://www.myhomepage.com/myvideofile.flv” quality=”high” bgcolor=”#ffffff” width=”400″ height=”300″ name=”flashvideoplayer.swf”
    align=”middle” allowScriptAccess=”sameDomain” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer”>
    And customize the parameters:
    Replace “myvideofile.flv” with your FLV filename;
    Replace “flashvideoplayer.swf” with your SWF filename;
    Replace “http://www.myhomepage.com/” with your own address;
    Replace the “width” and “height” with your flv file’s width and height. Specify the “quality” and “bgcolor” as you want.
    In the code above, flv is just the URL variable name that you should have specified before conversion. The player can automatically get the URL variable’s value (http://www.myhomepage.com/myvideofile.flv), and play the Flash Video.

    For more information, please go to http://www.flash-video-soft.com/blog/?p=4 for details.
    Last edited by baits; 12-08-2009 at 02:21 AM.

  4. #4
    Join Date
    Oct 2008
    If you have a flash video and want to embed it to web page, you just need a web FLV player to stream FLV online.
    You can check playerdiy.com and embed the Flash video player to web page with SWFObject. This is tutorial.

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