mardi 21 avril 2015

Fancybox Youtube videos not working on Firefox

Vote count: 0

This is my config for my videos. On Chrome everything is fine but on Firefox when I click my link Firefox tries to download link.

I'm using iframe but on Firefox it says x-shockwave-flash. My Firefox has not flash extention. I don't want to work with flash. How can I fix it?

enter image description here

$(document).ready(function () {
  $("a.productVideo").click(function() {
      $.fancybox({
          'padding'       : 0,
          'autoScale'     : false,
          'autoPlay'      : true,
          'transitionIn'  : 'none',
          'transitionOut' : 'none',
          'title'         : this.title,
          'width'         : 680,
          'height'        : 495,
          'href'          : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
          'type'          : 'iframe',
          'iframe'        : {
              scrolling : 'auto',
              preload   : true
          }

      });
      return false;
  });
}); // ready

asked 2 mins ago
hakkikonu
1,089



Fancybox Youtube videos not working on Firefox

Aucun commentaire:

Enregistrer un commentaire