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

Youtube control

$
0
0

Hey Everyone,

 

I am looking to create a billboard that has a youtube video embedded in it that will start playing automatically, muted, and upon clicking a button, it will restart from the beginning with sound.

 

Currently I can embed the youtube video, and can get it to play automatically by adding autoplay to the embed code, but I have no idea how to control all other aspects of it.

 

Here is the project file...Just a low quality mocks with random videos.

Dropbox - Wisers_YouTubeTEST_prj.zip

 

I am using this code in the compositionReady spot:

 

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

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

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

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

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

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

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

youtubevid.attr('allowfullscreen','0');  

 

 

Some help here would be greatly appretiayed and probably help a lot of people as clients like the idea of using youtube, and to stay within the IAB guidelines, videos must be muted if you opt for auto play.

 

THANKS!

 

-Jason


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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