Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Lightbox 2 doesn't work with Flowplayer / Drupal 7.14
Hier is my HTML code:
<a href="/video/ms.mp4" rel="lightvideo"><img src="/img/thumbnail.jpg"></a>
I tried with different Lightbox 2 settings.
Path to FLV Player:
sites/all/modules/flowplayer/flowplayer/flowplayer.swf
sites/all/modules/flowplayer/flowplayer/
But without success. Any Idea? Thanks
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedI've hacked the module and solved my problem as following.
1.Step:
Lightbox 2 settings/ FLV Player flashvars:
config={"playlist":[{"url":"fileurlToReplace"}]}
2.Step.
I edited in the file lightbox2/js/lightbox_video.js "startVideo" function.
line 18:
fileurl=href;
line 42:
variables = variables.replace(/fileurlToReplace/, fileurl);
(Replacing the string "fileurlToReplace" from flashvars with "fileurl" (video url ) )
It works now.
Comment #2
pinin4fjords CreditAttribution: pinin4fjords commentedExactly the same issue as http://drupal.org/node/369032 for D6, and fix is equivalent.
Comment #2.0
pinin4fjords CreditAttribution: pinin4fjords commentedadded code tag