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



6994
6995
6996
# File 'lib/kaltura_types.rb', line 6994

def bitrate
  @bitrate
end

#buffer_timeObject

buffer time in seconds from the last 10 seconds



6992
6993
6994
# File 'lib/kaltura_types.rb', line 6992

def buffer_time
  @buffer_time
end

#delivery_typeObject

delivery type used for this stream



7001
7002
7003
# File 'lib/kaltura_types.rb', line 7001

def delivery_type
  @delivery_type
end

#entry_idObject

Returns the value of attribute entry_id.



6984
6985
6986
# File 'lib/kaltura_types.rb', line 6984

def entry_id
  @entry_id
end

#event_indexObject

incremental sequence of the event



6990
6991
6992
# File 'lib/kaltura_types.rb', line 6990

def event_index
  @event_index
end

#event_typeObject

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



6986
6987
6988
# File 'lib/kaltura_types.rb', line 6986

def event_type
  @event_type
end

#is_liveObject

Returns the value of attribute is_live.



6997
6998
6999
# File 'lib/kaltura_types.rb', line 6997

def is_live
  @is_live
end

#partner_idObject

Returns the value of attribute partner_id.



6983
6984
6985
# File 'lib/kaltura_types.rb', line 6983

def partner_id
  @partner_id
end

#referrerObject

the referrer of the client



6996
6997
6998
# File 'lib/kaltura_types.rb', line 6996

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



6988
6989
6990
# File 'lib/kaltura_types.rb', line 6988

def session_id
  @session_id
end

#start_timeObject

the event start time as string



6999
7000
7001
# File 'lib/kaltura_types.rb', line 6999

def start_time
  @start_time
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
# File 'lib/kaltura_types.rb', line 7022

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