Posted by gilgames on May 23, 2012 at 9:35am
2 followers
Jump to:
| Project: | Lightbox2 |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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
#1
I'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.
#2
Exactly the same issue as http://drupal.org/node/369032 for D6, and fix is equivalent.