BhavikKama
BhavikKama

Reputation: 8790

Dmcloud Api : How to Get thumbnails of the Video Uploaded on Dmcloud with java Api?

I am Using Dmcloud java Api for uploading video on dmcloud.but theres's api doesnt give much information about how to get the thumbnail of the particular video.

i can get the stream url download url and evrything.so if any one can give me proper guidance for this..

Upvotes: 2

Views: 525

Answers (1)

JoDev
JoDev

Reputation: 6873

To get thumbnail url of a particular video, use the get_assets method in cloudkey object.

Ex :

String thumbnail_url = cloud.mediaGetAssets(media_id, assets_name);

Where assets_name is an array of needed asset like :

'jpeg_thumbnail_small',
'jpeg_thumbnail_medium',
'jpeg_thumbnail_large',
'jpeg_thumbnail_source'

If it doesn't work, thinks that i'm using PHP API, and my working method is :

return $this->cloudkey->media->get_assets(array('id'=>$idMedia,'assets_names'=>array('jpeg_thumbnail_large')));

Upvotes: 3

Related Questions