. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ abstract class Kaltura_Client_Type_LiveEntry extends Kaltura_Client_Type_MediaEntry { public function getKalturaObjectType() { return 'KalturaLiveEntry'; } public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if(is_null($xml)) return; $this->offlineMessage = (string)$xml->offlineMessage; if(count($xml->recordStatus)) $this->recordStatus = (int)$xml->recordStatus; if(count($xml->dvrStatus)) $this->dvrStatus = (int)$xml->dvrStatus; if(count($xml->dvrWindow)) $this->dvrWindow = (int)$xml->dvrWindow; if(count($xml->lastElapsedRecordingTime)) $this->lastElapsedRecordingTime = (int)$xml->lastElapsedRecordingTime; if(empty($xml->liveStreamConfigurations)) $this->liveStreamConfigurations = array(); else $this->liveStreamConfigurations = Kaltura_Client_ParseUtils::unmarshalArray($xml->liveStreamConfigurations, "KalturaLiveStreamConfiguration"); $this->recordedEntryId = (string)$xml->recordedEntryId; if(count($xml->pushPublishEnabled)) $this->pushPublishEnabled = (int)$xml->pushPublishEnabled; if(empty($xml->publishConfigurations)) $this->publishConfigurations = array(); else $this->publishConfigurations = Kaltura_Client_ParseUtils::unmarshalArray($xml->publishConfigurations, "KalturaLiveStreamPushPublishConfiguration"); if(count($xml->firstBroadcast)) $this->firstBroadcast = (int)$xml->firstBroadcast; if(count($xml->lastBroadcast)) $this->lastBroadcast = (int)$xml->lastBroadcast; if(count($xml->currentBroadcastStartTime)) $this->currentBroadcastStartTime = (float)$xml->currentBroadcastStartTime; if(!empty($xml->recordingOptions)) $this->recordingOptions = Kaltura_Client_ParseUtils::unmarshalObject($xml->recordingOptions, "KalturaLiveEntryRecordingOptions"); } /** * The message to be presented when the stream is offline * * * @var string */ public $offlineMessage = null; /** * Recording Status Enabled/Disabled * * * @var Kaltura_Client_Enum_RecordStatus * @insertonly */ public $recordStatus = 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; /** * Elapsed recording time (in msec) up to the point where the live stream was last stopped (unpublished). * * * @var int */ public $lastElapsedRecordingTime = null; /** * Array of key value protocol->live stream url objects * * * @var array of KalturaLiveStreamConfiguration */ public $liveStreamConfigurations; /** * Recorded entry id * * * @var string */ public $recordedEntryId = null; /** * Flag denoting whether entry should be published by the media server * * * @var Kaltura_Client_Enum_LivePublishStatus */ public $pushPublishEnabled = null; /** * Array of publish configurations * * * @var array of KalturaLiveStreamPushPublishConfiguration */ public $publishConfigurations; /** * The first time in which the entry was broadcast * * * @var int * @readonly */ public $firstBroadcast = null; /** * The Last time in which the entry was broadcast * * * @var int * @readonly */ public $lastBroadcast = null; /** * The time (unix timestamp in milliseconds) in which the entry broadcast started or 0 when the entry is off the air * * * @var float */ public $currentBroadcastStartTime = null; /** * * * @var Kaltura_Client_Type_LiveEntryRecordingOptions * @insertonly */ public $recordingOptions; }