LayerSlider WP Video

  • In Progress
    Posted in: Game Addict  
  • Member
    WarMoose
    March 18, 2014 at 5:16 pm #31008

    When using firefox with am embeded video in a slide, it does not display video but only audio. Internet Explorer (ew) and Chrome both work fine though. It is not the code itself because I tested it with jsfiddle using firefox and it worked there.

    html:
    <img id=”pic-video”” img src=”imgurl” data-video=”http://www.youtube.com/embed/5zvJl0YpWaM?rel=0&controls=0&showinfo=0;autoplay=1″&gt;

    js:
    (function($) {
        $(‘img[id^=”pic-video”]’).click(function(){
            video = ‘<iframe width=”483″ height=”272″ src=”‘+ $(this).attr(‘data-video’) +'”></iframe>’;
            $(this).replaceWith(video);
        });
    })(jQuery);

    RESOLVED

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.