A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: netstream.buffer.empty

  1. #1
    perpetually bored
    Join Date
    Jun 2003
    not there


    I just built a player and am having some trouble with netstream.buffer.empty

    It is not being called when it should... at least I think... it should be called when the buffer.length drops below the buffer.time right? ... as you can imagine, this is messing up my player.

    For now, I have come up with the solution of checking the buffer.length property with an interval or an oef function and having the player react accordingly. This is working fine, but is doing what the buffer.empty onStatus event should... I would rather use the built in event than make my own... any suggesstions or insights into why I am having this problem?
    -update: this method isn't so great. sometimes when I am moving the seekbar the buffer.length drops below the buffer.time and the clip shows... i guess I could kill the interval check when the seekbar is being dragged but imo this is just another uneccessary method if everything worked how it was supposed to

    one thing that may be causing the problem is that I am not truly having buffer delays -- my modem is too fast and loads media faster than it plays -- so to test I have been dragging the seek bar to a point just before seek.invalidTime but still far enough to bring the buffer.length to a value below the buffer.time -- this is kind of cheating and so it may not register as true buffer.empty events... i don't know

    -it should be noted that I am getting buffer.full events when the buffer.length catches up and becomes larger than the buffer.time

    should I just drop my buffertime down?

    Last edited by flashlorax; 02-09-2006 at 01:21 AM.

  2. #2
    Junior Member
    Join Date
    Jul 2006
    Hey flashlorax, did you ever figure out what the problem was and how to solve it?

    I have the exact same problem with the onStatus event handler of the NetStream object: the code property of the infoObject never reports "NetStream.Buffer.Empty." I get "NetStream.Play.Start" and "NetStream.Buffer.Full" but never the empty one.

    I've been searching Flash forums for days and only found a couple of people with the same problem. Nobody has posted a solution or a good workaround.

    I've also e-mailed Lee Brimelow, of gotoAndLearn.com fame, but he didn't respond to me yet.
    Last edited by five-0; 07-15-2006 at 09:37 PM.

  3. #3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center