Class: ActsAsKaltura::Extension::Service::CuePointService

Inherits:
Kaltura::Service::BaseService
  • Object
show all
Defined in:
lib/acts_as_kaltura/extension/service.rb

Instance Method Summary collapse

Instance Method Details

#add(cuepoint) ⇒ Object

Create new cuepoint



8
9
10
11
12
# File 'lib/acts_as_kaltura/extension/service.rb', line 8

def add(cuepoint)
  kparams = { }
  client.add_param(kparams, 'cuePoint', cuepoint)
  perform_request('cuepoint_cuepoint', 'add', kparams, false)
end

#count(filter = nil) ⇒ Object

Count total available cue points for the specified filtered list



25
26
27
28
29
# File 'lib/acts_as_kaltura/extension/service.rb', line 25

def count(filter=nil)
  kparams = { }
  client.add_param(kparams, 'filter', filter)
  perform_request('cuepoint_cuepoint', 'count', kparams, false)
end

#delete(entry_id) ⇒ Object

Delete the specific cuepoint



52
53
54
55
56
# File 'lib/acts_as_kaltura/extension/service.rb', line 52

def delete(entry_id)
  kparams = { }
  client.add_param(kparams, 'id', entry_id)
  perform_request('cuepoint_cuepoint', 'delete', kparams, false)
end

#get(entry_id, version = -1)) ⇒ Object

Retrieve kaltura entry



16
17
18
19
20
21
# File 'lib/acts_as_kaltura/extension/service.rb', line 16

def get(entry_id, version = -1)
  kparams = { }
  client.add_param(kparams, 'id', entry_id)
  client.add_param(kparams, 'version', version)
  perform_request('cuepoint_cuepoint', 'get', kparams, false)
end

#list(filter = nil, pager = nil) ⇒ Object

Retrieve list of existing videos, you can filter by passing filter Also paginate through passing paginate object



43
44
45
46
47
48
# File 'lib/acts_as_kaltura/extension/service.rb', line 43

def list(filter = nil, pager = nil)
  kparams = { }
  client.add_param(kparams, 'filter', filter)
  client.add_param(kparams, 'pager', pager)
  perform_request('cuepoint_cuepoint', 'list', kparams, false)
end

#update(entry_id, cuepoint) ⇒ Object

Update an existing cuepoint object



33
34
35
36
37
38
# File 'lib/acts_as_kaltura/extension/service.rb', line 33

def update(entry_id, cuepoint)
  kparams = { }
  client.add_param(kparams, 'id', entry_id)
  client.add_param(kparams, 'cuePoint', cuepoint)
  perform_request('cuepoint_cuepoint', 'update', kparams, false)
end