Skip navigation
Mediastreams
Currently Being Moderated

Flash Video Playback problem in CS4/CS5

Jul 30, 2012 3:25 PM

Tags: #cs4 #cs5 #cs3 #video #3 #actionscript

I need to put a Flash Video on my website, embedded in one of the existing html pages.

When my developer puts together a Flash Video in Flash CS4 or CS5 using ActionScript 3, the video does not play - t just keeps buffering (showing a striped appearance on the seek bar) and will not play unless I refresh the browser.

 

I've tried copying the code from the html page that came with the set of swf and flv files and that doesn't work either.

Just inserting the swf file into the web page like we used to do in CS3 and earlier does not wor.

 

I noticed that now with ActionScript 3 there is no ACRunActiveContent.js file.

 

Videos created using CS3 and ActionScript 2 seem to work just fine on web pages.

Wonder what i can do to use CS4 and CS5 videos and have them play on html pages?
Any ideas anyone?

 
Replies
  • Currently Being Moderated
    Jul 30, 2012 3:30 PM   in reply to Mediastreams

    use swfobject to embed the SWFs

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 30, 2012 4:04 PM   in reply to Mediastreams
     
    |
    Mark as:
  • Currently Being Moderated
    Jul 30, 2012 5:06 PM   in reply to Mediastreams

    I agree with Mediastreams. If the video is not playing, there is likely something wrong in the initial set-up of the page.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 30, 2012 9:14 PM   in reply to Mediastreams

    Both links return file not found.

    Please post and test valid links and we'll take a look.

    We can see that once again, the player interface shows with the striped bar streaming but no video(?)

    Most common cause of this... swf loads but cannot find and load the .flv... usually because of a bad path to the .flv, missing file, or incorrect file name.

    This time, the video does play, but only after buffering/downloading the entire video

    Most common cause of this... the video file was compressed using H.264 (mp4) compression and the MOOV ATOM is placed at the very end of the video file rather than the front, preventing progressive downloading of the file. Redo the video so the index file is at the very beginning. More info:

    http://renaun.com/blog/code/qtindexswapper/

    http://www.youtube.com/watch?v=8c8oqNX4b3k

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2012 1:59 PM   in reply to Mediastreams

    Just to clarify:

    Creating a Flash Video swf in CS5 (or even CS4) with ActionScript 3 requires the video to be embedded in the web page a bit differently than we were used to with CS3 and AS2.

    While the newer versions of Flash do use a different method (using swfobject) when "Publishing" a Flash .swf, it is NOT required to do so. In fact neither swfobject nor ACRun... are required to display Flash of any version (AS1, 2, or 3) on a Web page. The simple single object method will work just fine:

    <object data="path_to_file/file.swf" type="application/x-shockwave-flash" width="insert_width_of_movie" height="insert_height_of_movie">

      <param name="movie" value="path_to_file/file.swf">

      <param name="SomeOtherParam" value="ParamValue">

    </object>

    Both ACRun and swfobject are "Flash Detection" methods used to display some alternative content if Flash is not detected... they are NOT needed to simply display the Flash .swf.

    However, you can't use half ACRun code and half swfobject code....it must be either one or the other... and either would display AS3 players just fine.... as would the single object method.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2012 2:26 PM   in reply to adninjastrator

    Yes, Flash detection and compatibility

     

    this code don't work in all the browsers:

    <object data="path_to_file/file.swf" type="application/x-shockwave-flash" width="insert_width_of_movie" height="insert_height_of_movie">

      <param name="movie" value="path_to_file/file.swf">

      <param name="SomeOtherParam" value="ParamValue">

    </object>

     

     

    http://forums.adobe.com/message/1998889

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2012 5:58 PM   in reply to esdebon

    Works fine in any of the modern browsers (I should have said).

    Hey, don't get me wrong! I use and highly recommend swfobject!... it's just not "required" to display Flash with AS3.

    After all, there is only so much that javascript can do to enhance "compatability". Either the browser will play Flash or it won't.The javascript is not playing the Flash, the Flash browser pluggin is.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points