kuser_id in addAction of a playlist service

3 replies [Last post]
Joined: 05/18/2009
Points: 13

I have created new playlist using addAction function. Here is the code:

$playlist = new KalturaPlaylist;
$playlist->name = 'Test';
$playlist->description = 'Test description';
$playlist->partnerId = PARTNER_ID;
$playlist->type = 5;
$playlist->playlistType = 3;
$playlist->userId = 3;

$pl = $client->playlist->add($playlist, true);

"Add" function inserts $playlist->userId into puser_id field in database. Is there any opportunity to insert a value into kuser_id field to make relation kuser-playlist?

Joined: 01/05/2009
Points: 1697

kuser is a private key the Kaltura Server uses.. why would you like to use it?

Joined: 05/18/2009
Points: 13

Hi Zohar,

listAction function doesn't return playlists without kuser and this playlists are not shown in KMC.

I had a look at the fuction listAction in file "kalturaCE\kaltura\api_v3\services\PlaylistService.php"

$count = entryPeer::doCount($c);
$list = entryPeer::doSelectJoinKuser( $c );

It counts all playlists, but selects only with kuser.

I've made

$count = entryPeer::doCount($c);
$list = entryPeer::doSelect( $c );

and everything became fine.

Joined: 02/22/2009
Points: 32

Hi,

This bug was already fixed in our internal svn.

It will be release in next CE version.

Thanks