You are here

function emvideo_twistage_thumbnail in Embedded Media Field 6

Same name and namespace in other branches
  1. 6.3 contrib/emvideo/providers/twistage.inc \emvideo_twistage_thumbnail()

Implementation of hook_PROVIDER_thumbnail().

1 call to emvideo_twistage_thumbnail()
emvideo_twistage_data in contrib/emvideo/providers/twistage.inc
Implementation of hook_PROVIDER_data().

File

contrib/emvideo/providers/twistage.inc, line 148
Provide support for Twistage to the emfield.module (http://twistage.com).

Code

function emvideo_twistage_thumbnail($field, $item, $formatter, $node, $width, $height) {

  // Create a thumbnail URL from the Still Frames API:
  // http://console.twistage.com/doc/api/video/still_frames
  return "http://service.twistage.com/videos/{$item['value']}/screenshots/{$width}w.jpg";
}