Esempio n. 1
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->playlistId = (string) $xml->playlistId;
     if (count($xml->repeat)) {
         $this->repeat = (int) $xml->repeat;
     }
 }
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->streamRemoteId = (string) $xml->streamRemoteId;
     $this->streamRemoteBackupId = (string) $xml->streamRemoteBackupId;
     if (empty($xml->bitrates)) {
         $this->bitrates = array();
     } else {
         $this->bitrates = Kaltura_Client_ParseUtils::unmarshalArray($xml->bitrates, "KalturaLiveStreamBitrate");
     }
     $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;
     $this->urlManager = (string) $xml->urlManager;
     $this->encodingIP1 = (string) $xml->encodingIP1;
     $this->encodingIP2 = (string) $xml->encodingIP2;
     $this->streamPassword = (string) $xml->streamPassword;
     $this->streamUsername = (string) $xml->streamUsername;
 }