1 Reply Latest reply on Mar 16, 2015 10:42 AM by fedorv64812277

    help solve the problem with youtube

    fedorv64812277

      I use code

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

      sym.$("Rectangle").append(youtubevid);

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

      youtubevid.attr('width','853');

      youtubevid.attr('height','480'); 

      youtubevid.attr('src','https://www.youtube.com/embed/Rmin8zXzF5g?rel=0');  // url/Video_Id

      youtubevid.attr('frameborder','5');   // 1 | 0

      youtubevid.attr('allowfullscreen','0');   // 1 | 0

       

      I In Use button that closes the container, all is well it works!

      but if you close the container when the video started, the audio from YouTube continues to play, tell me what code to hang on the Close button to stop the video from YouTube?