Class: Kaltura::KalturaLiveStatsEvent

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_types.rb

Overview

Will hold data from the Kaltura Player components to be passed on to the live analytics system

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#bitrateObject

bitrate used in the last 10 seconds



3541
3542
3543
# File 'lib/kaltura_types.rb', line 3541

def bitrate
  @bitrate
end

#buffer_timeObject

buffer time in seconds from the last 10 seconds



3538
3539
3540
# File 'lib/kaltura_types.rb', line 3538

def buffer_time
  @buffer_time
end

#delivery_typeObject

delivery type used for this stream



3551
3552
3553
# File 'lib/kaltura_types.rb', line 3551

def delivery_type
  @delivery_type
end

#entry_idObject

Returns the value of attribute entry_id.



3526
3527
3528
# File 'lib/kaltura_types.rb', line 3526

def entry_id
  @entry_id
end

#event_indexObject

incremental sequence of the event



3535
3536
3537
# File 'lib/kaltura_types.rb', line 3535

def event_index
  @event_index
end

#event_typeObject

an integer representing the type of event being sent from the player



3529
3530
3531
# File 'lib/kaltura_types.rb', line 3529

def event_type
  @event_type
end

#is_liveObject

Returns the value of attribute is_live.



3545
3546
3547
# File 'lib/kaltura_types.rb', line 3545

def is_live
  @is_live
end

#partner_idObject

Returns the value of attribute partner_id.



3525
3526
3527
# File 'lib/kaltura_types.rb', line 3525

def partner_id
  @partner_id
end

#referrerObject

the referrer of the client



3544
3545
3546
# File 'lib/kaltura_types.rb', line 3544

def referrer
  @referrer
end

#session_idObject

a unique string generated by the client that will represent the client-side session: the primary component will pass it on to other components that sprout from it



3532
3533
3534
# File 'lib/kaltura_types.rb', line 3532

def session_id
  @session_id
end

#start_timeObject

the event start time as string



3548
3549
3550
# File 'lib/kaltura_types.rb', line 3548

def start_time
  @start_time
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
# File 'lib/kaltura_types.rb', line 3572

def from_xml(xml_element)
	super
	self.partner_id = xml_element.elements['partnerId'].text
	self.entry_id = xml_element.elements['entryId'].text
	self.event_type = xml_element.elements['eventType'].text
	self.session_id = xml_element.elements['sessionId'].text
	self.event_index = xml_element.elements['eventIndex'].text
	self.buffer_time = xml_element.elements['bufferTime'].text
	self.bitrate = xml_element.elements['bitrate'].text
	self.referrer = xml_element.elements['referrer'].text
	self.is_live = xml_element.elements['isLive'].text
	self.start_time = xml_element.elements['startTime'].text
	self.delivery_type = xml_element.elements['deliveryType'].text
end