Closed (fixed)
Project:
Lightbox2
Version:
6.x-1.x-dev
Component:
Javascript
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2009 at 18:11 UTC
Updated:
21 Jun 2010 at 14:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
tobbetobbe commentedAfter fiddling around, the page is now here:
http://www.aleksandrarudnicka.com/node/86
Comment #2
stella commentedYour website has the following code (put within <code> tags so it's not rendered).
The lightvideo attribute changed in the last release so as to include support for grouping of videos. It's now
rel="lightvideo[groupname|width:300px; height: 200px;][caption]"orrel="lightvideo[|width:300px; height: 200px;][caption]". See the documentation at http://drupal.org/node/252276 for more details.The path to your flv player is "player.swf". You need to include a leading slash, e.g. "/player.swf".
Cheers,
Stella
Comment #3
tobbetobbe commentedWorks fine with a mov file.
Comment #4
tobbetobbe commentedsorry, posted before I read you answer.
Comment #5
tobbetobbe commentedI changed the code to:
<a href="/video.flv" rel="lightvideo[|width:300px; height: 200px;][test video inside lightbox]">remember me video - default size</a>and changed to "/player.swf" in the video settings. The browser still downloads the file instead of showing it in lightbox. weird...
Comment #6
stella commentedHmmm it works for me with http://www.arronsfootball.co.uk/videos/mrwoo2.flv and http://www.longtailvideo.com/players/jw-flv-player FLV player...
Comment #7
tobbetobbe commentedI added this to the flashvars field in lightbox video settings:
"&backcolor=111111&frontcolor=cccccc&lightcolor=66cc00&skin=/stylish.swf&controlbar=over"I got that code from the JW player setup wizard page.
... and suddenly it works!!
Does this mean you have to use flashvars?
another thing: the flashvars settings should show the controls over the video, but they show only when the video is fullscreen. Any idea on that?
I am having so much fun with this module. Thank´s for that. I will be even happier the day I finish this, my first drupal website :) Starting to doubt that day will ever come.
/Tobias
Comment #8
tobbetobbe commentedIt seems as if you have to put an extra "&" after the last flashvars setting to make it work. Now I have this and it works fine:
"&backcolor=111111&frontcolor=cccccc&lightcolor=66cc00&skin=/stylish.swf&controlbar=over&autostart=true&"All the best
Tobias
Comment #9
stella commentedYou shouldn't have to use flashvars, but glad you got it working.
Cheers,
Stella
Comment #10
ncy commentedwith blank flashvars field on the settings page, i also got that the browser would try to download the FLV file ...
i had to add this line to get the video working properly when flashvars field is blank:
in lightbox_video.js:
-nick
Comment #11
stella commentedComment #12
elf_cash commentedIf you are loading the lightbox js in the page footer, it may be advisable to embed the flash video in a generic html page and use the lightbox to open that page instead of the video itself(You can configure this so it looks similar to embedding the video into a lightbox directly). Since the code that calls the player is in javascript, if a user tries to click on a video link before the page has been fully loaded, IE will still try to dowload the flv file. This is not a bug per se, but certainly not the desired behavior. If the video is embedded in a blank html page and the user tries to click the link prematurely, the video will just load as a new page instead of in a lightbox.
Comment #13
izkreny commentedHm, I have .swf file and JW FLV Player v4.3, and it is not working when flashvars field is empty in "Video settings" section (under Lightbox2 administration page).
I just added one character in flashvars field: "&" (without quotes), and suddenly JW FLV Player v4.3 is showing up. ;)
Edit: hehe, but this is exactly what ncy code do, as far as I can see. :)
Comment #14
russhull commentedI've tried all of the possible solutions in this thread and I'm still coming up with the problem mentioned in the first post. Regardless of the video format I use (I've tried flv via flowplayer and flv and mp4 via JW FLV player), both firefox and safari either want to download the FLV file or play the MP4 in the default way (not through lightbox).
I've tried adding info into the flashvars field.
I've tried leaving the flashvars field blank and adding the line of code mentioned above into the lightbox_video.js file.
Nothing is working for me. Any ideas as to what else could be going wrong? The problem is the same in either firefox or safari.
Here's the HTML I'm using to link to the video:
<a href="/flv/Chad-320.flv" rel="lightvideo[|width:320px; height: 240px;][Watch Trailer]">Watch trailer</a>This is the path I've provided for flowplayer:
/flowplayer/flowplayer-3.0.3.swfAnd for JW FLV player:
/mediaplayer/player.swfComment #15
ncy commentednot sure if relevant to your case, but some of my past experiences with the files getting downloaded was some conflicting module. sorry i dont recall exactly what module(s) it was in my case, it was awhile ago and i've since resolved the problems or found workarounds. try disabling some modules and see if that changes anything ....
Comment #16
ncy commentedalso russhull, is there a reason why you have a leading "|" character before the width+height? i don't know if that causes problems or not?
Comment #17
russhull commentedi copy-pasted the "|" from the documentation, and have seen it in a link that works successfully. So that's not the culprit.
I'm leaning towards it being a conflicting module at this point, but I've tried disabling every module that I'm not using... and I'm really only using some pretty basic ones. Do you think it makes sense to go as far as actually deleting unused modules from the server, or does disabling them achieve the same results?
Comment #18
ncy commentedi think disabling should achieve the same results. to be extra sure, uninstall and completely delete it, but that shouldn't be necessary.
the other thing to look out for is if you have any custom javascript/css code that might conflicting.
Comment #19
russhull commentedI HAVE deleted a few lines of php from page.tpl.php... stella, are you aware of lightbox relying on any of these functions being present in that file to function? IE if I deleted the function to display the log or something would this cause lightbox to stop appearing?
Comment #20
imclean commentedNick's fix (#10) is still required in the latest dev version (2009-Sep-14). Without it, if the flashvars are left blank a javascript error occurs: "variables not defined" at line 34.
Line 34 is:
Lightvideo.createEmbed(href, "flvplayer", "#ffffff", variables);The browser then tries to download the file instead of embedding it.
Comment #21
Yuki commentedsubscribing
Comment #22
imclean commentedThis bug still exists in the current dev version Lightbox2 6.x-1.x-dev (2010-May-06). I can't believe such a simple fix as #10 hasn't been incorporated yet.
As we rarely use flashvars, updating existing sites is becoming a serious problem. Hacking a module every update is not an ideal way of doing things.
Please, is anyone else seeing this? Why has this issue gone on for so long?
Comment #23
imclean commentedPatch based on #10, done slightly differently. Please include this fix in one form or another!
Comment #24
stella commentedcommitted, thanks.