Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: ,

Sponsored Links



How to loop flv files?

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 27-08-2009
GANGSTA's Avatar
Member
 
Join Date: Feb 2006
Posts: 85
How to loop flv files?

Generally flv files are flash files and i dont see any option given anywhere for its loop feature. So can anyone tell me how to loop flv files? How to get a .flv file to loop or restart itself when it's done playing? Thanks for any help.
__________________
ALWAYS RIGHT - OTHER WISE I WUDNT SEY IT
Reply With Quote
  #2  
Old 27-08-2009
Team Leader's Avatar
Member
 
Join Date: Dec 2007
Posts: 1,516
Re: How to loop flv files?

You can do something like this if you are loading external flv files and using the NetStream method accepting that you know the length of your .flv file:

if(my_ns.time==90){
my_ns.seek(0);
}

my_ns is your NetStream. (check out the actionscript dictionary)
Reply With Quote
  #3  
Old 27-08-2009
JAMES_911's Avatar
Member
 
Join Date: Dec 2007
Posts: 1,553
Re: How to loop flv files?

Looping an FLV file requires being able to detect the end of the FLV, so this tutorial will cover both. The recommended method of detecting the end of the FLV playback is via the NetStream::onStatus event handler, by checking for NetStream.Play.Stop event. However, many people have reported that this event is not always sent (which could be due to undocumented bugs in the flv implementation on the NetStream class). For that reason, we will also need to create workaround for FLV files that does not send the NetStream.Play.Stop event.

More information here.
Reply With Quote
  #4  
Old 27-08-2009
Expertz's Avatar
Member
 
Join Date: Dec 2007
Posts: 1,432
Re: How to loop flv files?

Hope the below code help you

Code:
listenerObject = new Object();
listenerObject.complete = function(eventObject){
myMedia.stop();
myMedia.play();
trace ("ready");
}
_root.myMedia.addEventListener("complete", listenerObject)
Reply With Quote
Reply

  TechArena Community > Software > Windows Software


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to loop flv files?"
Thread Thread Starter Forum Replies Last Post
Watercooling: Single loop or Dual Loop Akolekar Hardware Peripherals 3 21-10-2011 11:52 PM
Reboot Loop in Windows 7 Reboot loop and Safe mode doesn't work mADiRAkSHii Operating Systems 4 25-01-2011 07:23 PM
For loop ignore hidden files Juaquine Software Development 4 10-02-2010 06:13 PM
Which is best for iterator: For loop or while loop Leeland Software Development 4 18-01-2010 06:03 PM
Differentiate between Do-While loop and While loop REDBULL Software Development 3 26-11-2009 10:10 AM


All times are GMT +5.5. The time now is 04:08 PM.