7 Replies Latest reply on Oct 27, 2016 12:36 AM by yılmazt24746711

    YouTube API in Edge Animate

    Marcus v

      Hi,

       

      Does anyone know how to load the youtube api in edge animate?

       

      The code is at the top of this page: https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player

       

      I know you can add an iframe like this:

       

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

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

       

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

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

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

      youtubevid.attr('src','http://www.youtube.com/embed/ZHUjDWpHJvU');  // url/Video_Id

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

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

       

      BUT I'm creating a banner ad and I need to access the api methods to pause the player without removing the iframe.

       

      Many thanks

       

      Marcus