Colin Moock @ Adobe AS3 Tour in Munich Update using fl.video package w/ Eclipse and FDT3
Post by Phil / February 4th, 2008

FLVPlayback - problems closing NetStream

Today I tried to create a fullscreen-videoplayer using Flash CS3's own FLVPlayback class. Everything worked fine ... untill I tried to remove the videoplayer from stage while it was still loading the flv-videofile. The player wouldn't stop streaming the file, it just kept on playing the video - even after i had removed it. I googled in hope to find an easy solution to this problem and found this post by Bluekylin.
So I tried this line:

  1. // get the current VideoPlayer and close the NetStream
  2. getVideoPlayer(activeVideoPlayerIndex).close();

... and it really worked :)
The getVideoPlayer() method return a VideoPlayer object which offers you the opportunity to close the NetStream via close().
This line really solved the problem and stopped the file from being streamed/loaded.

Maybe this is of some help to you ... cheers

Sorry, no comments at this time.