Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US :: FAQ
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE DREAMWEAVER:HomeDreamweaver ForumDreamweaver TutorialsFAQAdobe FlashWeb Design

Looping an FLV

COW Forums : Adobe Dreamweaver

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook
James GordanLooping an FLV
by on Apr 23, 2012 at 7:25:27 pm

Hi,

I have been searching the web for hours now trying to figure out how you loop an flv on a web page. I have got it to auto play and auto rewind, but it does not loop.

I have tried adding <param name="loop" value="true" /> but this doesn't have any effect.

The FLV has been exported from Adobe Premiere so using fancy actionscript is not an option.

Any help would be greatly appreciated.

Here is my code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="360" height="288" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_1&amp;streamName=media/barsandtone&amp;autoPlay=true&amp;autoRewind=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="360" height="288">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_1&amp;streamName=media/barsandtone&amp;autoPlay=true&amp;autoRewind=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>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>


Return to posts index
Reply   Like  

demetri tashieRe: Looping an FLV
by on Apr 26, 2012 at 2:12:03 pm

an example might be helpful to see what is really going on.

your SWF is actually looping. SWFs by will by default loop. the parameter 'loop' with a value of 'false' will keep it from looping.

what i presume you are really asksing about is the FLV ( the 'video' ) that is actually playing inside the SWF.
FLVs will not play natively on a web page/in a browser. they need to be inside a FLV player, which is then outputted inside a SWF. It is this SWF which is actually placed inside the HTML - the web page.

add to this that the FLV player needs a 'skin' if you want some sort of controls. a lot of programs - and i will assume Premiere is one - will take care of all of this and will combine all of these these and output for you the completed SWF, which is actually what you embedded in your web page.

Your HTML/web page has no idea that there is actually a video playing inside the SWF. FLV players will usually play once, and DO need some form of code, or instruction to once completed, to play over again.

as a quick test,and example, take a look at this page. i am using your exact code, placed in a absolute minimal web page. the only thing i changed from your code was to change it to the name of MY swf.

my SWF, created in Flash, has a FLV video player component which plays a 30 second video. the swf itself is 7 seconds long. approximately every second, ( every 15th frame on a swf with a frame rate of 15 frames per second), the number above the player changes.

from this you can see that the SWF itself is actually playing in a continuous loop, while the FLV is playing independent of the SWF's timeline, and it stops once it is done.
video does NOT loop

and here is the same webpage, but now the FLV player is told by some simple code ( inside of Flash, which outputs theSWF) to loop the FLV
vieo DOES loop

that might be more info than you thought you were asking for! if you have flash, i could walk you through the steps. if you don't, and your swf really is just a simple FLV player playing that FLV, maybe i could output a new SWF for you. let me know

PS: i use, and recommend using SWFObject to embed your SWFs inyour Web pages


Return to posts index
Reply   Like  

Paul MitchellRe: Looping an FLV
by on Jun 20, 2012 at 9:33:27 am

Hi Demetri

I was interested to see how you solved the Looping FLV inside the SWF file. Could you advise the 'simple code' you refer to as I seek as solution to this problem.

Like yours , I place and FLV in a frame within the SWF. When exported the SWF looks for the FLV - plays it once and stops. I would like the FLV to continue looping

Any help you can offer is greatly appreciated.

Regards

Paul Mitchell


Return to posts index
Reply   Like  


demetri tashieRe: Looping an FLV
by on Jun 20, 2012 at 12:37:01 pm

assuming your flv is playing through a FLVPlayback Component:

with the FLVPlayback Component haviang an instance name of 'flvPlayer', and using a flv/f4v with a name of 'loop.f4v' , then this code would loop the video:

import fl.video.*;

flvPlayer.source="loop.f4v";

flvPlayer.addEventListener(VideoEvent.COMPLETE, completedPlay);
function completedPlay(e:VideoEvent):void {
flvPlayer.play();
}


i hope that helps


Return to posts index
Reply   Like  

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook


FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2014 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]