Class: Kaltura::KalturaWidevineFlavorAsset

Inherits:
KalturaFlavorAsset show all
Defined in:
lib/kaltura_plugins/kaltura_widevine_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaFlavorAsset

#bitrate, #container_format, #flavor_params_id, #frame_rate, #height, #is_default, #is_original, #is_web, #label, #language, #status, #video_codec_id, #width

Attributes inherited from KalturaAsset

#actual_source_asset_params_ids, #created_at, #deleted_at, #description, #entry_id, #file_ext, #id, #partner_data, #partner_description, #partner_id, #size, #size_in_bytes, #tags, #updated_at, #version

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#widevine_asset_idObject

Widevine unique asset id



134
135
136
# File 'lib/kaltura_plugins/kaltura_widevine_client_plugin.rb', line 134

def widevine_asset_id
  @widevine_asset_id
end

#widevine_distribution_end_dateObject

License distribution window end date



132
133
134
# File 'lib/kaltura_plugins/kaltura_widevine_client_plugin.rb', line 132

def widevine_distribution_end_date
  @widevine_distribution_end_date
end

#widevine_distribution_start_dateObject

License distribution window start date



130
131
132
# File 'lib/kaltura_plugins/kaltura_widevine_client_plugin.rb', line 130

def widevine_distribution_start_date
  @widevine_distribution_start_date
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



146
147
148
149
150
151
152
153
154
155
156
157
# File 'lib/kaltura_plugins/kaltura_widevine_client_plugin.rb', line 146

def from_xml(xml_element)
	super
	if xml_element.elements['widevineDistributionStartDate'] != nil
		self.widevine_distribution_start_date = xml_element.elements['widevineDistributionStartDate'].text
	end
	if xml_element.elements['widevineDistributionEndDate'] != nil
		self.widevine_distribution_end_date = xml_element.elements['widevineDistributionEndDate'].text
	end
	if xml_element.elements['widevineAssetId'] != nil
		self.widevine_asset_id = xml_element.elements['widevineAssetId'].text
	end
end