Skip to main content
Inspiring
May 8, 2008
Question

Finding bytes loaded?

  • May 8, 2008
  • 1 reply
  • 531 views
How do I find out how much of a streaming video has been buffered? The variable stream.bytesLoaded is zero (stream is of type NetStream). Why?

The platform: AS3 + MediaServer 3

File format being streamed: MP4
    This topic has been closed for replies.

    1 reply

    fekleeAuthor
    Inspiring
    May 8, 2008
    Hm, I think I found the solution. The sum of _stream.time and _stream.bufferLength gives one the position of the current "end of the buffer".
    fekleeAuthor
    Inspiring
    May 8, 2008
    Playing with this solution brings up two new questions:

    * Why does _stream.bufferLength not increase smoothly (it somewhat jumps ahead)?

    * Is it correct that AS3 does empty the buffer when seeking in the stream? Can this be avoided? For example, in YouTube, when a video is completely loaded, one can seek around without having to wait again for any buffering. Is that not possible with videos streamed through the media server?
    fekleeAuthor
    Inspiring
    May 10, 2008
    Anyone? How do I properly find out till what time the buffer is filled?

    Other than that: How do I get quick and decent answers to questions such as this? Are there addditional places to watch out for? Is there official support from Adobe concerning programming issues?