ustream videos give me no thumbnail - anyone else having the same issue?
oh, just to mention: yes I have entered my API key ...
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.
Moving to Media: Video Flotsam, where I'll create a fix for this...
Now moving to Media: Ustream. Sorry for all the moves!
Thanks Mershin, I have committed this to HEAD.
Automatically closed -- issue fixed for 2 weeks with no activity.
Comments
Comment #1
nitram079 commentedoh, just to mention: yes I have entered my API key ...
Comment #2
Mershin commentedWouldn'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):
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.
Comment #3
alex ua commentedMoving to Media: Video Flotsam, where I'll create a fix for this...
Comment #4
alex ua commentedNow moving to Media: Ustream. Sorry for all the moves!
Comment #5
mstrelan commentedThanks Mershin, I have committed this to HEAD.