WordPress.org

Ready to get started?Download WordPress

Forums

Shadowbox FLV video linking to Quicktime (1 post)

  1. hcinderela
    Member
    Posted 3 years ago #

    I am using this code to put video into my nextgen gallery.

    jQuery(document).ready(function($){
      $(".ngg-gallery-thumbnail a").each(function (arr){
        if ($(this).attr("title").substr(0,5)=="Video"){
          var thereltag = $(this).attr("rel").substr(0,22);
          $(this).attr("rel", thereltag + ";width=512;height=348");
          $(this).attr("href",$(this).children("img").attr("title"));
          var thesrctag = $(this).children("img").attr("src");
          $(this).children("img").attr("src", "/wp-content/gallery/film.php?path=" + thesrctag);
        }
      })
    });

    I upload the thumbnail like a normal image and in the alt line I put the word Video. The problem is that when the thumbnail is clicked shadowbox pops up, followed by a box asking if you want to save the file or play it with quicktime.

    I have seen other posts about putting player=flv; in the rel tag, but am not really sure how to do that. I tried putting it in line 5 before the width and height, but didn't work.

    Oh and these are self-hosted flv files.
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic