2 Replies Latest reply on Apr 21, 2015 3:10 AM by Awedell

    Play embedded Youtube video on mouseover

    Awedell

      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