public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->offlineMessage = (string) $xml->offlineMessage; $this->streamRemoteId = (string) $xml->streamRemoteId; $this->streamRemoteBackupId = (string) $xml->streamRemoteBackupId; if (empty($xml->bitrates)) { $this->bitrates = array(); } else { $this->bitrates = Kaltura_Client_Client::unmarshalItem($xml->bitrates); } $this->primaryBroadcastingUrl = (string) $xml->primaryBroadcastingUrl; $this->secondaryBroadcastingUrl = (string) $xml->secondaryBroadcastingUrl; $this->streamName = (string) $xml->streamName; $this->streamUrl = (string) $xml->streamUrl; $this->hlsStreamUrl = (string) $xml->hlsStreamUrl; if (count($xml->dvrStatus)) { $this->dvrStatus = (int) $xml->dvrStatus; } if (count($xml->dvrWindow)) { $this->dvrWindow = (int) $xml->dvrWindow; } $this->urlManager = (string) $xml->urlManager; if (empty($xml->liveStreamConfigurations)) { $this->liveStreamConfigurations = array(); } else { $this->liveStreamConfigurations = Kaltura_Client_Client::unmarshalItem($xml->liveStreamConfigurations); } }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->externalSourceType = (string) $xml->externalSourceType; $this->assetParamsIds = (string) $xml->assetParamsIds; }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->offlineMessage = (string) $xml->offlineMessage; if (count($xml->recordStatus)) { $this->recordStatus = (int) $xml->recordStatus; } if (count($xml->dvrStatus)) { $this->dvrStatus = (int) $xml->dvrStatus; } if (count($xml->dvrWindow)) { $this->dvrWindow = (int) $xml->dvrWindow; } if (empty($xml->liveStreamConfigurations)) { $this->liveStreamConfigurations = array(); } else { $this->liveStreamConfigurations = Kaltura_Client_ParseUtils::unmarshalArray($xml->liveStreamConfigurations, "KalturaLiveStreamConfiguration"); } $this->recordedEntryId = (string) $xml->recordedEntryId; }
function addMediaEntry(Kaltura_Client_Type_MediaEntry $mediaEntry, $uploadTokenId, $emailProfId, $fromAddress, $emailMsgId) { $kparams = array(); $this->client->addParam($kparams, "mediaEntry", $mediaEntry->toParams()); $this->client->addParam($kparams, "uploadTokenId", $uploadTokenId); $this->client->addParam($kparams, "emailProfId", $emailProfId); $this->client->addParam($kparams, "fromAddress", $fromAddress); $this->client->addParam($kparams, "emailMsgId", $emailMsgId); $this->client->queueServiceActionCall("emailingestionprofile", "addMediaEntry", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_MediaEntry"); return $resultObject; }
function update($entryId, Kaltura_Client_Type_MediaEntry $mediaEntry) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "mediaEntry", $mediaEntry->toParams()); $this->client->queueServiceActionCall("media", "update", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_MediaEntry"); return $resultObject; }
function addMediaEntry(Kaltura_Client_Type_MediaEntry $mediaEntry, $uploadTokenId, $emailProfId, $fromAddress, $emailMsgId) { $kparams = array(); $this->client->addParam($kparams, "mediaEntry", $mediaEntry->toParams()); $this->client->addParam($kparams, "uploadTokenId", $uploadTokenId); $this->client->addParam($kparams, "emailProfId", $emailProfId); $this->client->addParam($kparams, "fromAddress", $fromAddress); $this->client->addParam($kparams, "emailMsgId", $emailMsgId); $this->client->queueServiceActionCall("emailingestionprofile", "addMediaEntry", "KalturaMediaEntry", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = Kaltura_Client_ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaMediaEntry"); $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_MediaEntry"); return $resultObject; }
function update($entryId, Kaltura_Client_Type_MediaEntry $mediaEntry) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "mediaEntry", $mediaEntry->toParams()); $this->client->queueServiceActionCall("media", "update", "KalturaMediaEntry", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = Kaltura_Client_ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaMediaEntry"); $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_MediaEntry"); return $resultObject; }