Jump to content
Search Community

videoloader and progress problem

junky test
Moderator Tag

Recommended Posts

I've created a video site, but I've run into and error. In order to not allow the scrub bar to be fast forwarded beyond what's already downloaded I'm trying to limit it's width. BUT the problem is that both:

 

event.target.progress

and

event.target.bytesLoaded/event.target.bytesTotal

 

equal 1. Meaning the whole file has downloaded. BUT that's not the case. I know the video is on a different server out side my home location. Help please.

Link to comment
Share on other sites

ok to thicken the plot...

 

I have gotten the player to trace the progess.

 

function updateDownloadProgress(event:LoaderEvent):void {

trace(event.target.progress)

trace(event.target.bytesLoaded, event.target.bytesTotal)

}

 

The problem seems to be rather than tracing the whole progress it traces just the buffered amount (bufferMode is set to true).

 

What can I do?

Link to comment
Share on other sites

Yep, that’s exactly how the VideoLoader is supposed to behave when bufferMode is set to true – it reports its progress and bytesLoaded/bytesTotal according to the buffer, not the entire video file’s download progress. Keep in mind that you can change bufferMode anytime.

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