Shadowbox FLV video linking to Quicktime
-
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
- The topic ‘Shadowbox FLV video linking to Quicktime’ is closed to new replies.