mediaTypeEqual

2 replies [Last post]
Joined: 02/06/2010
Points: 13

Hi

How to List Video Mix Entrys.
I have tried with:

$filter->mediaTypeEqual = KalturaMediaType::VIDEO;

Bud this lists all uploaded Videos, and i want to display only Video Mix entrys.

API V3.

THX

Joined: 02/06/2010
Points: 13

When a user create a new mix with the KSE the type of Entry is Video Mix.
Now i want to list all entrys with the type Video Mix.

I tried also this 2 filters. In the API testconsole and with the php client.

Thats my code, can someone help please?

$filter = new KalturaMediaEntryFilter();
$filter->statusEqual = KalturaEntryStatus::READY;

//This list only Videos
$filter->mediaTypeEqual = KalturaMediaType::VIDEO;

//This Filters wont work
$filter->typeIn = "2";
//or
$filter->typeEqual ="MIX";
       

$pager = new KalturaFilterPager();
$pager->pageSize = 80;
$pager->pageIndex = 1;
               
$list = $client->media->listAction($filter,$pager);

Joined: 02/06/2010
Points: 13

i changed the filter to:

                $filter = new KalturaBaseEntryFilter();
                $filter->orderBy = "-createdAt";
                $filter->typeEqual = "2"; // = only Mix Entrys
                $filter->userIdEqual = $some_user; // userId
               
               
                $pager = new KalturaFilterPager();
                $pager->pageSize = 80;
                $pager->pageIndex = 1;

                $list = $client->baseEntry->listAction($filter, $pager);