1 Reply Latest reply on May 21, 2015 10:28 PM by Devendra Kumar

    Embed youtube video does not work in edge animate cc 14, relatively new user

    benf66502 Level 1

      Hello all, so I'm relatively new at edge animate, I've built some very basic websites in the past (nothing wild, basic coding). I am having trouble embeding a youtube video in edge animate cc 14. I've followed as many tutorials online as I can find and my basic workflow is as follows:

       

      Create new project

      Make stage larger than embeded video will be

      Create square (in this specific case 500 x 300)

      Right click square, convert to symbol, name it "video"

      Click open action on stage, choose compositionReady

      Type the following code:

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

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

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

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

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

      youtube.attr('src','https://www.youtube.com/embed/l989877o');

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

      youtube.attr('allowfullscreen','yes');

       

      According to everything I've seen or read that should work, but when I test the site in Chrome it doesn't do anything, simply a grey square box appears. Please help me as I'm about to pull my hair out.

       

      Thanks!