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.