protected static function addThumbnailAssetData(KalturaClient $client) { $entry = new KalturaMediaEntry(); $entry->name = "Entry For flavor asset test"; $entry->type = KalturaEntryType::MEDIA_CLIP; $entry->mediaType = KalturaMediaType::VIDEO; $defaultEntry = $client->media->add($entry, KalturaEntryType::MEDIA_CLIP); $contentResource = new KalturaUrlResource(); $contentResource->url = "http://sites.google.com/site/demokmc/Home/titanicin5seconds.flv"; $client->media->addContent($defaultEntry->id, $contentResource); KalturaGlobalData::setData("@DEFAULT_THUMBNAIL_ENTRY_ID@", $defaultEntry->id); }
/** * * Clears a given name, if name = null clears all the names from the global data file * @param string $name */ public static function clearValue($name = null) { if (KalturaGlobalData::$dataFile == null) { $isInit = KalturaGlobalData::initDataFile(); if (!$isInit) { return null; } } if ($name) { if (is_string($name) || is_integer($name)) { $value = KalturaGlobalData::setData($name, null); KalturaLog::debug("Setting name [{$name}] to null"); } } else { self::$dataFile->clear($name); } }