kaltura-client 15.20.0 → 16.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README +1 -1
- data/lib/kaltura_client.rb +40 -2
- data/lib/kaltura_enums.rb +6 -0
- data/lib/kaltura_plugins/kaltura_capture_space_client_plugin.rb +36 -0
- data/lib/kaltura_plugins/kaltura_conference_client_plugin.rb +152 -0
- data/lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb +1 -0
- data/lib/kaltura_plugins/kaltura_live_cluster_client_plugin.rb +60 -0
- data/lib/kaltura_plugins/kaltura_podcast_distribution_client_plugin.rb +140 -0
- data/lib/kaltura_plugins/kaltura_rating_client_plugin.rb +165 -0
- data/lib/kaltura_plugins/kaltura_reach_client_plugin.rb +2 -0
- data/lib/kaltura_plugins/kaltura_registration_client_plugin.rb +51 -0
- data/lib/kaltura_plugins/kaltura_sip_client_plugin.rb +160 -0
- data/lib/kaltura_plugins/kaltura_sso_client_plugin.rb +282 -0
- data/lib/kaltura_plugins/kaltura_thumbnail_client_plugin.rb +63 -0
- data/lib/kaltura_plugins/kaltura_vendor_client_plugin.rb +180 -0
- metadata +11 -1
@@ -0,0 +1,63 @@
|
|
1
|
+
# ===================================================================================================
|
2
|
+
# _ __ _ _
|
3
|
+
# | |/ /__ _| | |_ _ _ _ _ __ _
|
4
|
+
# | ' </ _` | | _| || | '_/ _` |
|
5
|
+
# |_|\_\__,_|_|\__|\_,_|_| \__,_|
|
6
|
+
#
|
7
|
+
# This file is part of the Kaltura Collaborative Media Suite which allows users
|
8
|
+
# to do with audio, video, and animation what Wiki platfroms allow them to do with
|
9
|
+
# text.
|
10
|
+
#
|
11
|
+
# Copyright (C) 2006-2020 Kaltura Inc.
|
12
|
+
#
|
13
|
+
# This program is free software: you can redistribute it and/or modify
|
14
|
+
# it under the terms of the GNU Affero General Public License as
|
15
|
+
# published by the Free Software Foundation, either version 3 of the
|
16
|
+
# License, or (at your option) any later version.
|
17
|
+
#
|
18
|
+
# This program is distributed in the hope that it will be useful,
|
19
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21
|
+
# GNU Affero General Public License for more details.
|
22
|
+
#
|
23
|
+
# You should have received a copy of the GNU Affero General Public License
|
24
|
+
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
25
|
+
#
|
26
|
+
# @ignore
|
27
|
+
# ===================================================================================================
|
28
|
+
require 'kaltura_client.rb'
|
29
|
+
require File.dirname(__FILE__) + '/kaltura_file_sync_client_plugin.rb'
|
30
|
+
|
31
|
+
module Kaltura
|
32
|
+
|
33
|
+
|
34
|
+
class KalturaThumbnailService < KalturaServiceBase
|
35
|
+
def initialize(client)
|
36
|
+
super(client)
|
37
|
+
end
|
38
|
+
|
39
|
+
# Retrieves a thumbnail according to the required transformation
|
40
|
+
# @return []
|
41
|
+
def transform(transform_string)
|
42
|
+
kparams = {}
|
43
|
+
client.add_param(kparams, 'transformString', transform_string)
|
44
|
+
client.queue_service_action_call('thumbnail_thumbnail', 'transform', '', kparams)
|
45
|
+
if (client.is_multirequest)
|
46
|
+
return nil
|
47
|
+
end
|
48
|
+
return client.do_queue()
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
class KalturaClient < KalturaClientBase
|
53
|
+
attr_reader :thumbnail_service
|
54
|
+
def thumbnail_service
|
55
|
+
if (@thumbnail_service == nil)
|
56
|
+
@thumbnail_service = KalturaThumbnailService.new(self)
|
57
|
+
end
|
58
|
+
return @thumbnail_service
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
@@ -0,0 +1,180 @@
|
|
1
|
+
# ===================================================================================================
|
2
|
+
# _ __ _ _
|
3
|
+
# | |/ /__ _| | |_ _ _ _ _ __ _
|
4
|
+
# | ' </ _` | | _| || | '_/ _` |
|
5
|
+
# |_|\_\__,_|_|\__|\_,_|_| \__,_|
|
6
|
+
#
|
7
|
+
# This file is part of the Kaltura Collaborative Media Suite which allows users
|
8
|
+
# to do with audio, video, and animation what Wiki platfroms allow them to do with
|
9
|
+
# text.
|
10
|
+
#
|
11
|
+
# Copyright (C) 2006-2020 Kaltura Inc.
|
12
|
+
#
|
13
|
+
# This program is free software: you can redistribute it and/or modify
|
14
|
+
# it under the terms of the GNU Affero General Public License as
|
15
|
+
# published by the Free Software Foundation, either version 3 of the
|
16
|
+
# License, or (at your option) any later version.
|
17
|
+
#
|
18
|
+
# This program is distributed in the hope that it will be useful,
|
19
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21
|
+
# GNU Affero General Public License for more details.
|
22
|
+
#
|
23
|
+
# You should have received a copy of the GNU Affero General Public License
|
24
|
+
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
25
|
+
#
|
26
|
+
# @ignore
|
27
|
+
# ===================================================================================================
|
28
|
+
require 'kaltura_client.rb'
|
29
|
+
|
30
|
+
module Kaltura
|
31
|
+
|
32
|
+
class KalturaHandleParticipantsMode
|
33
|
+
ADD_AS_CO_PUBLISHERS = 0
|
34
|
+
ADD_AS_CO_VIEWERS = 1
|
35
|
+
IGNORE = 2
|
36
|
+
end
|
37
|
+
|
38
|
+
class KalturaZoomUsersMatching
|
39
|
+
DO_NOT_MODIFY = 0
|
40
|
+
ADD_POSTFIX = 1
|
41
|
+
REMOVE_POSTFIX = 2
|
42
|
+
end
|
43
|
+
|
44
|
+
class KalturaZoomIntegrationSetting < KalturaObjectBase
|
45
|
+
attr_accessor :default_user_id
|
46
|
+
attr_accessor :zoom_category
|
47
|
+
attr_accessor :account_id
|
48
|
+
attr_accessor :enable_recording_upload
|
49
|
+
attr_accessor :create_user_if_not_exist
|
50
|
+
attr_accessor :handle_participant_mode
|
51
|
+
attr_accessor :zoom_user_matching_mode
|
52
|
+
attr_accessor :zoom_user_postfix
|
53
|
+
attr_accessor :zoom_webinar_category
|
54
|
+
attr_accessor :enable_webinar_uploads
|
55
|
+
|
56
|
+
def enable_recording_upload=(val)
|
57
|
+
@enable_recording_upload = val.to_i
|
58
|
+
end
|
59
|
+
def create_user_if_not_exist=(val)
|
60
|
+
@create_user_if_not_exist = val.to_i
|
61
|
+
end
|
62
|
+
def handle_participant_mode=(val)
|
63
|
+
@handle_participant_mode = val.to_i
|
64
|
+
end
|
65
|
+
def zoom_user_matching_mode=(val)
|
66
|
+
@zoom_user_matching_mode = val.to_i
|
67
|
+
end
|
68
|
+
def enable_webinar_uploads=(val)
|
69
|
+
@enable_webinar_uploads = val.to_i
|
70
|
+
end
|
71
|
+
|
72
|
+
def from_xml(xml_element)
|
73
|
+
super
|
74
|
+
if xml_element.elements['defaultUserId'] != nil
|
75
|
+
self.default_user_id = xml_element.elements['defaultUserId'].text
|
76
|
+
end
|
77
|
+
if xml_element.elements['zoomCategory'] != nil
|
78
|
+
self.zoom_category = xml_element.elements['zoomCategory'].text
|
79
|
+
end
|
80
|
+
if xml_element.elements['accountId'] != nil
|
81
|
+
self.account_id = xml_element.elements['accountId'].text
|
82
|
+
end
|
83
|
+
if xml_element.elements['enableRecordingUpload'] != nil
|
84
|
+
self.enable_recording_upload = xml_element.elements['enableRecordingUpload'].text
|
85
|
+
end
|
86
|
+
if xml_element.elements['createUserIfNotExist'] != nil
|
87
|
+
self.create_user_if_not_exist = xml_element.elements['createUserIfNotExist'].text
|
88
|
+
end
|
89
|
+
if xml_element.elements['handleParticipantMode'] != nil
|
90
|
+
self.handle_participant_mode = xml_element.elements['handleParticipantMode'].text
|
91
|
+
end
|
92
|
+
if xml_element.elements['zoomUserMatchingMode'] != nil
|
93
|
+
self.zoom_user_matching_mode = xml_element.elements['zoomUserMatchingMode'].text
|
94
|
+
end
|
95
|
+
if xml_element.elements['zoomUserPostfix'] != nil
|
96
|
+
self.zoom_user_postfix = xml_element.elements['zoomUserPostfix'].text
|
97
|
+
end
|
98
|
+
if xml_element.elements['zoomWebinarCategory'] != nil
|
99
|
+
self.zoom_webinar_category = xml_element.elements['zoomWebinarCategory'].text
|
100
|
+
end
|
101
|
+
if xml_element.elements['enableWebinarUploads'] != nil
|
102
|
+
self.enable_webinar_uploads = xml_element.elements['enableWebinarUploads'].text
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
end
|
107
|
+
|
108
|
+
|
109
|
+
class KalturaZoomVendorService < KalturaServiceBase
|
110
|
+
def initialize(client)
|
111
|
+
super(client)
|
112
|
+
end
|
113
|
+
|
114
|
+
# @return [string]
|
115
|
+
def de_authorization()
|
116
|
+
kparams = {}
|
117
|
+
client.queue_service_action_call('vendor_zoomvendor', 'deAuthorization', 'string', kparams)
|
118
|
+
if (client.is_multirequest)
|
119
|
+
return nil
|
120
|
+
end
|
121
|
+
return client.do_queue()
|
122
|
+
end
|
123
|
+
|
124
|
+
# @return []
|
125
|
+
def fetch_registration_page(tokens_data, iv)
|
126
|
+
kparams = {}
|
127
|
+
client.add_param(kparams, 'tokensData', tokens_data)
|
128
|
+
client.add_param(kparams, 'iv', iv)
|
129
|
+
client.queue_service_action_call('vendor_zoomvendor', 'fetchRegistrationPage', '', kparams)
|
130
|
+
if (client.is_multirequest)
|
131
|
+
return nil
|
132
|
+
end
|
133
|
+
return client.do_queue()
|
134
|
+
end
|
135
|
+
|
136
|
+
# @return [string]
|
137
|
+
def oauth_validation()
|
138
|
+
kparams = {}
|
139
|
+
client.queue_service_action_call('vendor_zoomvendor', 'oauthValidation', 'string', kparams)
|
140
|
+
if (client.is_multirequest)
|
141
|
+
return nil
|
142
|
+
end
|
143
|
+
return client.do_queue()
|
144
|
+
end
|
145
|
+
|
146
|
+
# @return []
|
147
|
+
def recording_complete()
|
148
|
+
kparams = {}
|
149
|
+
client.queue_service_action_call('vendor_zoomvendor', 'recordingComplete', '', kparams)
|
150
|
+
if (client.is_multirequest)
|
151
|
+
return nil
|
152
|
+
end
|
153
|
+
return client.do_queue()
|
154
|
+
end
|
155
|
+
|
156
|
+
# @return [string]
|
157
|
+
def submit_registration(account_id, integration_setting)
|
158
|
+
kparams = {}
|
159
|
+
client.add_param(kparams, 'accountId', account_id)
|
160
|
+
client.add_param(kparams, 'integrationSetting', integration_setting)
|
161
|
+
client.queue_service_action_call('vendor_zoomvendor', 'submitRegistration', 'string', kparams)
|
162
|
+
if (client.is_multirequest)
|
163
|
+
return nil
|
164
|
+
end
|
165
|
+
return client.do_queue()
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
class KalturaClient < KalturaClientBase
|
170
|
+
attr_reader :zoom_vendor_service
|
171
|
+
def zoom_vendor_service
|
172
|
+
if (@zoom_vendor_service == nil)
|
173
|
+
@zoom_vendor_service = KalturaZoomVendorService.new(self)
|
174
|
+
end
|
175
|
+
return @zoom_vendor_service
|
176
|
+
end
|
177
|
+
|
178
|
+
end
|
179
|
+
|
180
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaltura-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 16.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaltura Inc.
|
@@ -55,10 +55,12 @@ files:
|
|
55
55
|
- lib/kaltura_plugins/kaltura_business_process_notification_client_plugin.rb
|
56
56
|
- lib/kaltura_plugins/kaltura_caption_client_plugin.rb
|
57
57
|
- lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb
|
58
|
+
- lib/kaltura_plugins/kaltura_capture_space_client_plugin.rb
|
58
59
|
- lib/kaltura_plugins/kaltura_cielo24client_plugin.rb
|
59
60
|
- lib/kaltura_plugins/kaltura_code_cue_point_client_plugin.rb
|
60
61
|
- lib/kaltura_plugins/kaltura_comcast_mrss_distribution_client_plugin.rb
|
61
62
|
- lib/kaltura_plugins/kaltura_conf_maps_client_plugin.rb
|
63
|
+
- lib/kaltura_plugins/kaltura_conference_client_plugin.rb
|
62
64
|
- lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb
|
63
65
|
- lib/kaltura_plugins/kaltura_cross_kaltura_distribution_client_plugin.rb
|
64
66
|
- lib/kaltura_plugins/kaltura_cue_point_client_plugin.rb
|
@@ -88,15 +90,19 @@ files:
|
|
88
90
|
- lib/kaltura_plugins/kaltura_kaltura_internal_tools_client_plugin.rb
|
89
91
|
- lib/kaltura_plugins/kaltura_kontiki_client_plugin.rb
|
90
92
|
- lib/kaltura_plugins/kaltura_like_client_plugin.rb
|
93
|
+
- lib/kaltura_plugins/kaltura_live_cluster_client_plugin.rb
|
91
94
|
- lib/kaltura_plugins/kaltura_metadata_client_plugin.rb
|
92
95
|
- lib/kaltura_plugins/kaltura_metro_pcs_distribution_client_plugin.rb
|
93
96
|
- lib/kaltura_plugins/kaltura_msn_distribution_client_plugin.rb
|
94
97
|
- lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb
|
98
|
+
- lib/kaltura_plugins/kaltura_podcast_distribution_client_plugin.rb
|
95
99
|
- lib/kaltura_plugins/kaltura_poll_client_plugin.rb
|
96
100
|
- lib/kaltura_plugins/kaltura_push_notification_client_plugin.rb
|
97
101
|
- lib/kaltura_plugins/kaltura_quick_play_distribution_client_plugin.rb
|
98
102
|
- lib/kaltura_plugins/kaltura_quiz_client_plugin.rb
|
103
|
+
- lib/kaltura_plugins/kaltura_rating_client_plugin.rb
|
99
104
|
- lib/kaltura_plugins/kaltura_reach_client_plugin.rb
|
105
|
+
- lib/kaltura_plugins/kaltura_registration_client_plugin.rb
|
100
106
|
- lib/kaltura_plugins/kaltura_schedule_bulk_upload_client_plugin.rb
|
101
107
|
- lib/kaltura_plugins/kaltura_schedule_client_plugin.rb
|
102
108
|
- lib/kaltura_plugins/kaltura_schedule_drop_folder_client_plugin.rb
|
@@ -106,13 +112,17 @@ files:
|
|
106
112
|
- lib/kaltura_plugins/kaltura_scheduled_task_metadata_client_plugin.rb
|
107
113
|
- lib/kaltura_plugins/kaltura_search_history_client_plugin.rb
|
108
114
|
- lib/kaltura_plugins/kaltura_short_link_client_plugin.rb
|
115
|
+
- lib/kaltura_plugins/kaltura_sip_client_plugin.rb
|
116
|
+
- lib/kaltura_plugins/kaltura_sso_client_plugin.rb
|
109
117
|
- lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb
|
110
118
|
- lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb
|
111
119
|
- lib/kaltura_plugins/kaltura_thumb_cue_point_client_plugin.rb
|
120
|
+
- lib/kaltura_plugins/kaltura_thumbnail_client_plugin.rb
|
112
121
|
- lib/kaltura_plugins/kaltura_transcript_client_plugin.rb
|
113
122
|
- lib/kaltura_plugins/kaltura_unicorn_distribution_client_plugin.rb
|
114
123
|
- lib/kaltura_plugins/kaltura_var_console_client_plugin.rb
|
115
124
|
- lib/kaltura_plugins/kaltura_velocix_client_plugin.rb
|
125
|
+
- lib/kaltura_plugins/kaltura_vendor_client_plugin.rb
|
116
126
|
- lib/kaltura_plugins/kaltura_view_history_client_plugin.rb
|
117
127
|
- lib/kaltura_plugins/kaltura_virus_scan_client_plugin.rb
|
118
128
|
- lib/kaltura_plugins/kaltura_voicebase_client_plugin.rb
|