I am using this module and it works great!

I am just curious if I can achieve an effect which is used on Facebook. In your Facebook homepage, you see the thumbnails of videos that are posted by your friends. When you click on a thumbnail, it enlarges to the video's size and starts playing.

Is it possible with emvideo module?

Thanks already...

Sinan

Comments

Sinan Erdem’s picture

Status: Active » Closed (fixed)

Ahh, sorry. I just found that this option is also available on a content's display settings: Thumbnail -> Full size video inline replacement.

Wonderful!

Sinan

Sinan Erdem’s picture

Status: Closed (fixed) » Active

Hmm, but there is an issue:

When I choose to display only thumbnail, its size is 120x90 px. But when I choose "Thumbnail -> Full size video inline replacement" it is as large as the video itself. Is there a setting for this??

Thanks,

Sinan

Sinan Erdem’s picture

Is it possible by changing some variables about the thumbnail size in a module file, or isn't it so simple?

Any comments?

Renee S’s picture

Category: feature » bug

I found the same problem. Using Lightbox thumbnails, it works (thumbnail is correct size). Using EMField's thumbnail (display setting Thumbnail -> Full Size Inline Replacement), it doesn't - the thumbnail is the same size as the video.

I'm also finding that if you click on the arrow overlay to do the inline replacement and start the video, it does start the video - but also takes you to a blank page with just the video on it.

Agnes-2’s picture

Has anyone made any progress on this? It seems like I'm sooo close to my ideal video display, but the "thumbnails" are as large as the video. I tried the lightbox module as well, which works size-wise, but I don't want the video displayed in a lightbox-window...

Sinan Erdem’s picture

I am using imagecache. So I use for example "100x100 image -> full size media" (100x100 is the preset name) on display options of a content type or Views field. Everything works fine, except when the movie starts, the page refreshes...

It may be a conflict with another module, I dont know yet...

Agnes-2’s picture

I see - I don't have "Media" or images as options in the teaser display field though. Only video.

EDIT: Oh, realized it was a separate module. All good now.

Sinan Erdem’s picture

By "All good now" you mean your page doesn't refresh after video starts? No problem there?

rokit88’s picture

If you are still looking for a solution, a quick hack is to edit /emfield/contrib/emvideo/emvideo.theme.inc. Look for function theme_emvideo_video_replace() and you'll notice that the width and height get defaulted to $field['widget']['video_width'] and $field['widget']['video_height'] respectively.

You'll want to change those to $field['widget']['thumbnail_width'] and $field['widget']['thumbnail_height'].

It looks like you could also pass in a $options array with your own width and height. That would probably be more advisable as far as best practices go.

alex ua’s picture

Status: Active » Closed (fixed)

This works as expected. If you'd like a fix similar to #9, please open a new issue.

klim_’s picture

#etcetera9

I have the same problem.
Have you resolved it?