In Drupal 7, when making a link like <a href="http://www.youtube.com/watch?v=xdybTVRd-MM" rel="lightvideo">Video</a> and clicking on that link, the lightbox appears very briefly, but doesn't load the video in the lightbox. Instead, my web browser simply redirects to that video's url. I have tried this on 3 separate Drupal 7 instances with the same results. I tried compatible, non-YouTube urls which didn't work either. Loading a content via rel="lightframe" works just fine. I have confirmed that my Lightbox2 settings have video enabled and that I have a valid path to a flash video player. I also tried using a different flash video player. The same results seem to happen with any browser; I tested with Firefox/Mac, Safari/Mac, Chrome/Mac, IE/XP & Firefox/XP. Drupal 6 versions works splendidly with video.

Apologies, I do not have a url to point you to as 2 of the D7 sites are here behind our university's firewalls, the other being on my iMac at home. Maybe I'll put an example on some public web space, if I have time.

Let me know if you need any other info. :)

Comments

spomerg’s picture

Here is a fresh install of D7 & Lightbox2 module with test link:

http://www.callmegavin.com/

Lightbox2 settings are default except for video enabled and valid path to flash video player.

yukare’s picture

Assigned: Unassigned » yukare
Status: Active » Needs work

I have it working now, but my patch is simple very ugly now(because it move the content from one file to another, and i want to avoid this), so i will clean it a little more and commit it latter. Just give me one or two days and this will be available.

yukare’s picture

Status: Needs work » Closed (fixed)

Fixed in git, just wait a new dev release(can take 12 hours) or get from git.

spomerg’s picture

Thanks for your hard work. Wish I had time to help! :)

deaconzero’s picture

Hi there,

I was having the same problem but the new release fixed it. However, please look at this issue I just posted as it directly relates to the most recent update. Thanks.

http://drupal.org/node/1281198

xenophyle’s picture

Status: Closed (fixed) » Active

It looks like the next 2 commits undid the changes in lightbox2.module and now this issue is back. :(

xenophyle’s picture

Actually, I just had forgotten to enable video in the lightbox2 config pages. But once I did that it still doesn't quite work. The lightbox opens with

<div style="padding: 0px; width: 600px; height: 400px; z-index: 10500; display: block;" id="modalContainer">
<embed width="590" height="390" allowfullscreen="true" wmode="transparent" quality="high" bgcolor="#ffffff" name="flvplayer" id="flvplayer" src="/?file=http://www.youtube.com/embed/W_F5UkkqDOA" type="application/x-shockwave-flash">
</div>

inside, but the video never appears. Right clicking shows "Movie not loaded..."

However, if I try the old embed code option from Youtube (which doesn't support HTML 5), http://www.youtube.com/v/W_F5UkkqDOA?version=3&hl=en_US, then it works. The problem is that I am using video from Vimeo, and I haven't been able to get it to work.

xenophyle’s picture

Status: Active » Fixed

Ok, so I figured out my problem. Since my video is offsite it doesn't require the lightvideo functionality, I can just use the lightframe with href set to the video url. The original bug this issue is for may or may not be fixed, but my problem turned out not to be related, so I will set it back to how I found it.

Automatically closed -- issue fixed for 2 weeks with no activity.