A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: On Load Pausing Progressive Flash Video

  1. #1
    Junior Member
    Join Date
    Aug 2005
    Posts
    4

    On Load Pausing Progressive Flash Video

    Hey Everyone,

    I've been trying to work out this issue for the last hour and can't seem to figure it out.

    I encoded a video, imported it into flash (progressive) and applied a player control to the bottom. In the publish preferences I've set the thing to pause upon loading but it still plays. You can see in the code that the play is set to false. Any idea why it's still playing upon loading of the page. Check it out:

    http://www.zangcenter.com/test/

    Many thanks in advance,
    John

  2. #2
    Senior Member
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    348
    so are you saying you've set autoplay to false?

  3. #3
    Junior Member
    Join Date
    Aug 2005
    Posts
    4
    Yes I have. You can see that in the code. Every instance of play is equal to false:

    <script language="javascript">
    if (AC_FL_RunContent == 0) {
    alert("This page requires AC_RunActiveContent.js.");
    } else {
    AC_FL_RunContent(
    'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
    'width', '320',
    'height', '300',
    'src', 'zstreaming',
    'quality', 'high',
    'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
    'align', 'middle',
    'play', 'false',
    'loop', 'false',
    'scale', 'showall',
    'wmode', 'window',
    'devicefont', 'false',
    'id', 'zstreaming',
    'bgcolor', '#ffffff',
    'name', 'zstreaming',
    'menu', 'false',
    'allowFullScreen', 'false',
    'allowScriptAccess','sameDomain',
    'movie', 'zstreaming',
    'salign', ''
    ); //end AC code
    }
    </script>
    <noscript>
    <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="320" height="300" id="zstreaming" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="zstreaming.swf" /><param name="play" value="false" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="zstreaming.swf" play="false" loop="false" menu="false" quality="high" bgcolor="#ffffff" width="320" height="300" name="zstreaming" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>

  4. #4
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    The "play" option in the HTML doesn't affect videos. If you click on the video component in your Flash file, the Properties panel should have an option that says "autoPlay" (or something similar). Set that to false.

  5. #5
    Senior Member
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    348
    you took the words right out of my mouth...
    Dan

  6. #6
    Junior Member
    Join Date
    Aug 2005
    Posts
    4

    Sweet/ Another question

    That worked guys! Thanks.

    The picture sits on the page as a black screen. Any way to take a snapshot and display it on there like youtube instead of having it just black?

    many thanks in advance!

  7. #7
    Senior Member
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    348
    yes....

    What you'll need to do is save a frame of the video (or depending on the length, a series of frames as an animated gif) and put that in the first frame of the swf. when the user clicks on the swf, you "gotoAndPlay(2)" which will run your video.

    Dan

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