Class: Kaltura::KalturaMediaEntry

Inherits:
KalturaPlayableEntry show all
Defined in:
lib/kaltura_types.rb

Direct Known Subclasses

KalturaExternalMediaEntry, KalturaLiveEntry

Instance Attribute Summary collapse

Attributes inherited from KalturaPlayableEntry

#duration, #duration_type, #height, #last_played_at, #ms_duration, #plays, #views, #width

Attributes inherited from KalturaBaseEntry

#access_control_id, #admin_tags, #application, #application_version, #block_auto_transcript, #capabilities, #categories, #categories_ids, #conversion_profile_id, #created_at, #creator_id, #description, #display_in_search, #download_url, #end_date, #entitled_users_edit, #entitled_users_publish, #entitled_users_view, #group_id, #id, #license_type, #moderation_count, #moderation_status, #multi_lingual_description, #multi_lingual_name, #multi_lingual_tags, #name, #operation_attributes, #parent_entry_id, #partner_data, #partner_id, #partner_sort_value, #rank, #redirect_entry_id, #reference_id, #replaced_entry_id, #replacement_status, #replacing_entry_id, #root_entry_id, #search_text, #start_date, #status, #tags, #template_entry_id, #thumbnail_url, #total_rank, #type, #updated_at, #user_id, #version, #votes

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#conversion_qualityObject

Override the default conversion quality



4800
4801
4802
# File 'lib/kaltura_types.rb', line 4800

def conversion_quality
  @conversion_quality
end

#credit_urlObject

The URL for credits



4812
4813
4814
# File 'lib/kaltura_types.rb', line 4812

def credit_url
  @credit_url
end

#credit_user_nameObject

The user name used for credits



4810
4811
4812
# File 'lib/kaltura_types.rb', line 4810

def credit_user_name
  @credit_user_name
end

#data_urlObject

The URL used for playback. This is not the download URL.



4816
4817
4818
# File 'lib/kaltura_types.rb', line 4816

def data_url
  @data_url
end

#flavor_params_idsObject

Comma separated flavor params ids that exists for this media entry



4818
4819
4820
# File 'lib/kaltura_types.rb', line 4818

def flavor_params_ids
  @flavor_params_ids
end

#is_trim_disabledObject

True if trim action is disabled for this entry



4820
4821
4822
# File 'lib/kaltura_types.rb', line 4820

def is_trim_disabled
  @is_trim_disabled
end

#media_dateObject

The media date extracted from EXIF data (For images) as Unix timestamp (In seconds)



4814
4815
4816
# File 'lib/kaltura_types.rb', line 4814

def media_date
  @media_date
end

#media_typeObject

The media type of the entry



4798
4799
4800
# File 'lib/kaltura_types.rb', line 4798

def media_type
  @media_type
end

#search_provider_idObject

The ID of the media in the importing site



4808
4809
4810
# File 'lib/kaltura_types.rb', line 4808

def search_provider_id
  @search_provider_id
end

#search_provider_typeObject

The search provider type used to import this entry



4806
4807
4808
# File 'lib/kaltura_types.rb', line 4806

def search_provider_type
  @search_provider_type
end

#source_typeObject

The source type of the entry



4802
4803
4804
# File 'lib/kaltura_types.rb', line 4802

def source_type
  @source_type
end

#source_versionObject

The source version of the entry



4804
4805
4806
# File 'lib/kaltura_types.rb', line 4804

def source_version
  @source_version
end

#streamsObject

Array of streams that exists on the entry



4822
4823
4824
# File 'lib/kaltura_types.rb', line 4822

def streams
  @streams
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
# File 'lib/kaltura_types.rb', line 4837

def from_xml(xml_element)
	super
	if xml_element.elements['mediaType'] != nil
		self.media_type = xml_element.elements['mediaType'].text
	end
	if xml_element.elements['conversionQuality'] != nil
		self.conversion_quality = xml_element.elements['conversionQuality'].text
	end
	if xml_element.elements['sourceType'] != nil
		self.source_type = xml_element.elements['sourceType'].text
	end
	if xml_element.elements['sourceVersion'] != nil
		self.source_version = xml_element.elements['sourceVersion'].text
	end
	if xml_element.elements['searchProviderType'] != nil
		self.search_provider_type = xml_element.elements['searchProviderType'].text
	end
	if xml_element.elements['searchProviderId'] != nil
		self.search_provider_id = xml_element.elements['searchProviderId'].text
	end
	if xml_element.elements['creditUserName'] != nil
		self.credit_user_name = xml_element.elements['creditUserName'].text
	end
	if xml_element.elements['creditUrl'] != nil
		self.credit_url = xml_element.elements['creditUrl'].text
	end
	if xml_element.elements['mediaDate'] != nil
		self.media_date = xml_element.elements['mediaDate'].text
	end
	if xml_element.elements['dataUrl'] != nil
		self.data_url = xml_element.elements['dataUrl'].text
	end
	if xml_element.elements['flavorParamsIds'] != nil
		self.flavor_params_ids = xml_element.elements['flavorParamsIds'].text
	end
	if xml_element.elements['isTrimDisabled'] != nil
		self.is_trim_disabled = xml_element.elements['isTrimDisabled'].text
	end
	if xml_element.elements['streams'] != nil
		self.streams = KalturaClientBase.object_from_xml(xml_element.elements['streams'], 'KalturaStreamContainer')
	end
end