Class: Kaltura::KalturaDrmLicenseAccessDetails

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_plugins/kaltura_drm_client_plugin.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

#absolute_durationObject

playback window in seconds



84
85
86
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 84

def absolute_duration
  @absolute_duration
end

#durationObject

movie duration in seconds



82
83
84
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 82

def duration
  @duration
end

#license_paramsObject

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

#policyObject

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