Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
cerulean

Avoiding Video(Loader) loop lag

Recommended Posts

I'm playing a video loaded through VideoLoader and looping it when it's complete

				_videoLoader.addEventListener(VideoLoader.VIDEO_COMPLETE,videoCompleteHandler,false,0,true);


	private function videoCompleteHandler($event:Event):void
		{
			
			_videoLoader.gotoVideoTime(0,true);
		}

I'm getting a slight pause on looping, which I guess is understandable, but it's not pretty.  Any suggestions on how to avoid?  I know with an FLVPlayback (I believe) one can load a video into different layers and switch them on and off.  Can I do something similar here?  Grab two copies of the video from the VideoLoader?  Or do I simply need to load the video twice, with two VideoLoaders? Or……

 

Thanks for any advice!

Link to post
Share on other sites

If you want to control two separate instances of the same video source file, you will have to use 2 VideoLoaders.

 

I've seen videos loop very well, and not so well at times. I think the issue you are experiencing could be a combination of problems inherent to the Flash Player and perhaps ways in which your video was encoded. That said, there really isn't anything VideoLoader can do to smooth out the lag you are noticing.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×