. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_LiveStreamEntry extends Kaltura_Client_Type_MediaEntry { public function getKalturaObjectType() { return 'KalturaLiveStreamEntry'; } 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); } /** * The message to be presented when the stream is offline * * * @var string */ public $offlineMessage = null; /** * 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 $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; /** * DVR Status Enabled/Disabled * * * @var Kaltura_Client_Enum_DVRStatus * @insertonly */ public $dvrStatus = null; /** * Window of time which the DVR allows for backwards scrubbing (in minutes) * * * @var int * @insertonly */ public $dvrWindow = null; /** * URL Manager to handle the live stream URL (for instance, add token) * * * @var string */ public $urlManager = null; /** * Array of key value protocol->live stream url objects * * * @var array of KalturaLiveStreamConfiguration */ public $liveStreamConfigurations; }