I’ve been trying to fix this prroblem for couple of days but now I’m almost sure that it is some kind of bug…
The thing is about NetStream conenction and buffering external .flv file into VideoPlayer
After closing NetStream the .flv dissapear and everything seem to work fine but when you look on your Internet Connection you will see that sth is still being send from the server, because the .flv is still buffering (going to browser’s cache) !!!
So lets assume that you have some videos (.flv’s) on your site (not embeded of course) and you want to play them in for example FLVPlayback. The quest comes to your site and cliks on a button that loads an external .flv. He gets bored and he cliks another button that is supposed to close actually played .flv. He closes it but his browser is still downloading the .flv that was already closed !!! He cliks on another page of your site and can’t open it because his internet connection is full !!!
I didn’t fin any way to overcome this problem. Commands like:
NetStream.close(), unloadMovie() or closeVideoPlayer() DON’T WORK (ok they ARE closing the file but they do not close the connection and file is still being sent to browser)
Of course I looked into Help and found for example:
close (NetStream.close method)
Example
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);
stream_ns.play(“video1.flv”);
close_btn.onRelease = function(){
stream_ns.close();
};
Of course it “closes” the file but data (.flv in this case) is still being send to the browser
I’m sory for my language but… what the **** is that ?