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



3351
3352
3353
# File 'lib/kaltura_types.rb', line 3351

def channel_id
  @channel_id
end

#created_atObject

Segment creation date as Unix timestamp (In seconds)



3332
3333
3334
# File 'lib/kaltura_types.rb', line 3332

def created_at
  @created_at
end

#descriptionObject

Segment description



3341
3342
3343
# File 'lib/kaltura_types.rb', line 3341

def description
  @description
end

#durationObject

Segment play duration time, in mili-seconds



3366
3367
3368
# File 'lib/kaltura_types.rb', line 3366

def duration
  @duration
end

#entry_idObject

Entry id to be played



3354
3355
3356
# File 'lib/kaltura_types.rb', line 3354

def entry_id
  @entry_id
end

#idObject

Unique identifier



3328
3329
3330
# File 'lib/kaltura_types.rb', line 3328

def id
  @id
end

#nameObject

Segment name



3338
3339
3340
# File 'lib/kaltura_types.rb', line 3338

def name
  @name
end

#partner_idObject

Returns the value of attribute partner_id.



3329
3330
3331
# File 'lib/kaltura_types.rb', line 3329

def partner_id
  @partner_id
end

#start_timeObject

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



3363
3364
3365
# File 'lib/kaltura_types.rb', line 3363

def start_time
  @start_time
end

#statusObject

Returns the value of attribute status.



3348
3349
3350
# File 'lib/kaltura_types.rb', line 3348

def status
  @status
end

#tagsObject

Segment tags



3344
3345
3346
# File 'lib/kaltura_types.rb', line 3344

def tags
  @tags
end

#trigger_segment_idObject

Live channel segment that the trigger relates to



3360
3361
3362
# File 'lib/kaltura_types.rb', line 3360

def trigger_segment_id
  @trigger_segment_id
end

#trigger_typeObject

Segment start time trigger type



3357
3358
3359
# File 'lib/kaltura_types.rb', line 3357

def trigger_type
  @trigger_type
end

#typeObject

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



3347
3348
3349
# File 'lib/kaltura_types.rb', line 3347

def type
  @type
end

#updated_atObject

Segment update date as Unix timestamp (In seconds)



3335
3336
3337
# File 'lib/kaltura_types.rb', line 3335

def updated_at
  @updated_at
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
# File 'lib/kaltura_types.rb', line 3384

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