Copyright © 2012 Kaltura Inc.
All Rights Reserved. Designated trademarks and brands are the property of their respective owners.
Use of this web site constitutes acceptance of the Terms of Use and Privacy Policy.
EduVideo.org
Hi everybody,
I am using the PHP 5 Client for Kaltura. I would like to know if it's possible to use the multiplerequest functionnality with this Client ?
I don't found any documentation about.
Thanks for your help.
Kind regards
I put here private messages, all people can see them :
I want to get the media for a list of users (after i do some operation, for example calculate the average bitrate for each media of a user etc..).
My list of user is paging 5 by 5 users (with a pager) : currently my code is like this (I write with my memory, i don't have the code in front of me) :
As you can see, one call to "user->listAction", 5 call to "media->listAction", 5 call to getflavor etc ...
At the end, it make some call and performance are bad.
I would like to know if it's possible to do anything like this, in one call with the multirequest. It will look like :
Is it possible ? Or i need to get all the list of the media, and sort and filter manually after get it ?
Do you understand what i want to say or not ? :(
Essentially, you're looking to make multirequest do loops for you. unfortunately, multirequest can only automate, or link, results in a chain, it is not capable of loops.
I would do it completely different than you try to do below...
Call http://www.kaltura.com/api_v3/testmeDoc/index.php?service=user&action=li...
$users = $client->user->list($filter, $pager);
and then:
That way you can loop through the users doing the multirequest once for every user.
I understand you would like to also loop through the users in the multirequest, but this api is not designed for complex operations like loops, it merely chain actions to reduce callbacks of dependent calls.
Hopefully this helps.
Ok, maybe in the futur.
I did like that. Thanks.
Can we get statistiques about bandwidth, etc.. ? I see that have the kmcCollect action in statistiques (KalturaStatsKmcEventType::REPORTS_AND_ANALYTICS_BANDWIDTH_USAGE_VIEW_MONTHLY, and others), but how do this ?
Thanks a lot :)
Hi,
Kalturian sent me this url : http://www.kaltura.org/kalorg/kaltura-api-clients-sample-code/php/Sample...
In order to have example for the multirequesting with PHP.
Thanks a lot to him :)