. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_LiveStreamEntry extends Kaltura_Client_Type_LiveEntry { public function getKalturaObjectType() { return 'KalturaLiveStreamEntry'; } 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; } /** * The stream id as provided by the provider * * * @var string * @readonly */ public $streamRemoteId = null; /** * The backup stream id as provided by the provider * * * @var string * @readonly */ public $streamRemoteBackupId = null; /** * Array of supported bitrates * * * @var array of KalturaLiveStreamBitrate */ public $bitrates; /** * * * @var string */ public $primaryBroadcastingUrl = null; /** * * * @var string */ public $secondaryBroadcastingUrl = null; /** * * * @var string */ public $primaryRtspBroadcastingUrl = null; /** * * * @var string */ public $secondaryRtspBroadcastingUrl = null; /** * * * @var string */ public $streamName = null; /** * The stream url * * * @var string */ public $streamUrl = null; /** * HLS URL - URL for live stream playback on mobile device * * * @var string */ public $hlsStreamUrl = null; /** * URL Manager to handle the live stream URL (for instance, add token) * * * @var string */ public $urlManager = null; /** * The broadcast primary ip * * * @var string */ public $encodingIP1 = null; /** * The broadcast secondary ip * * * @var string */ public $encodingIP2 = null; /** * The broadcast password * * * @var string */ public $streamPassword = null; /** * The broadcast username * * * @var string * @readonly */ public $streamUsername = null; }