can't seem to make videos work in Colorbox. What I get is a white box overlay, but no content in the box. (See attachment.)
Started out trying to make it work with a View, but then simplified things by hand-coding the links. Here are some of the variations I've tried:
<a class="colorbox-load" href="http://www.youtube.com/watch?v=FmxSk0wZxss">link</a><br />
<a class="colorbox-load" href="http://www.youtube.com/v/FmxSk0wZxss">link</a><br />
<a class="colorbox-load" href="http://www.youtube.com/embed/FmxSk0wZxss">link</a><br />
<br />
<a class="colorbox-load cboxElement" href="http://www.youtube.com/watch?v=FmxSk0wZxss">link</a><br />
<a class="colorbox-load cboxElement" href="http://www.youtube.com/v/FmxSk0wZxss">link</a><br />
<a class="colorbox-load cboxElement" href="http://www.youtube.com/embed/FmxSk0wZxss">link</a><br />
<br />
<a class="colorbox-load" href="http://www.youtube.com/watch?v=FmxSk0wZxss?width=500&height=500&iframe=true">link</a><br />
<a class="colorbox-load" href="http://www.youtube.com/v/FmxSk0wZxss?width=500&height=500&iframe=true">link</a><br />
<a class="colorbox-load" href="http://www.youtube.com/embed/FmxSk0wZxss?width=500&height=500&iframe=true">link</a><br />
<br />
<a class="colorbox-load cboxElement" href="http://www.youtube.com/watch?v=FmxSk0wZxss?width=500&height=500&iframe=true">link</a><br />
<a class="colorbox-load cboxElement" href="http://www.youtube.com/v/FmxSk0wZxss?width=500&height=500&iframe=true">link</a><br />
<a class="colorbox-load cboxElement" href="http://www.youtube.com/embed/FmxSk0wZxss?width=500&height=500&iframe=true">link</a><br />
(I'm just copying and pasting actualy test code. The video represented above will actually load and play. I have also tried a Vimeo link, to no avail.)
I've looked at these issues:
http://drupal.org/node/1368274
http://drupal.org/node/1242290
http://drupal.org/node/1099580
http://drupal.org/node/1139708
Colorbox Load is enabled.
These results hold in Chrome and Firefox. I've disabled ad blocking in both browsers.
Does anybody have any suggestions for things to look at?
EDIT:
Should add that I'm trying to integrate with Embedded Media Field, and I've verified that I can display YouTube videos using emfield.
| Comment | File | Size | Author |
|---|---|---|---|
| Screen Shot 2012-09-05 at 3.56.42 PM.png | 22.91 KB | escoles |
Comments
Comment #1
escoles commentedChanging title based on additional info:
I'm not really sure what's supposed to happen when I load pages using colorbox URLs, but I think it's just plain not working. I've tried the following URLs, to see if I could load images in a colorbox:
In all cases, all I get is the same white box I got with the video. In cases where I'm trying to load the image, the box resizes to approximately the same dimensions as the image I'm trying to display.
Also, I'm currently running these tests in an unmodified version of Garland. I initially ran them in my site's theme, and switched to Garland to eliminate the theme as a factor.
Comment #2
escoles commentedClosing because I won't be doing any more testing on this -- am using Lightbox2 instead.
Comment #2.0
escoles commentedadditional information