public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
 }
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->encodingIP1 = (string) $xml->encodingIP1;
     $this->encodingIP2 = (string) $xml->encodingIP2;
     $this->streamPassword = (string) $xml->streamPassword;
     $this->streamUsername = (string) $xml->streamUsername;
 }
 function update($entryId, Kaltura_Client_Type_LiveStreamEntry $liveStreamEntry)
 {
     $kparams = array();
     $this->client->addParam($kparams, "entryId", $entryId);
     $this->client->addParam($kparams, "liveStreamEntry", $liveStreamEntry->toParams());
     $this->client->queueServiceActionCall("livestream", "update", "KalturaLiveStreamEntry", $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, "KalturaLiveStreamEntry");
     $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_LiveStreamEntry");
     return $resultObject;
 }