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.
Somehow I am not able to get my site to play videos in colorbox.
I have the following modules installed:
- Drupal 7.15
- Video Embed Field 7.x-2.0-beta5
- Colorbox 7.x-1.3
- Colorbox Library version 1.3.20.1
- Libraries 7.x-2.0
Both "Enable Colorbox load" and "Enable Colorbox Inline" are checked.
However there is no option for "Colorbox" at "admin/config/media/vef_video_styles". Also there is no option for a colorbox video presentation at "structure/types/manage/video/display".
I just spend half a day trying to get this going in colorbox - with no success. What am I missing?
Reagrds,
Paul
Comments
Comment #1
paul_constantine CreditAttribution: paul_constantine commentedUpdate:
After checking my logs I found these two errors which seem to be related to the two videos I linked:
How do I solve this?
The files in question are owned by "username:www-data" and the permissions are set to "660"
Paul
Comment #2
wbobeirne CreditAttribution: wbobeirne commentedHm, the only thing VEF should care about to show you the option is of module_exists('colorbox'). I don't think file permissions would effect that. Just to confirm, the setting is over here at structure/types/manage/%content-type%/display: http://cl.ly/image/0D053x331C3p
Comment #3
paul_constantine CreditAttribution: paul_constantine commentedHello wbobeirne,
thank you for your screenshot. I got it to work finally. Though I do not know if I will actually use it now.
I am using the video embed in a responsive site. The reason I did not get it to work was, that I set the width in the embed styles to "100%" rather than using a pixel value. This way it worked on my smartphone (320px width) as well as on my tablet (>500px width) and my computer (>1024px width).
Using a fixed pixel width will force me to either have very small colorbox players in my computer or a much too large colorbox player on my smartphone - depanding on how I set this up.
Is there a way to use percentage and get to colorbox to work at the same time? Or would it be possible to define different breakpoints and use different video embed styles?
@media screen and (max-width:320px) {
#videoembedfield {
display: teaser;
}
}
Regards,
Paul
Comment #3.0
paul_constantine CreditAttribution: paul_constantine commentedPosting error.
Comment #4
tim-dielsJust tested with a clean installation and it works. So setting this to "Closed (cannot reproduce)". If you still have the problem, you can re-create the issue. Make sure to visit the status report page and validate that Colorbox library is loaded.