public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->externalSourceType = (string) $xml->externalSourceType;
     $this->assetParamsIds = (string) $xml->assetParamsIds;
 }
Example #2
0
 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 (count($xml->lastElapsedRecordingTime)) {
         $this->lastElapsedRecordingTime = (int) $xml->lastElapsedRecordingTime;
     }
     if (empty($xml->liveStreamConfigurations)) {
         $this->liveStreamConfigurations = array();
     } else {
         $this->liveStreamConfigurations = \Kaltura\Client\ParseUtils::unmarshalArray($xml->liveStreamConfigurations, "KalturaLiveStreamConfiguration");
     }
     $this->recordedEntryId = (string) $xml->recordedEntryId;
     if (count($xml->pushPublishEnabled)) {
         $this->pushPublishEnabled = (int) $xml->pushPublishEnabled;
     }
     if (empty($xml->publishConfigurations)) {
         $this->publishConfigurations = array();
     } else {
         $this->publishConfigurations = \Kaltura\Client\ParseUtils::unmarshalArray($xml->publishConfigurations, "KalturaLiveStreamPushPublishConfiguration");
     }
     if (count($xml->firstBroadcast)) {
         $this->firstBroadcast = (int) $xml->firstBroadcast;
     }
     if (count($xml->lastBroadcast)) {
         $this->lastBroadcast = (int) $xml->lastBroadcast;
     }
     if (count($xml->currentBroadcastStartTime)) {
         $this->currentBroadcastStartTime = (double) $xml->currentBroadcastStartTime;
     }
 }
 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;
 }
 /**
  * add KalturaMediaEntry from email ingestion
  * 	 
  * 
  * @return \Kaltura\Client\Type\MediaEntry
  */
 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;
 }
Example #5
0
 /**
  * Update media entry. Only the properties that were set will be updated.
  * 	 
  * 
  * @return \Kaltura\Client\Type\MediaEntry
  */
 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;
 }