looked all over can't seem to find how to make this work. but i'd like to be able to use lightbox2 to play some .flv files i have with a custom .swf player. can somebody help me with that?

thanks,

ephman

Comments

WorldFallz’s picture

did you try simply removing the lightbox2 swf file and renaming yours to the same filename?

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

no longer active 7’s picture

hello,

I am also having same issue. I am not able to play .flv files into lightbox2. They are asking me to download file instead of playing. While i m able to play google video, youtube videos. I have given proper path for flvplayer.swf then also it is not working.

Any one please help.

Thanks,
Anjan.

no longer active 7’s picture

now I am able to play it. To resolve this issue added flashvars into lightbox2 settings of video.

-Anti-’s picture

Can you describe this in more detail?
I had exactly the same problem when I tried it two days ago,
and finally had to give up after about 3 or 4 hours.

1)
Exactly what flashvars did you use?

2)
What exactly do you need to enter into the body field for lightbox to initiate?
Is it just an ordinary hyperlink to the file?
Does it work with links to youtube videos, google video, etc, or only uploaded swf?

Thanks.

no longer active 7’s picture

Hi,

1) I have used the basic flashwars in lightbox setting of video settings - autoplay=1&playerMode=normal. You can add according to your requirements.

2) For lightbox to open on click of video or thumbnail , I have written rel="lightvideo[width:480px; height:420px;] in a tag.

print '<a href="http://video.google.com/videoplay?docid=1811233136844420765" rel="lightvideo[width:480px; height:420px;][this is the video caption!]"><img src="myvideothumbnail.jpg" /></a>';

Thanks,
Anjan

adamcarsonb’s picture

I was having the same exact problem with lightbox videos. In the settings at admin/settings/lightbox2/general, I tried entering some basic flash vars in the flash vars field like this:

autoplay=1&playerMode=normal.

When looking at the code generated, it was encoding the Ampersand into an HTML entity of &amp;, which is not what we need here. We need a for real Ampersand.

This was causing the video player to not display, so I changed it to the URL encoded version of an ampersand, and it worked! This is exactly what I placed into the flashvars field:

autoplay=1%26playerMode=normal

Hope this helps, it took me 4 hours to get this figured out!

Here's my version info:
Drupal 6.13
JW Player 4.4
Lightbox2 6.x-1.9

gburnham’s picture

I'm dealing with a similar issue.

I have a custom .swf that plays .flv files, but I need to add the .flv in question to the flashvars parameter for the .swf - how can I do that dynamically?

Thanks.

[edit] -- Oops, a little more searching leads me to this:

http://drupal.org/node/361870

Which solves my problem.