2 Replies Latest reply on Jun 19, 2015 7:45 AM by Ivan Katsarov

    Unload embedded video.

    Ivan Katsarov

      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