0

I'm experiencing an issue with a 20 video Flash project. We're calling the videos from a local source, and FLVPlayback is opening netstreams and generating this huge Uncategorized chunk of memory. Upon further inspection, it turns out that it's a large amount of netstream buffers. How do I empty these buffers?

I've found this NetStream.Buffer.Empty but I'm not sure how to properly use it.

JWhiteUX
  • 47
  • 9
  • 1
    I can't help you with the actual question, but I can tell you that `NetStream.Buffer.Empty` is a status of a `NetStream`, not a method you can call. You can occasionally see it when a video runs out of buffer in a status event. There is no way to "properly use it" since it is not an action. – Josh Jun 11 '15 at 22:06
  • 1
    You can use the `dispose()` method of a NetStream to free it from memory – BadFeelingAboutThis Jun 11 '15 at 22:23
  • Or, if you don't want to dispose the netstream, you can set it's `bufferTime` to `0`. – BadFeelingAboutThis Jun 11 '15 at 22:41
  • I'm now using this to empty the NetStream buffers `var vp: VideoPlayer = flvPlayer.getVideoPlayer(flvPlayer.activeVideoPlayerIndex); vp.netStream.dispose(); // Used to be close();` – JWhiteUX Jun 12 '15 at 05:33
  • @Batman You answered my question. Thank you for your help. – JWhiteUX Jun 12 '15 at 05:35

1 Answers1

1

Instead of using close(); I used dispose(); to stop, close, and flush the NetStream buffer. Many thanks to @batman

netStream.dispose()

JWhiteUX
  • 47
  • 9