Class: Kaltura::KalturaExternalMediaService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaExternalMediaService
- Defined in:
- lib/kaltura_plugins/kaltura_external_media_client_plugin.rb
Overview
External media service lets you upload and manage embed codes and external playable content
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(entry) ⇒ Object
Add external media entry.
-
#count(filter = KalturaNotImplemented) ⇒ Object
Count media entries by filter.
-
#delete(id) ⇒ Object
Delete a external media entry.
-
#get(id) ⇒ Object
Get external media entry by ID.
-
#initialize(client) ⇒ KalturaExternalMediaService
constructor
A new instance of KalturaExternalMediaService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List media entries by filter with paging support.
-
#update(id, entry) ⇒ Object
Update external media entry.
Constructor Details
#initialize(client) ⇒ KalturaExternalMediaService
Returns a new instance of KalturaExternalMediaService.
130 131 132 |
# File 'lib/kaltura_plugins/kaltura_external_media_client_plugin.rb', line 130 def initialize(client) super(client) end |
Instance Method Details
#add(entry) ⇒ Object
Add external media entry
136 137 138 139 140 141 142 143 144 |
# File 'lib/kaltura_plugins/kaltura_external_media_client_plugin.rb', line 136 def add(entry) kparams = {} client.add_param(kparams, 'entry', entry) client.queue_service_action_call('externalmedia_externalmedia', 'add', 'KalturaExternalMediaEntry', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#count(filter = KalturaNotImplemented) ⇒ Object
Count media entries by filter.
198 199 200 201 202 203 204 205 206 |
# File 'lib/kaltura_plugins/kaltura_external_media_client_plugin.rb', line 198 def count(filter=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.queue_service_action_call('externalmedia_externalmedia', 'count', 'int', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#delete(id) ⇒ Object
Delete a external media entry.
173 174 175 176 177 178 179 180 181 |
# File 'lib/kaltura_plugins/kaltura_external_media_client_plugin.rb', line 173 def delete(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('externalmedia_externalmedia', 'delete', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(id) ⇒ Object
Get external media entry by ID.
148 149 150 151 152 153 154 155 156 |
# File 'lib/kaltura_plugins/kaltura_external_media_client_plugin.rb', line 148 def get(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('externalmedia_externalmedia', 'get', 'KalturaExternalMediaEntry', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List media entries by filter with paging support.
185 186 187 188 189 190 191 192 193 194 |
# File 'lib/kaltura_plugins/kaltura_external_media_client_plugin.rb', line 185 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('externalmedia_externalmedia', 'list', 'KalturaExternalMediaEntryListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(id, entry) ⇒ Object
Update external media entry. Only the properties that were set will be updated.
160 161 162 163 164 165 166 167 168 169 |
# File 'lib/kaltura_plugins/kaltura_external_media_client_plugin.rb', line 160 def update(id, entry) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'entry', entry) client.queue_service_action_call('externalmedia_externalmedia', 'update', 'KalturaExternalMediaEntry', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |