我为我的视频创建了一个名为 Record Date 的自定义元数据字段,我想知道当我按类别对数据进行排序时如何回显这些信息。这是我迄今为止工作的代码片段。
$pager = new KalturaFilterPager();
$pager->pageIndex = "1";
$pager->pageSize = "200";
if(isset($_REQUEST['category'])){
$category = $_REQUEST['category'];
}
else{
$category = "";
}
$filter = new KalturaMediaEntryFilter();
$filter->categoriesMatchOr = $category;
$filter->orderBy = KalturaMediaEntryOrderBy::CREATED_AT_DESC;
$entries = $client->media->listAction($filter, $pager);
if (!$entries)
{
$entries = array();
}
?>
<ol id="list">
<?php
$count = 0;
foreach ($entries->objects as $entry)
{
echo '<li id="'.$count.'"><img src="'.$entry->thumbnailUrl.'"/> <strong>Name:</strong> '.$entry->name.' <strong>Record Date:</strong> '.date('m/d/Y', $entry->createdAt).' <strong>Duration:</strong> '.$entry->duration.' sec</li>';
$count++;
}
?>
</ol>
我想用我的自定义元数据字段值替换 $entry->createdAt。任何帮助,将不胜感激。