/** * Update entry thumbnail using url * * @action updateOfflineThumbnailFromUrl * @param string $entryId live stream entry id * @param string $url file url * @return KalturaLiveStreamEntry The live stream entry * * @throws KalturaErrors::ENTRY_ID_NOT_FOUND * @throws KalturaErrors::PERMISSION_DENIED_TO_UPDATE_ENTRY */ function updateOfflineThumbnailFromUrlAction($entryId, $url) { return parent::updateThumbnailForEntryFromUrl($entryId, $url, KalturaEntryType::LIVE_STREAM, entry::FILE_SYNC_ENTRY_SUB_TYPE_OFFLINE_THUMB); }
/** * List live channels by filter with paging support. * * @action list * @param KalturaLiveChannelFilter $filter live channel filter * @param KalturaFilterPager $pager Pager * @return KalturaLiveChannelListResponse Wrapper for array of live channels and total count */ function listAction(KalturaLiveChannelFilter $filter = null, KalturaFilterPager $pager = null) { if (!$filter) { $filter = new KalturaLiveChannelFilter(); } $filter->typeEqual = KalturaEntryType::LIVE_CHANNEL; list($list, $totalCount) = parent::listEntriesByFilter($filter, $pager); $newList = KalturaLiveChannelArray::fromDbArray($list, $this->getResponseProfile()); $response = new KalturaLiveChannelListResponse(); $response->objects = $newList; $response->totalCount = $totalCount; return $response; }