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;
 }
コード例 #3
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 (empty($xml->liveStreamConfigurations)) {
         $this->liveStreamConfigurations = array();
     } else {
         $this->liveStreamConfigurations = Kaltura_Client_ParseUtils::unmarshalArray($xml->liveStreamConfigurations, "KalturaLiveStreamConfiguration");
     }
     $this->recordedEntryId = (string) $xml->recordedEntryId;
 }