I'm using the media module with file styles, and I can setup different displays for each media type, but there does not appear to be a option for adding a play button overlay to video thumbnail displays. This feature is required for a site I'm building, so I will have to solve this with advanced theming. Is there a recommended approach or php check I can put in a template file to determine if the media type is a video so I can print an overlay image and css it to be on top fo the thumbnail? Is there a specific recommended approach? Am I missing an easier solution?

CommentFileSizeAuthor
#3 video-thumb-for-605-7.jpg19.29 KBbradspry

Comments

JacobSingh’s picture

Video support in Media is not really existant at this point. At which point are you looking to add the play button? When it is being displayed, or in the browser or something else?

pglatz’s picture

I haven't seen how to create a thumbnail for uploaded videos; I'd try to help with an overlay template if I could, as I could use one also.

Can thumbnails be automatically generated, or manually uploaded?

bradspry’s picture

StatusFileSize
new19.29 KB

You can use the ImageCache Actions module to watermark thumbnails with a play button.

devin carlson’s picture

Component: User interface » Miscellaneous
Status: Active » Closed (fixed)

The display of a "play button" is the responsibility of individual video players. You could try a variety of existing players such as jPlayer or MediaElement and see if they have the appearance that you are looking for.

If the player provides a preview image style, you can use the module that bradspry outlines in #3 to "embed" a graphic into the video thumbnail.

chrisrcooper’s picture

Issue summary: View changes

As #3 said, the best route for this is probably to use ImageCache Actions to overlay a play button image. There's a great tutorial to do just that: http://www.daymuse.com/blogs/drupal-imagecache-actions-module-overlay-tu... along with a video walkthrough to do it.

It doesn't give you an "option" in media to do it, but you can make the action totally automatic.