There does not appear to be the ability to add an image thumbnail. Is there someway to do this that I am missing?

Comments

deanflory’s picture

Maybe add an image field to the video media type? Kinda gets complicated to do that without complicating every instance of where you want to display the image/video. The Video module can automatically pull thumbnails out of the video but requires considerably more setup, both in Drupal and on the server backend.

deanflory’s picture

JW Player does allow for a poster image but it doesn't appear to be included in the Drupal module's functionality to make it easy.

https://www.jwplayer.com/html5/poster/

image: “http://example.com/test/player/preview.jpg”,

One commenter notes that the poster image is only used with the tag, so only for the HTML5 player and not for the Flash version.

Another sample from a user:

<div id="video" style="text-align: center;">
 </div>
<script type="text/javascript">
var s1 = new SWFObject('/javascript/shared/player.swf','player',360,'240', '8', '#ffffff');
s1.addParam('flashvars','file=/ext/resources/tech-directory/infor-wausau-supply.mp4&autostart=false&image=/ext/resources/ext/resources/Tech-Directory/Infor-Wausau-Supply-poster.jpg&stretching=none');
s1.write('video');
</script>	

Not sure if this is accurate for the latest version (which now has a patch in a separate issue, making it possible).

Berdir’s picture

Status: Active » Closed (duplicate)