0

I'm using the Kaltura v3 API, uploading a video to the server. I'd like to be able to query the API and ask if I have a MediaEntry added, but with no media (or upload token) associated with it. It seems like media:list would be the correct action, but it doesn't return any results that don't have media already associated.

Is there a parameter I can send to media:list to get these entries? Or another API call I should be using?

Jeff
  • 5,746
  • 4
  • 33
  • 40

1 Answers1

2

If you're looking to list all media entries that don't have video associated, use the following. Example is in PHP, but will be the same in every language if you use a client library -

$filter = new KalturaMediaEntryFilter();
$filter->statusEqual = KalturaEntryStatus::NO_CONTENT;
$result = $client->media->listAction($filter);
Zohar.Babin
  • 265
  • 1
  • 2
  • 8
  • If anyone is having to work without a generated API, NO_CONTENT is the string "7". – Jeff Apr 15 '14 at 14:44
  • Jeff - KalturaEntryStatus::NO_CONTENT is an enum value of 7. Not a string: http://www.kaltura.com/api_v3/testmeDoc/?object=KalturaEntryStatus – Zohar.Babin Apr 15 '14 at 14:50