title: NetStream: dual threshold buffering, and seeking beyond buffer
body: <p><a href="http://www.adobe.com/devnet/adobe-media-server/articles/fms_dual_buffering.html" rel="nofollow">This</a> was a helpful article about dual threshold buffering. It explains that you can listen for the <code>NetStream.Buffer.Full</code> and <code>NetStream.Buffer.Empty</code> events on a <code>NetStream</code> and adjust the <code>NetStream</code>'s buffer time accordingly to make the best use of available bandwidth and also get fast video start times. I've encountered a problem though. When I seek past the buffered section of video in my NetStream, the buffer is once again empty, but I don't get a <code>NetStream.Buffer.Empty</code> event. The <code>NetStream</code>'s buffer time is still set to my expanded buffer time so I lose the advantage of a fast start time. How do you implement this strategy so that it works properly in this case? How do you tell that the buffer is empty again or that you have seeked past the available buffer?</p>
  
  <p>Edit: I should probably mention I am using in-buffer seeking (Smart Seeking). I think this wouldn't be a problem if I wasn't, because flash flushes the buffer on every seek without this feature enabled. </p>