Forum Discussion

alex b.38's avatar
alex b.38
New member | Level 1
10 years ago

Android Api get thumbnail from video

Hi,

I wish to get thumbnail from videos with

sDbxClient.files().getThumbnail(metadata.getMetadata().getPathLower())

And it always throw me 

com.dropbox.core.v2.files.ThumbnailErrorException: Exception in get_thumbnail: "unsupported_image"

How can I solve this?

Regards,

7 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    The unsupported_image error means "The image cannot be converted to a thumbnail." 

    It sounds like you're trying to get thumbnails for videos specifically, but unfortunately that's not currently supported. We'll consider it a feature request though.

  • alex b.38's avatar
    alex b.38
    New member | Level 1
    10 years ago

    Ok but what's the way to get thumbnail of videos element to show them as a grid?

     

    Regards,

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    Unfortunately, the Dropbox API doesn't currently support thumbnails for video files.

  • Carl H.9's avatar
    Carl H.9
    New member | Level 1
    10 years ago

    Just checking, is it possible to get thumbnails of videos from temporary links at the moment, I noticed the previous comment saying it was not possible as of June 18 2016.

     

    Thanks

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    No, temporary links only return the original file content, and don't offer an option for getting thumbnails. 

  • Carl H.12's avatar
    Carl H.12
    New member | Level 1
    10 years ago

    So is there a way to generate thumbnail images from video urls in dropbox using the Javas APi.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    No, the API doesn't offer a way to get thumbnails for video links.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!