Jump to content
Search Community

VideoLoader videoBuffer bug

kenny test
Moderator Tag

Recommended Posts

I am using the VideoLoader to create a simple video player. I have added a videoBufferEmpty and a videoBufferFull event listener to display a buffer animation when a video is buffering. However, when the video finishes playing I see the buffer animation come on for 1 second then disappear.

 

Is there a bug on the videoBufferEmpty that set the buffer to empty when the videoComplete function is called?

Link to comment
Share on other sites

I downloaded the latest version. Its working :) Thanks.

 

btw. This problem seems to occurs when you use the NetStatusEvent.NET_STATUS too, but I guess i'll use the videoBufferEmpty and videoBufferFull listeners instead.

It seems that the netstream buffer get emptied before the video stops.

 

vid.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);

function onNetStatus(e:LoaderEvent):void{

switch(e.data.code){
	case "NetStream.Play.Stop":
		bufferAnim.visible = false;
	break;

	case "NetStream.Buffer.Full":
		bufferAnim.visible = false;
	break;

	case "NetStream.Buffer.Empty":
		bufferAnim.visible = true;
	break;
}
}

Link to comment
Share on other sites

Another issue, the scaleMode of the video looks different from the older version of the VideoLoader class I was using. The 'proportionalInside' scaleMode looks like its stretching the video.

 

Is there any issues with the scaleMode of newest version of the VideoLoader class?

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...