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.
views - video_embed_field
Video Embed Formatter
Video Embed Formatter - Teaser (video)
Video Embed Formatter - Image - Large (big image from youtube)
Video Embed Formatter - Image - Medium (small image from youtube)
Video Embed Formatter - Image - Small (small image from youtube)
Large, medium and small sizes names are the same that my image styles: admin/config/media/image-styles. But they don't have any relatinship as i see.
Also, Medium size = Small size. Why?
p.d. Sorry for my english.
P.D. is that possible to specify VIDEO size in percent?
for example, 100% x 350px
thanks.
Comments
Comment #1
jec006 CreditAttribution: jec006 commentedHey Kervi,
The medium = small thing is a result of youtube only providing 2 sizes while Vimeo provides 3. I think in the future i'll update this a bit.
The formatters right now don't use image styles i don't think - i can add that in - I believe that would be a nice feature.
In terms of the percentage - i think I can add that - will have to look, right now I think it'll break
Comment #2
jdelaune CreditAttribution: jdelaune commentedWe can take the code out of my Vimeo module which allows us to use Image Styles once the images have been copied from their respective sources into the local public directory?
Comment #3
webadpro CreditAttribution: webadpro commentedI think being able to use image styles would work a lot better than static image size.
As jdelaune mentioned, copying the big image locally would be a good start then taking our local image and processing it the way we would like to have it, seem like a good idea.
My 2 cents.
Comment #4
jec006 CreditAttribution: jec006 commentedThis seems like a pretty obvious improvement to implement.
I think I'm going to make a 2.x branch and figure out how to get this in there.
Comment #5
dgastudio CreditAttribution: dgastudio commentedin media_youtube they solving the thumbnail problem with:
and the imagecache integration
hope it can help.
Comment #6
jec006 CreditAttribution: jec006 commentedHey Kervi, Thanks for the code snippets, they helped quite a bit.
If you guys checkout the 2.x branch, it now contains full image styles support for thumbnails, along with video_styles, which work in a similar way to control the way the video looks/plays.
It hasn't been heavily tested at all, so please use with caution and report bugs here.
Comment #7
dgastudio CreditAttribution: dgastudio commentedi have tested the new 2 version and i have found a bug.
in views, everthing in configuration options seems fine.. but in the output, array is printed instead of items.
Comment #8
dgastudio CreditAttribution: dgastudio commentedand the thumb contains wrong url
****/sites/default/files/styles/140x100/public
Comment #9
dgastudio CreditAttribution: dgastudio commented#7
video_embed_field.field.inc
line 287 - drupal_set_message('
');
Comment #10
jec006 CreditAttribution: jec006 commentedHi Kervi,
Good catch, I removed that debugging and it seems to work correctly in views now
Comment #11
webadpro CreditAttribution: webadpro commentedI just uploaded the Version2, but in my field settings I can no more set field settings.
Am i the only one?
----
EDIT: Sorry I hadn't seen: admin/config/media/vef_video_styles.
Also, I see that theres some CSS issues here. The Operations are position: absolute but the
You should add
hope this can help and A+ for the addition of image style. This was a great addon to the module. Congrats.
Comment #12
jec006 CreditAttribution: jec006 commentedHi Webpro,
Version 2.x uses Video styles instead - you can configure / create them at /admin/config/media/vef_video_styles
They can be added to features and such also.
Comment #13
webadpro CreditAttribution: webadpro commentedHi,
This is really great.
Comment #14
jec006 CreditAttribution: jec006 commentedAwesome, glad you guys like.
Marking this one as fixed