Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Unload embedded video.

$
0
0

Hi all,

 

 

Loading a video using the following method:

 

var youtube = $ ("<iframe/>");

sym.$ ("movie").append(youtube);

youtube.attr('type','text/html');

youtube.attr('width','444');

youtube.attr('height','250');

youtube.attr('src','https://www.youtube.com/embed/WsLbFqWYUOg?autoplay=1');

youtube.attr('frameborder','0');



What I'd love to be able to do is unload the video with a button: when the user clicks the button - the video stops and unloads so that the next time it is loaded there would be no stacking (which is what happens at the moment)

 

You guys have any suggestions?

 

Thanks in advance!

 

Ivan


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>