views:

326

answers:

1

I am trying to show the buffered amount of a video that is playing. I am using netstream.bufferLength to do this and it kinda seems to be right. Exept from the fact that it is almost constantly the same amount that is buffered. This can't be right?

I want it to be like youtube where you can press pause and the buffer will continue to rise. When I click pause it just stays the same..

Anybody knows how to show buffer length?

+2  A: 

you are getting confused between buffer which is a preloaded section of content that loads just infront of the current playcode, thus being a comparason to teh timecode you are at and the availablilty of instant playing and caching a loaded file which puts the whole file into temporary memory, so allowing for the loading as you described.

you can find the total loaded data (percentage) by using netstream.bytesLoaded / netstream.bytesTotal;

shortstick
I have tried that too, but that is constantly at 100%. Can that be right?
Tinelise
Ahh! Never mind! It works perfectly when the movie isnt already loaded. Stupid me :)Thank you so much :)
Tinelise