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
If i use the service flavorAsset with every action method, my php script calls an error.
Fatal error: Call to a member function getByEntryId() on a non-object
if (!isset($ksession)) {
die("Could not establish Kaltura session. Please verify that you are using valid Kaltura partner credentials.");
}
$kclient->setKs($ksession);
// Set the response format
// KALTURA_SERVICE_FORMAT_JSON json
// KALTURA_SERVICE_FORMAT_XML xml
// KALTURA_SERVICE_FORMAT_PHP php
$kconf->format = KalturaClientBase::KALTURA_SERVICE_FORMAT_PHP;
$kfilter = new KalturaMediaEntryFilter();
$kfilter->mediaTypeEqual = KalturaMediaType::VIDEO;
$kfilter->status = KalturaEntryStatus::READY;
$result = $kclient->media->listAction($kfilter);
echo "<h1>My Videos</h1>";
echo "<table>";
foreach ($result->objects as $entry) {
echo '<tr><td><img src="'.$entry->thumbnailUrl.'">
Title: '.$entry->name.'
<a href="'.$entry->downloadUrl.'">download</a>
Created on: '.date("D M j G:i:s T Y", $entry->createdAt).'  <br />Flavors: ';
$r = $kclient->flavorAsset->getByEntryId($entry->id);
foreach ($r as $e) {
if ($e->status != KalturaFlavorAssetStatus::READY) continue;
echo '<a href="'.$kclient->flavorAsset->getDownloadUrl($e->id).'">'.$e->containerFormat.'/'.$e->videoCodecId.'</a>  ';
}
echo '</td></tr>';
}
echo "</table>";
...
media->listAction method is ok.
Can anybody help my?
Thanks a lot
Thomas
The complite Error-Message:
Fatal error: Call to a member function getByEntryId() on a non-object in ... /media_gallery2.php on line 53
I use KalturaCE 3.0.0
Look in your client API source code if you can find getByEntryId() function or the flavorAsset Object. It looks like you have out of date API.
The flavorAsset object is suppose to be in .../php5/KalturaClient.php at line 4210
Your are using php5 or php4 API?
Could you write all the error message please?
I would like to know in what file and on what line is the problem.
Also, wich version of Kaltura are you using? CE 4.0?