Class: Kaltura::Service::FlavorAssetService
- Inherits:
-
BaseService
- Object
- BaseService
- Kaltura::Service::FlavorAssetService
- Defined in:
- lib/kaltura/service/flavor_asset_service.rb
Overview
The Flavor Asset Service allows you to retrieve information and invoke actions on flavor assets.
Instance Attribute Summary
Attributes inherited from BaseService
Instance Method Summary collapse
-
#convert(entry_id, flavor_params_id) ⇒ nil
Add and convert a new flavor asset for a specified entry given a flavor param.
-
#delete(id) ⇒ nil
Removes a flavor asset.
-
#get(id) ⇒ Kaltura::FlavorAsset
Retrieves an individual flavor asset by ID.
-
#get_by_entry_id(entry_id) ⇒ Array
Retrieves an enumerable collection of flavor assets given a media entry id.
-
#get_download_url(id) ⇒ String
Gets a downloadable URL for a flavor asset.
-
#get_flavor_assets_with_params(entry_id) ⇒ Array
Retrieves an enumerable collection of Flavor Assets + Flavor Params given a media entry.
-
#get_web_playable_by_entry_id(entry_id) ⇒ Array
Retrieves an enumerable collection of flavor assets that are playable within the KDP for a given media entry ID.
-
#reconvert(id) ⇒ nil
Reconvert a specific flavor asset.
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Kaltura::Service::BaseService
Instance Method Details
#convert(entry_id, flavor_params_id) ⇒ nil
Add and convert a new flavor asset for a specified entry given a flavor param.
87 88 89 90 91 92 |
# File 'lib/kaltura/service/flavor_asset_service.rb', line 87 def convert(entry_id, flavor_params_id) kparams = {} client.add_param(kparams, 'entryId', entry_id) client.add_param(kparams, 'flavorParamsId', flavor_params_id) perform_request('flavorAsset','convert',kparams,false) end |
#delete(id) ⇒ nil
Removes a flavor asset.
118 119 120 121 122 |
# File 'lib/kaltura/service/flavor_asset_service.rb', line 118 def delete(id) kparams = {} client.add_param(kparams, 'id', id) perform_request('flavorAsset','delete',kparams,false) end |
#get(id) ⇒ Kaltura::FlavorAsset
Retrieves an individual flavor asset by ID.
41 42 43 44 45 |
# File 'lib/kaltura/service/flavor_asset_service.rb', line 41 def get(id) kparams = {} client.add_param(kparams, 'id', id) perform_request('flavorAsset','get',kparams,false) end |
#get_by_entry_id(entry_id) ⇒ Array
Retrieves an enumerable collection of flavor assets given a media entry id.
56 57 58 59 60 |
# File 'lib/kaltura/service/flavor_asset_service.rb', line 56 def get_by_entry_id(entry_id) kparams = {} client.add_param(kparams, 'entryId', entry_id) perform_request('flavorAsset','getByEntryId',kparams,false) end |
#get_download_url(id) ⇒ String
Gets a downloadable URL for a flavor asset.
133 134 135 136 137 |
# File 'lib/kaltura/service/flavor_asset_service.rb', line 133 def get_download_url(id) kparams = {} client.add_param(kparams, 'id', id) perform_request('flavorAsset','getDownloadUrl',kparams,false) end |
#get_flavor_assets_with_params(entry_id) ⇒ Array
Retrieves an enumerable collection of Flavor Assets + Flavor Params given a media entry.
148 149 150 151 152 |
# File 'lib/kaltura/service/flavor_asset_service.rb', line 148 def get_flavor_assets_with_params(entry_id) kparams = {} client.add_param(kparams, 'entryId', entry_id) perform_request('flavorAsset','getFlavorAssetsWithParams',kparams,false) end |
#get_web_playable_by_entry_id(entry_id) ⇒ Array
Retrieves an enumerable collection of flavor assets that are playable within the KDP for a given media entry ID.
71 72 73 74 75 |
# File 'lib/kaltura/service/flavor_asset_service.rb', line 71 def get_web_playable_by_entry_id(entry_id) kparams = {} client.add_param(kparams, 'entryId', entry_id) perform_request('flavorAsset','getWebPlayableByEntryId',kparams,false) end |
#reconvert(id) ⇒ nil
Reconvert a specific flavor asset.
103 104 105 106 107 |
# File 'lib/kaltura/service/flavor_asset_service.rb', line 103 def reconvert(id) kparams = {} client.add_param(kparams, 'id', id) perform_request('flavorAsset','reconvert',kparams,false) end |