Thanks for the reply. I've given that method a try and I can get the
video to load, but can't get anything beyond the player defaults to
parse in the 'swf': parameter, or where I put the config="{'clip':
[etc...]}". Here's the code (I've stripped out the gallery
functionality for the time being until I can get this working):
The anchor tag looks like so:
<A class="overlay" href="
http://mydomain.com/landing/Pages/flowplayer/
flowplayer.commercial-3.2.7.swf?config={'clip':'http://
www.mydomain.com/videos/Client%20Testimonial_First%20Comp.mp4'}"
name="Client_20Testimonial_First_20Comp.mp4" title="Client
Testamonial">[Microsoft rendered garbage which I've excluded for
brevity]</a>
$("a.overlay").click(function(){
/* This variable grabs the name attribute from the anchor being
clicked on */
var thisVid = $(this).attr('name');
var videopath = "
http://www.mydomain.com/elqNow/elqRedir.htm?
ref=
http://www.mydomain.com/videos/";
var elqVidRed = videopath+thisVid;
$(this).fancybox({ // OPTIONS :: DIMENSIONS, PADDING, ETC CAN BE SET
HERE
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 600,
'speedOut' : 200,
'overlayShow' : true,
'showNavArrows' : false,
'padding' : 30,
'scrolling' : 'no',
'height' : 340,
'width' : 480,
'title' : this.title,
'type' : 'swf',
'swf' : {
'wmode' : 'transparent',
'key' : '#################',
'allowfullscreen' : true,
'plugins' : {'controls':
{'url':'flowplayer.controls-3.2.5.swf','autoHide':'never','progressColor':'#112233','buttonColor':'#D4D6D6','buttonOverColor':'#002B5C','backgroundGradient':'none','hideDelay':'1000','timeBgColor':'#D4D6D6','borderRadius':'0px','volumeSliderGradient':'none','tooltipColor':'#666666','sliderColor':'#002B5C','durationColor':'#ffffff','bufferColor':'#D4D6D6','volumeSliderColor':'#D4D6D6','timeColor':
'#ffffff','sliderGradient':'none','bufferGradient':'none','progressColor':'#D4D6D6','height':
24,'opacity':1.0}}
},
'onStart' : function(){
/* THIS NEXT STATEMENT WILL CHECK TO SEE IF THE OVERLAY HAS THE
NECESSARY
LINKS ALREADY INSIDE THE HIDDEN DIV, AND IF NOT INJECT THEM AFTER
THE
FLOWPLAYER DIV HAS FINISHED INITIALIZATION */
if($("#fancybox-outer .video-links").length == 0) {
$("#fancybox-content").after(
'<div class="video-links"><a class="video-library" href="#">VIEW
ALL VIDEOS</a><a href="" class="video-share">SHARE</a><a href=""
class="eloqua-redirect"></a></div>'
);
}
},
'onComplete' : function() {
$('.video-links .eloqua-redirect').attr("href",
elqVidRed).click();
/*alert(elqVidRed);*/
},
'onCleanup' : function() {
/* THESE STATEMENTS WILL RETURN THE OVERLAY DIV FLOWPLAYER
OCCUPIES TO
IT'S ORIGINAL STATE, AND UNLOAD OVERLAY'S FLOWPLAYER INSTANCE
BEFORE
EXITING THE SCRIPT */
/*$("#overlayPlayer").hide();*/
$('#fancybox-outer').remove('.video-links');
$f().unload();
}
});
return false;
});
I am unable to get any of the other parameters like the 'key' or the
'plugin':{'controls':{[...]}} code to parse properly. Am I doing
anything obviously incorrect?
On May 3, 9:09 pm, JFK <
jfk.d...@gmail.com> wrote:
> I wouldn't use such github method
> I would use the regular method as suggested in fancybox tip #4 so no
> issue having a gallery of videoshttp://
groups.google.com/group/fancybox/browse_thread/thread/86d68045...