I have been trying to close the video connection from server but using FLVPlayback “stop()” method does not work , the video still keeps loading until complete…, and I don’t see there is “close()” method for the component.
After looking through the Flash help and found out that there is a method called “getVideoPlayer()” that returns the VideoPlayer reference which can use “close” method to close the stream! See below:
1 | myFLVPlayback.getVideoPlayer(0).close(); |
19 users commented in " Unload Video Using CS3 FLVPlayback Component "
Follow-up comment rss or Leave a Trackbacki haven’t worked with flash since as2. so much has changed and i’m completely lost in as3. i’ve seriously been searching for this for hours and hours. so simple now that i found your little posting. thank you so much!
Glad it helped, sometimes the Flash help is the gold mine:)
Thank A LOT!
I’ve been looking for a solution for this problem for hours on Google, thank god I eventually found your site.
THANKS!
thank you,i am solution for this problem
THANK YOU!!!
Hi Ed,
I tried the piece of code you give us but video is still loading after close(), I am looking for the solution along time but I haven’t foound anything that really works. if that piece of code workds for you could you post a sample cause I am really confused
cheers,
Giorgos
hi, i m using as2 and i wrote your code, it work but gave me an error like (can not reconnect a closed http).
So what is the way for make that right in as2 ?
It is for AS3 only…
great..exactly what i need
many thanks…
how to load another movie clip after we unload the video??..anyone??
n this is i wrote to load another movie clip after unload the video…can someone help me please…
var movRequest:URLRequest = new URLRequest(“w1.swf”);
var movLoader:Loader = new Loader();
nxtBtn.addEventListener(MouseEvent.CLICK, loadMuvi);
function loadMuvi(event:Event):void {
movLoader.load(movRequest);
addChild(movLoader);
vidPanel.getVideoPlayer(0).close();
}
nice hint!
Been looking for this type of close for years. Thank you.
Thank you so much. The rest of the internet has be utterly useless in helping me with this. Legend.
Most likely 0 (zero) would work, but you might want to close the active video player.
myFLVPlayback.getVideoPlayer(myFLVPlayback.activeVideoPlayerIndex).close();
Thanks for the tip!!!
I was looking for this on the internet for months!!!!
thanks a lot!!!
very usefull!
Thank you thank you!
great !!
Your post helped me resolving a major problem in my code that I almost give up since I could not call for tech. support.
Thank you so much.
Leave A Reply