id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	thread
1360	getBuffer() reporting 0 when buffering with Sound mediaprovider	pablo		"From Brad Wood:

{{{

These are identical with the exception of the file I am loading. Both 
examples listen onReady() and call a seek() function I wrote to seek 
to 45 seconds in. The seek() function pauses the player, and then
waits for the player to begin buffering. Once the player has buffered 
enough of the media, it starts playing. The code also keeps track of 
whether the buffer percentage is moving or not. If it has been longer 
than 5 seconds and nothing additional has buffered, I give up.

In the first example: http://admin.natsem.com/test/example6.html 
an FLV file is used (progressive download)

You will see in my log at the bottom of the page that the buffer 
percentage provided by getBuffer() steadily grows and eventually 
the player will start playing at the 45 second mark (or wherever the 
closest key frame is).

In the second example: http://admin.natsem.com/test/example7.html
an MP3 file is used (progressive download)

You will see that the buffer stays at 0 even though the file is 
downloading, or if it is the second time you hit the page, it
will be 0 even though the file is cached. My seek code will 
give up because it cannot tell that the player is buffered. Also,
if you hit the “Get Buffer %” button, that will confirm that getBuffer() 
reports “0” no matter how long the page sits there.

What is also interesting is if you hit the play button, the player 
instantly begins playing, and the “Get Buffer %” button instantly 
reports “100”. That doesn’t make a great deal of sense since the 
code I wrote starts the player and then pauses it before it begins 
watching the buffering which should have the same affect.
}}}"	bug	closed		Player 5.8	flash	fixed			http://www.longtailvideo.com/support/forums/jw-player/bug-reports/20323/getbuffer-reporting-0-when-buffering-mp3-via-http-progressive-download
