Class: Kaltura::KalturaDrmLicenseAccessDetails
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaDrmLicenseAccessDetails
- Defined in:
- lib/kaltura_plugins/kaltura_drm_client_plugin.rb
Instance Attribute Summary collapse
-
#absolute_duration ⇒ Object
playback window in seconds.
-
#duration ⇒ Object
movie duration in seconds.
-
#license_params ⇒ Object
Returns the value of attribute license_params.
-
#policy ⇒ Object
Drm policy name.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#absolute_duration ⇒ Object
playback window in seconds
84 85 86 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 84 def absolute_duration @absolute_duration end |
#duration ⇒ Object
movie duration in seconds
82 83 84 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 82 def duration @duration end |
#license_params ⇒ Object
Returns the value of attribute license_params.
85 86 87 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 85 def license_params @license_params end |
#policy ⇒ Object
Drm policy name
80 81 82 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 80 def policy @policy end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 94 def from_xml(xml_element) super if xml_element.elements['policy'] != nil self.policy = xml_element.elements['policy'].text end if xml_element.elements['duration'] != nil self.duration = xml_element.elements['duration'].text end if xml_element.elements['absolute_duration'] != nil self.absolute_duration = xml_element.elements['absolute_duration'].text end if xml_element.elements['licenseParams'] != nil self.license_params = KalturaClientBase.object_from_xml(xml_element.elements['licenseParams'], 'KalturaKeyValue') end end |