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

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

$
0
0

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!


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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