Reputation: 30158
I'm trying to load an h264 mp4 into fancybox lightbox - is there a way to do this? If not - how would I do this by uploading video to youtube or vimeo? I see it's on the roadmap, not sure if there's a way I could improvise for the time being.
EDIT - This is my code based on the suggested answer below, which does not capture the href of the link. I need to know how to capture the href.
$(".galleryVideo").fancybox({
'padding' : 0, // optional
'title' : this.title,
'content': '<embed src="{site_url}js/jw/jwplayer.swf?file='+this.href+'&autostart=true&fs=1" type="application/x-shockwave-flash" width="444" height="250" wmode="opaque" allowfullscreen="true" allowscriptaccess="always"></embed>'
});
Upvotes: 0
Views: 5239
Reputation: 41143
You need a swf player in any case. You may use jwplayer for instance and if you do so, check this thread to get an idea how to use it with fancybox.
Upvotes: 2