I have a .swf file that is not looping although I have added the parameter to do so. It plays just the once, and at the end of the video it stops instead of looping.
Can someone tell me what I might be doing wrong here?
<div id="video">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="211" height="316" id="FLVPlayer" style="visibility: visible; ">
<param name="movie" value="FLVPlayer_Progressive.swf">
<param name="quality" value="best">
<param name="wmode" value="opaque">
<param name="scale" value="noscale">
<PARAM NAME="loop" VALUE="true">
<param name="salign" value="lt">
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&skinAutoHide=true&streamName=ScreenOnlyDemo&autoPlay=true&loop=true">
<param name="swfversion" value="8,0,0,0">
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don't want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf">
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="211" height="316">
<!--<![endif]-->
<param name="quality" value="best">
<param name="wmode" value="opaque">
<PARAM NAME="loop" VALUE="true">
<param name="scale" value="noscale">
<param name="salign" value="lt">
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&skinAutoHide=true&streamName=ScreenOnlyDemo&autoPlay=true&loop=true">
<param name="swfversion" value="8,0,0,0">
<param name="expressinstall" value="Scripts/expressInstall.swf">
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div><!-- video end -->
It depends on what did you set in your Flash file (FLA). By default, a Flash file loops when it reaches the last frame.
FYI, to stop the loop, add a stop(); in the ActionScript at the end frame. Valid for ActionScript 1-3.
Related
I'm trying to get my flash animation working in Firefox. It works excellently in both Chrome and Internet Explorer, but when I open up the webpage in FF it doesn't load. What's the problem? I'm seriously stumped. I also checked to see if there was any issues with my browser playing Flash in general but it works.
Here's the link to the site: http://mason.gmu.edu/~klee49/dees_peanuts/about_us.html
And here's the code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="600" id="FlashID" title="Dee's Peanuts Company Animation">
<param name="movie" value="assets/deespeanutsanimation.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="10" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="assets/deespeanutsanimation.swf" width="800" height="600">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="10" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="800" height="600" /></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
Thanks for your help.
EDIT: Hi, to whoever happens to have this problem in the future, I managed a workaround by using an iframe tag instead of object.
<iframe src="assets/deespeanutsanimation.swf" width="640" height="480" title="Dee's Peanuts Company" border="0" /></iframe>
I'm using video.js (v 4.3.0) with flash player on internet explorer.
How can i stretch the video to container area like in this example http://www.aleosoft.com/flashtutorial_autofitexample.html?
I've tried some modification on video.dev.js file to add <PARAM NAME="SCALE" VALUE="exactfit"> on generated flash object. And also i've changed the wmode from opaque to transparent like in the example page code. Modified video.js generates the flash player as below and still not stretching.
<object width="100%" height="100%" class="vjs-tech" name="video_1_flash_api" id="video_1_flash_api" data="video-js.swf" type="application/x-shockwave-flash" style="display: block;">
<param value="video-js.swf" name="movie">
<param value="readyFunction=videojs.Flash.onReady&eventProxyFunction=videojs.Flash.onEvent&errorEventProxyFunction=videojs.Flash.onError&autoplay=true&preload=auto&loop=undefined&muted=undefined&src=http%3A%2F%2Flocalhost%2Fh5mp%2F_html%2F1.html&" name="flashvars">
<param value="exactfit" name="scale">
<param value="always" name="allowScriptAccess">
<param value="all" name="allowNetworking">
<param value="transparent" name="wmode">
</object>
I need help embedding a .swf file onto my website. I have tried all kinds of code combinations. Here's what I currently have.
<div class="article_top_img">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" >
<param name="movie" value="myfile.swf">
<param name="quality" value="high">
<param name="wmode" value="opaque">
<embed src="myfile.swf" quality="high" wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="310"></embed>
</object>
</div>
At the moment it's simply displaying the outline of the video.
I've just tried to embed a swf file to HTML file with Adobe Dreamweaver application. Name of the swf file is t0.swf, it's located on the Desktop. It generated this code block:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400" id="FlashID" title="swf file">
<param name="movie" value="../Desktop/t0.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="7.0.70.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="../Desktop/t0.swf" width="550" height="400">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="7.0.70.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
I've tried to view this html file with Google Chrome(version 30.0.1599.66 m), Mozilla Firefox (Version 24.0), Internet Explorer (Version 8) and Opera(Version 11.51). They all opened that html fine, swf animation starts playing just after opening the html. Also I've tried your code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" >
<param name="movie" value="../Desktop/t0.swf">
<param name="quality" value="high">
<param name="wmode" value="opaque">
<embed src="../Desktop/t0.swf" quality="high" wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="310"></embed>
</object>
It also worked fine, except that internet explorer showed the swf animation a little bit smaller, but it worked. May be you should check your flash player plugin.
My flash media player is not playing automatically when my webpage loads. I have changed the settings from 0 to 1 (which should auto start the file), but still does not start the song automatically. This occurs in IE, FF, and Chrome. Thanks for any help.
<object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" width="200" height="20">
<param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="mp3=/NewAYSsite/music/Great_is_Thy_Faithfulness_Crystal_Lewis.mp3&autoplay=0&autoload=1&showstop=1&showvolume=1&bgcolor1=ffa50b&bgcolor2=d07600" />
</object>
Remove autoload=1 and set autoplay=1 so your code looks like this:
<object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" width="200" height="20">
<param name="movie" value="http%3A//flash-mp3-player.net/medias/player_mp3_maxi.swf" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="mp3=/NewAYSsite/music/Great_is_Thy_Faithfulness_Crystal_Lewis.mp3&autoplay=1&showstop=1&showvolume=1&bgcolor1=ffa50b&bgcolor2=d07600" />
</object>
If you can't get the mp3 to load then add a full path including the http://
Remove autoload=1 and set autoplay=1 (or set 0) so your code looks like this:
<i><object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" width="200" height="20">
<param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="mp3=/NewAYSsite/music/Great_is_Thy_Faithfulness_Crystal_Lewis.mp3&autoplay=0&autoload=0&showstop=1&showvolume=1&bgcolor1=ffa50b&bgcolor2=d07600" />
</object></i>
i have made some demo movies in WMV format that i want to embed in my html page.
I've found some code to do that, but one thing annoys me: it shows a black front in stead of a picture of the first frame.
And i can ofcourse put some descriptive text around the frames/movies, but it isn;t such a nice sight: all black squares with a play button beneath it.
What do i have to do to show a (first) frame of the movie?
This is my code:
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsm p2inf.cab#Version=6,4,7,1112">
<param name="filename" value="http://www.ladieda.com/mymovie.wmv">
<param name="autoStart" value="false">
<param name="showControls" value="true">
<param name="AllowChangeDisplaySize" value="true">
<param name="ClickToPlay" value="true">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="http://www.ladieda.com/mymovie.wmv" AutoStart="false" ></embed>
</object>
Michel
Ps tried it in IE8 and FF3.6, both showed up black.
My example works.
<object id='mediaPlayer' width="320" height="285"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="http://www.ladieda.com/mymovie.wmv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="false">
<param name='showControls' value="true">
<param name='loop' value="true">
<embed type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="http://www.ladieda.com/mymovie.wmv" autostart="true" designtimesp='5311' loop="true">
</embed>
</object>
Your example was modified to work:
<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsm p2inf.cab#Version=6,4,7,1112">
<param name="fileName" value="http://www.ladieda.com/mymovie.wmv">
<param name="autoStart" value="false">
<param name="showControls" value="true">
<param name="AllowChangeDisplaySize" value="true">
<param name="ClickToPlay" value="true">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://www.ladieda.com/mymovie.wmv" autoStart="false" ></embed>
</object>
And yes, it works both on Firefox 3.6 and IE8 (I tested it myself).
<param name="fileName" value="http://www.ladieda.com/mymovie.wmv"> is good for ff
for IE should use name="URL"
too lazy to provide link to msdn.