Jump to content
Search Community

Videoloader bug?

Alexius test
Moderator Tag

Recommended Posts

I used the videoloader. It seems like it is dispatching 2 events for when the buffer is full. I traced out that the function playvideo is being called twice. Maybe I ve done something wrong here.. Here is my code anyway:

 

_videoLoader = new VideoLoader(videoSrc, {name:"sectionVideo", container:_assets, width:900, height:450, bgColor:0x000000, autoPlay:false, volume:1, estimatedBytes:900000});
_videoLoader.addEventListener(VideoLoader.VIDEO_BUFFER_FULL, onBufferFinished);
_videoLoader.addEventListener(VideoLoader.VIDEO_COMPLETE, hide);
_videoLoader.load();
}

private function onBufferFinished(event:Event):void
{
TweenMax.to(_assets.videoMask, .8, {delay: .3, x: 0, ease: Sine.easeIn, onComplete: playVideo});

}

 

Another strange thing is when I set bufferTime property is doesnt want to play at all.

Link to comment
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.
×
×
  • Create New...