How to get Content Size (content length) using Client API

4 replies [Last post]
Joined: 01/31/2011
Points: 6

HI,

-- Fetching Content Size (length) Information usingJava Client API --

I am trying to fetch content information using Java client API (id, name, description etc information) I also need size/length information for given content.

From the Client API:

for (KalturaMediaEntry entry : listResponse.objects) {
System.out.println("Item Id:" + entry.id);
System.out.println("Name:" + entry.name);
System.out.println("Description:" + entry.description);
System.out.println("Download URL:" + entry.downloadUrl);
}

Similar to above --- I need Size/length information--- for given file/content.
I know there is a property called "duration" - but I need file size

eg. Duration: 30min - file size(content size/length) : 12MB

Thanks
Manan

Joined: 01/31/2011
Points: 6

Any one??

Joined: 04/13/2011
Points: 24

Hi,

You can get a list of KalturaFlavorAsset by using the entry.id. Then you can get the size of each KalturaFlavorAsset. Check out the following API call

getFlavorAssetService().getByEntryId(entry.id);

Hope this helps.

Stephen

Joined: 09/07/2011
Points: 2
Joined: 12/03/2011
Points: 2

getFlavorAssetService().getByEntryId(entry.id) is working very well. What is the variation limit for the value of (entry.id)??

swim fins