233 posts
  • Has referred 500+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Member of the Envato Team
+9 more
placdarms Envato team says

Hi ActiveDen people. came here from VideoHive asking for your advice. There is this simple problem, which might bee too simple for you, but it’s huge for me as I’m not working with flash and actionscript normaly.

I made a video banner for client that plays separate flv file. banner will be displayed in the separate window or something so in the banner has to be X close button that calls JavaScript.

that part is fine, but the same button also have to kill the video stream. I was searching the forums and Google and all i can find is yourvideoplayername.stop(); which stops video and audio, but doesn’t stop the loading process. I mean – I can see at the bottom of my browser that it is still accessing the third party website and is loading the video content from there – therefore wasting resources while video is already closed.

any help?

1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

Is this video managed with FLVPlayback Class or a custom written video class?

5389 posts The Dude Abides
  • Located in United States
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+9 more
CodingJack says

If you’re using the FLVPlayback Component, add this:

video.stop();
video.closeVideoPlayer(); 

if your using your own custom player, add this:

netConnectionVar.close();
netStreamVar.close();
video.clear();
by
by
by
by
by
by