class Kaltura::KalturaPlayableEntry
Attributes
duration[RW]
The duration in seconds
duration_type[RW]
The duration type (short for 0-4 mins, medium for 4-20 mins, long for 20+ mins)
height[RW]
The height in pixels
last_played_at[RW]
The last time the entry was played
ms_duration[RW]
The duration in miliseconds
plays[RW]
Number of plays
views[RW]
Number of views
width[RW]
The width in pixels
Public Instance Methods
duration=(val)
click to toggle source
# File lib/kaltura_types.rb, line 4573 def duration=(val) @duration = val.to_i end
from_xml(xml_element)
click to toggle source
Calls superclass method
Kaltura::KalturaBaseEntry#from_xml
# File lib/kaltura_types.rb, line 4580 def from_xml(xml_element) super if xml_element.elements['plays'] != nil self.plays = xml_element.elements['plays'].text end if xml_element.elements['views'] != nil self.views = xml_element.elements['views'].text end if xml_element.elements['lastPlayedAt'] != nil self.last_played_at = xml_element.elements['lastPlayedAt'].text end if xml_element.elements['width'] != nil self.width = xml_element.elements['width'].text end if xml_element.elements['height'] != nil self.height = xml_element.elements['height'].text end if xml_element.elements['duration'] != nil self.duration = xml_element.elements['duration'].text end if xml_element.elements['msDuration'] != nil self.ms_duration = xml_element.elements['msDuration'].text end if xml_element.elements['durationType'] != nil self.duration_type = xml_element.elements['durationType'].text end end
height=(val)
click to toggle source
# File lib/kaltura_types.rb, line 4570 def height=(val) @height = val.to_i end
last_played_at=(val)
click to toggle source
# File lib/kaltura_types.rb, line 4564 def last_played_at=(val) @last_played_at = val.to_i end
ms_duration=(val)
click to toggle source
# File lib/kaltura_types.rb, line 4576 def ms_duration=(val) @ms_duration = val.to_i end
plays=(val)
click to toggle source
# File lib/kaltura_types.rb, line 4558 def plays=(val) @plays = val.to_i end
views=(val)
click to toggle source
# File lib/kaltura_types.rb, line 4561 def views=(val) @views = val.to_i end
width=(val)
click to toggle source
# File lib/kaltura_types.rb, line 4567 def width=(val) @width = val.to_i end