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

Play embedded Youtube video on mouseover

$
0
0

Hi guys.

 

I've embedded a youttube video in a banner and it works properly.

 

I would like the youtube video to play on mouseover and stop on mouseout but I have no idea how to make this happen.

Have searched the web for answers and have found javascript and jquery solutions for this, but I don't know how to implement it into Edge Animate.

 

Does someone have a solution for this?

 

 

in my CompositionReady I have this (just to embed the youtube video)

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

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

 

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

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

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

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

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

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

 

this is the banner:

http//bannere.marketsquare.dk/bmcs/borrebyteater/300x250_borrebyteater.html


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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