/** * Append recorded video to live entry * * @param string $entryId Live entry id * @param int $mediaServerIndex * @param KalturaDataCenterContentResource $resource * @param float $duration * @return KalturaLiveEntry */ function appendRecording($entryId, $mediaServerIndex, KalturaDataCenterContentResource $resource, $duration) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "mediaServerIndex", $mediaServerIndex); $this->client->addParam($kparams, "resource", $resource->toParams()); $this->client->addParam($kparams, "duration", $duration); $this->client->queueServiceActionCall("livestream", "appendRecording", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "KalturaLiveEntry"); return $resultObject; }