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

paul_constantine’s picture

Update:

After checking my logs I found these two errors which seem to be related to the two videos I linked:

  • The file permissions could not be set on public://video_embed_field_thumbnails/vimeo/43426940.jpg.
  • The file permissions could not be set on public://video_embed_field_thumbnails/youtube/1LKzxhLFF4Y.jpg.

How do I solve this?

The files in question are owned by "username:www-data" and the permissions are set to "660"

Paul

wbobeirne’s picture

Hm, 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

paul_constantine’s picture

Hello 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

paul_constantine’s picture

Issue summary: View changes

Posting error.

tim-diels’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

Just 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.

  • Drupal 7.72
  • Video Embed Field 7.x-2.0-beta11
  • Colorbox 7.x-2.15.0
  • Colorbox Library 1.6.4
  • Libraries 7.x-2.5