ustream videos give me no thumbnail - anyone else having the same issue?

Comments

nitram079’s picture

oh, just to mention: yes I have entered my API key ...

Mershin’s picture

Wouldn't know how to make a patch but I got the thumbnails to work by modifying the following function in ustream.inc in \contrib\emvideo\providers

emvideo_ustream_thumbnail

You can see the code is remarked out, ustream must have changed something if this ever worked.

Anyhow this is the complete function now (pretty straight forward):

function emvideo_ustream_thumbnail($field, $item, $formatter, $node, $width, $height, $options = array()) {
  $tn = $item['data']['results']['imageUrl']['medium'];
  return $tn;
}

Optionally you can change the 'medium' to 'small'. I'm not sure if they ever have any other size but medium or small. Works for me anyhow.

alex ua’s picture

Project: Embedded Media Field » Media: Video Flotsam
Version: 6.x-1.7 » 6.x-1.x-dev
Component: Embedded Video Field » Code

Moving to Media: Video Flotsam, where I'll create a fix for this...

alex ua’s picture

Project: Media: Video Flotsam » Media: Ustream

Now moving to Media: Ustream. Sorry for all the moves!

mstrelan’s picture

Status: Active » Fixed

Thanks Mershin, I have committed this to HEAD.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.