Exemplo n.º 1
0
 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->primaryRtspBroadcastingUrl = (string) $xml->primaryRtspBroadcastingUrl;
     $this->secondaryRtspBroadcastingUrl = (string) $xml->secondaryRtspBroadcastingUrl;
     $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;
 }
Exemplo n.º 2
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;
     }
 }