Class: Kaltura::KalturaMediaEntry
- Inherits:
-
KalturaPlayableEntry
- Object
- KalturaObjectBase
- KalturaBaseEntry
- KalturaPlayableEntry
- Kaltura::KalturaMediaEntry
- Defined in:
- lib/kaltura_types.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#conversion_quality ⇒ Object
Override the default conversion quality.
-
#credit_url ⇒ Object
The URL for credits.
-
#credit_user_name ⇒ Object
The user name used for credits.
-
#data_url ⇒ Object
The URL used for playback.
-
#flavor_params_ids ⇒ Object
Comma separated flavor params ids that exists for this media entry.
-
#is_trim_disabled ⇒ Object
True if trim action is disabled for this entry.
-
#media_date ⇒ Object
The media date extracted from EXIF data (For images) as Unix timestamp (In seconds).
-
#media_type ⇒ Object
The media type of the entry.
-
#search_provider_id ⇒ Object
The ID of the media in the importing site.
-
#search_provider_type ⇒ Object
The search provider type used to import this entry.
-
#source_type ⇒ Object
The source type of the entry.
-
#streams ⇒ Object
Array of streams that exists on the entry.
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, #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, #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
Instance Attribute Details
#conversion_quality ⇒ Object
Override the default conversion quality
4491 4492 4493 |
# File 'lib/kaltura_types.rb', line 4491 def conversion_quality @conversion_quality end |
#credit_url ⇒ Object
The URL for credits
4501 4502 4503 |
# File 'lib/kaltura_types.rb', line 4501 def credit_url @credit_url end |
#credit_user_name ⇒ Object
The user name used for credits
4499 4500 4501 |
# File 'lib/kaltura_types.rb', line 4499 def credit_user_name @credit_user_name end |
#data_url ⇒ Object
The URL used for playback. This is not the download URL.
4505 4506 4507 |
# File 'lib/kaltura_types.rb', line 4505 def data_url @data_url end |
#flavor_params_ids ⇒ Object
Comma separated flavor params ids that exists for this media entry
4507 4508 4509 |
# File 'lib/kaltura_types.rb', line 4507 def flavor_params_ids @flavor_params_ids end |
#is_trim_disabled ⇒ Object
True if trim action is disabled for this entry
4509 4510 4511 |
# File 'lib/kaltura_types.rb', line 4509 def is_trim_disabled @is_trim_disabled end |
#media_date ⇒ Object
The media date extracted from EXIF data (For images) as Unix timestamp (In seconds)
4503 4504 4505 |
# File 'lib/kaltura_types.rb', line 4503 def media_date @media_date end |
#media_type ⇒ Object
The media type of the entry
4489 4490 4491 |
# File 'lib/kaltura_types.rb', line 4489 def media_type @media_type end |
#search_provider_id ⇒ Object
The ID of the media in the importing site
4497 4498 4499 |
# File 'lib/kaltura_types.rb', line 4497 def search_provider_id @search_provider_id end |
#search_provider_type ⇒ Object
The search provider type used to import this entry
4495 4496 4497 |
# File 'lib/kaltura_types.rb', line 4495 def search_provider_type @search_provider_type end |
#source_type ⇒ Object
The source type of the entry
4493 4494 4495 |
# File 'lib/kaltura_types.rb', line 4493 def source_type @source_type end |
#streams ⇒ Object
Array of streams that exists on the entry
4511 4512 4513 |
# File 'lib/kaltura_types.rb', line 4511 def streams @streams end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 |
# File 'lib/kaltura_types.rb', line 4526 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['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 |