Here is a neat little snippet to get a YouTube HTML5 video control inside Adobe Edge.
Setup Div Container
- First select the Rectangle Tool (M), then draw a div element.
- Once the div is created, alter the Size: w/h properties to fit the specifications of the YouTube player. I used 450 px (w). To get a proportionally scaled size, multiply the width by 0.8235 (source information here). In this case the height will be 350 px (h).
- Optionally set the Background Color and Border Color.
- Name this div element vcontainer.

Set up Stage Action
- In the Elements Panel, click the Action icon (encircled in red, below) to the left of the root ‘stage’ node.
- At the Actions Panel click the Add Action icon (+) and from the list choose compositionReady.
- Copy/Paste the below code snippet into the Actions Panel, close it. File > Save your Project; then File >Preview in Browser.

Note: I use the stage > compositionReady as an example use case. The snippet can be used wherever you wish to trigger it.
Code Snippet
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/GqcPh3OXoNo'); // url/Video_Id
youtubevid.attr('frameborder','1'); // 1 | 0
youtubevid.attr('allowfullscreen','0'); // 1 | 0
Code Snippet Explained:
- Line 1 creates a javascript object and stores it in a variable called ‘youtubevid’.
- Line 2 does symbol lookup for an element called ‘vcontainer’, and then appends the previuosly created object to it.
- Line 4- 9 defines the attribute parameters for the ‘youtubevid’ object.
Match the width/height values to that of your div container.
Replace the Video_Id (GqcPh3OXoNo) with the youtube video reference you want to show.
Sample Download file updated for Edge Animate 1.0
Download Sample File (sample also includes standard video embed)

Title: Youtube HTML5 Video Embed
Downloaded: 519 times
File Type is zip, size of 183.41 kB.

u made my day
one more item: it´s not working while using firefox (macos)
safari and chrome are working well
Indeed, it’s a symptom of FireFox not supporting H.264 format – which is a shame. Some details here: http://lifehacker.com/5488607/can-i-play-html5-youtube-videos-in-firefox-right-now
i tried to combine the “nested div hint” with the youtube hint ebove. it´s working well untill i´ll close the bested div. so… the video is still playing in the background. i did no find a way to stop it on “hide”-event for nested div.
any idea?
i had to edit the filename_edgeActions.js to embed the code into “nested”-symbol-stage.
now i have to find an solution to kill videoplayback whil hiding nested symbol-div.
here is just a test: http://makaber.de/edge_example/timeline.html
wordpress has filtered som parts of the code. here it is again: http://pastebin.com/dxNvcAh5