Class: Kaltura::KalturaLiveChannelSegment

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

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

#channel_idObject

Live channel id



6716
6717
6718
# File 'lib/kaltura_types.rb', line 6716

def channel_id
  @channel_id
end

#created_atObject

Segment creation date as Unix timestamp (In seconds)



6703
6704
6705
# File 'lib/kaltura_types.rb', line 6703

def created_at
  @created_at
end

#descriptionObject

Segment description



6709
6710
6711
# File 'lib/kaltura_types.rb', line 6709

def description
  @description
end

#durationObject

Segment play duration time, in mili-seconds



6726
6727
6728
# File 'lib/kaltura_types.rb', line 6726

def duration
  @duration
end

#entry_idObject

Entry id to be played



6718
6719
6720
# File 'lib/kaltura_types.rb', line 6718

def entry_id
  @entry_id
end

#idObject

Unique identifier



6700
6701
6702
# File 'lib/kaltura_types.rb', line 6700

def id
  @id
end

#nameObject

Segment name



6707
6708
6709
# File 'lib/kaltura_types.rb', line 6707

def name
  @name
end

#partner_idObject

Returns the value of attribute partner_id.



6701
6702
6703
# File 'lib/kaltura_types.rb', line 6701

def partner_id
  @partner_id
end

#start_timeObject

Segment play start time, in mili-seconds, according to trigger type



6724
6725
6726
# File 'lib/kaltura_types.rb', line 6724

def start_time
  @start_time
end

#statusObject

Returns the value of attribute status.



6714
6715
6716
# File 'lib/kaltura_types.rb', line 6714

def status
  @status
end

#tagsObject

Segment tags



6711
6712
6713
# File 'lib/kaltura_types.rb', line 6711

def tags
  @tags
end

#trigger_segment_idObject

Live channel segment that the trigger relates to



6722
6723
6724
# File 'lib/kaltura_types.rb', line 6722

def trigger_segment_id
  @trigger_segment_id
end

#trigger_typeObject

Segment start time trigger type



6720
6721
6722
# File 'lib/kaltura_types.rb', line 6720

def trigger_type
  @trigger_type
end

#typeObject

Segment could be associated with the main stream, as additional stream or as overlay



6713
6714
6715
# File 'lib/kaltura_types.rb', line 6713

def type
  @type
end

#updated_atObject

Segment update date as Unix timestamp (In seconds)



6705
6706
6707
# File 'lib/kaltura_types.rb', line 6705

def updated_at
  @updated_at
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
# File 'lib/kaltura_types.rb', line 6750

def from_xml(xml_element)
	super
	if xml_element.elements['id'] != nil
		self.id = xml_element.elements['id'].text
	end
	if xml_element.elements['partnerId'] != nil
		self.partner_id = xml_element.elements['partnerId'].text
	end
	if xml_element.elements['createdAt'] != nil
		self.created_at = xml_element.elements['createdAt'].text
	end
	if xml_element.elements['updatedAt'] != nil
		self.updated_at = xml_element.elements['updatedAt'].text
	end
	if xml_element.elements['name'] != nil
		self.name = xml_element.elements['name'].text
	end
	if xml_element.elements['description'] != nil
		self.description = xml_element.elements['description'].text
	end
	if xml_element.elements['tags'] != nil
		self.tags = xml_element.elements['tags'].text
	end
	if xml_element.elements['type'] != nil
		self.type = xml_element.elements['type'].text
	end
	if xml_element.elements['status'] != nil
		self.status = xml_element.elements['status'].text
	end
	if xml_element.elements['channelId'] != nil
		self.channel_id = xml_element.elements['channelId'].text
	end
	if xml_element.elements['entryId'] != nil
		self.entry_id = xml_element.elements['entryId'].text
	end
	if xml_element.elements['triggerType'] != nil
		self.trigger_type = xml_element.elements['triggerType'].text
	end
	if xml_element.elements['triggerSegmentId'] != nil
		self.trigger_segment_id = xml_element.elements['triggerSegmentId'].text
	end
	if xml_element.elements['startTime'] != nil
		self.start_time = xml_element.elements['startTime'].text
	end
	if xml_element.elements['duration'] != nil
		self.duration = xml_element.elements['duration'].text
	end
end