Class: Kaltura::Service::MediaService
Instance Attribute Summary
Attributes inherited from BaseService
#client
Instance Method Summary
collapse
-
#add_from_bulk(media_entry, url, bulk_upload_id) ⇒ Object
-
#add_from_recorded_webcam(media_entry, webcam_token_id) ⇒ Object
-
#add_from_search_result(media_entry = nil, search_result = nil) ⇒ Object
-
#add_from_uploaded_file(media_entry, upload_token_id) ⇒ Object
-
#add_from_url(media_entry, url) ⇒ Object
-
#anonymous_rank(entry_id, rank) ⇒ Object
-
#approve(entry_id) ⇒ Object
-
#count(filter = nil) ⇒ Object
-
#delete(entry_id) ⇒ Object
-
#flag(moderation_flag) ⇒ Object
-
#get(entry_id, version = -1)) ⇒ Object
-
#list(filter = nil, pager = nil) ⇒ Object
-
#list_flags(entry_id, pager = nil) ⇒ Object
-
#reject(entry_id) ⇒ Object
-
#request_conversion(entry_id, file_format) ⇒ Object
-
#update(entry_id, media_entry) ⇒ Object
-
#update_thumbnail(entry_id, time_offset) ⇒ Object
-
#update_thumbnail_from_source_entry(entry_id, source_entry_id, time_offset) ⇒ Object
-
#update_thumbnail_from_url(entry_id, url) ⇒ Object
-
#update_thumbnail_jpeg(entry_id, file_data) ⇒ Object
-
#upload(file_data) ⇒ Object
Methods inherited from BaseService
#initialize, #perform_request
Instance Method Details
#add_from_bulk(media_entry, url, bulk_upload_id) ⇒ Object
5
6
7
8
9
10
11
|
# File 'lib/kaltura/service/media_service.rb', line 5
def add_from_bulk(media_entry, url, bulk_upload_id)
kparams = {}
client.add_param(kparams, 'mediaEntry', media_entry)
client.add_param(kparams, 'url', url)
client.add_param(kparams, 'bulkUploadId', bulk_upload_id)
perform_request('media','addFromBulk',kparams,false)
end
|
#add_from_recorded_webcam(media_entry, webcam_token_id) ⇒ Object
34
35
36
37
38
39
|
# File 'lib/kaltura/service/media_service.rb', line 34
def add_from_recorded_webcam(media_entry, webcam_token_id)
kparams = {}
client.add_param(kparams, 'mediaEntry', media_entry)
client.add_param(kparams, 'webcamTokenId', webcam_token_id)
perform_request('media','addFromRecordedWebcam',kparams,false)
end
|
#add_from_search_result(media_entry = nil, search_result = nil) ⇒ Object
20
21
22
23
24
25
|
# File 'lib/kaltura/service/media_service.rb', line 20
def add_from_search_result(media_entry=nil, search_result=nil)
kparams = {}
client.add_param(kparams, 'mediaEntry', media_entry)
client.add_param(kparams, 'searchResult', search_result)
perform_request('media','addFromSearchResult',kparams,false)
end
|
#add_from_uploaded_file(media_entry, upload_token_id) ⇒ Object
27
28
29
30
31
32
|
# File 'lib/kaltura/service/media_service.rb', line 27
def add_from_uploaded_file(media_entry, upload_token_id)
kparams = {}
client.add_param(kparams, 'mediaEntry', media_entry)
client.add_param(kparams, 'uploadTokenId', upload_token_id)
perform_request('media','addFromUploadedFile',kparams,false)
end
|
#add_from_url(media_entry, url) ⇒ Object
13
14
15
16
17
18
|
# File 'lib/kaltura/service/media_service.rb', line 13
def add_from_url(media_entry, url)
kparams = {}
client.add_param(kparams, 'mediaEntry', media_entry)
client.add_param(kparams, 'url', url)
perform_request('media','addFromUrl',kparams,false)
end
|
#anonymous_rank(entry_id, rank) ⇒ Object
141
142
143
144
145
146
|
# File 'lib/kaltura/service/media_service.rb', line 141
def anonymous_rank(entry_id, rank)
kparams = {}
client.add_param(kparams, 'entryId', entry_id)
client.add_param(kparams, 'rank', rank)
perform_request('media','anonymousRank',kparams,false)
end
|
#approve(entry_id) ⇒ Object
128
129
130
131
132
|
# File 'lib/kaltura/service/media_service.rb', line 128
def approve(entry_id)
kparams = {}
client.add_param(kparams, 'entryId', entry_id)
perform_request('media','approve',kparams,false)
end
|
#count(filter = nil) ⇒ Object
68
69
70
71
72
|
# File 'lib/kaltura/service/media_service.rb', line 68
def count(filter=nil)
kparams = {}
client.add_param(kparams, 'filter', filter)
perform_request('media','count',kparams,false)
end
|
#delete(entry_id) ⇒ Object
55
56
57
58
59
|
# File 'lib/kaltura/service/media_service.rb', line 55
def delete(entry_id)
kparams = {}
client.add_param(kparams, 'entryId', entry_id)
perform_request('media','delete',kparams,false)
end
|
#flag(moderation_flag) ⇒ Object
116
117
118
119
120
|
# File 'lib/kaltura/service/media_service.rb', line 116
def flag(moderation_flag)
kparams = {}
client.add_param(kparams, 'moderationFlag', moderation_flag)
perform_request('media','flag',kparams,false)
end
|
#get(entry_id, version = -1)) ⇒ Object
41
42
43
44
45
46
|
# File 'lib/kaltura/service/media_service.rb', line 41
def get(entry_id, version=-1)
kparams = {}
client.add_param(kparams, 'entryId', entry_id)
client.add_param(kparams, 'version', version)
perform_request('media','get',kparams,false)
end
|
#list(filter = nil, pager = nil) ⇒ Object
61
62
63
64
65
66
|
# File 'lib/kaltura/service/media_service.rb', line 61
def list(filter=nil, =nil)
kparams = {}
client.add_param(kparams, 'filter', filter)
client.add_param(kparams, 'pager', )
perform_request('media','list',kparams,false)
end
|
#list_flags(entry_id, pager = nil) ⇒ Object
134
135
136
137
138
139
|
# File 'lib/kaltura/service/media_service.rb', line 134
def list_flags(entry_id, =nil)
kparams = {}
client.add_param(kparams, 'entryId', entry_id)
client.add_param(kparams, 'pager', )
perform_request('media','listFlags',kparams,false)
end
|
#reject(entry_id) ⇒ Object
122
123
124
125
126
|
# File 'lib/kaltura/service/media_service.rb', line 122
def reject(entry_id)
kparams = {}
client.add_param(kparams, 'entryId', entry_id)
perform_request('media','request',kparams,false)
end
|
#request_conversion(entry_id, file_format) ⇒ Object
109
110
111
112
113
114
|
# File 'lib/kaltura/service/media_service.rb', line 109
def request_conversion(entry_id, file_format)
kparams = {}
client.add_param(kparams, 'entryId', entry_id)
client.add_param(kparams, 'fileFormat', file_format)
perform_request('media','requestConversion',kparams,false)
end
|
#update(entry_id, media_entry) ⇒ Object
48
49
50
51
52
53
|
# File 'lib/kaltura/service/media_service.rb', line 48
def update(entry_id, media_entry)
kparams = {}
client.add_param(kparams, 'entryId', entry_id)
client.add_param(kparams, 'mediaEntry', media_entry)
perform_request('media','update',kparams,false)
end
|
#update_thumbnail(entry_id, time_offset) ⇒ Object
80
81
82
83
84
85
|
# File 'lib/kaltura/service/media_service.rb', line 80
def update_thumbnail(entry_id, time_offset)
kparams = {}
client.add_param(kparams, 'entryId', entry_id)
client.add_param(kparams, 'timeOffset', time_offset)
perform_request('media','updateThumbnail',kparams,false)
end
|
#update_thumbnail_from_source_entry(entry_id, source_entry_id, time_offset) ⇒ Object
87
88
89
90
91
92
93
|
# File 'lib/kaltura/service/media_service.rb', line 87
def update_thumbnail_from_source_entry(entry_id, source_entry_id, time_offset)
kparams = {}
client.add_param(kparams, 'entryId', entry_id)
client.add_param(kparams, 'sourceEntryId', source_entry_id)
client.add_param(kparams, 'timeOffset', time_offset)
perform_request('media','updateThumbnailFromSourceEntry',kparams,false)
end
|
#update_thumbnail_from_url(entry_id, url) ⇒ Object
102
103
104
105
106
107
|
# File 'lib/kaltura/service/media_service.rb', line 102
def update_thumbnail_from_url(entry_id, url)
kparams = {}
client.add_param(kparams, 'entryId', entry_id)
client.add_param(kparams, 'url', url)
perform_request('media','updateThumbnailFromUrl',kparams,false)
end
|
#update_thumbnail_jpeg(entry_id, file_data) ⇒ Object
95
96
97
98
99
100
|
# File 'lib/kaltura/service/media_service.rb', line 95
def update_thumbnail_jpeg(entry_id, file_data)
kparams = {}
client.add_param(kparams, 'entryId', entry_id)
client.add_param(kparams, 'fileData', file_data)
perform_request('media','updateThumbnailJpeg',kparams,false)
end
|
#upload(file_data) ⇒ Object
74
75
76
77
78
|
# File 'lib/kaltura/service/media_service.rb', line 74
def upload(file_data)
kparams = {}
client.add_param(kparams, 'fileData', file_data)
perform_request('media','upload',kparams,false)
end
|