5 Replies Latest reply on Feb 1, 2016 4:01 AM by pedrojazz

    Help converting this vimeo control code to edge

    danj59321071

      Here´s the code!

       

      <script src="http://a.vimeocdn.com/js/froogaloop2.min.js"></script>

       

      //The video

      <iframe id="vimeo-player" src="//player.vimeo.com/video/76979871" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

       

      //this is a textlink. I want this to be triggered from a symbolbutton.

      <div id="stop">[STOP]</div>

       

      $('#stop').click(function() {

          var iframe = $('#vimeo-player')[0];

          var player = $f(iframe);

          player.api('unload');

      });

       

      Thanks Danne/