kaltura-client 3.3.0 → 14.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +23 -23
- data/lib/kaltura_client.rb +2054 -1860
- data/lib/kaltura_client_base.rb +4 -1
- data/lib/kaltura_enums.rb +612 -36
- data/lib/kaltura_plugins/kaltura_activiti_business_process_notification_client_plugin.rb +96 -0
- data/lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb +46 -17
- data/lib/kaltura_plugins/kaltura_admin_console_client_plugin.rb +61 -251
- data/lib/kaltura_plugins/kaltura_annotation_client_plugin.rb +131 -60
- data/lib/kaltura_plugins/kaltura_aspera_client_plugin.rb +62 -0
- data/lib/kaltura_plugins/kaltura_attachment_client_plugin.rb +83 -55
- data/lib/kaltura_plugins/kaltura_audit_client_plugin.rb +613 -0
- data/lib/kaltura_plugins/kaltura_avn_distribution_client_plugin.rb +109 -0
- data/lib/kaltura_plugins/kaltura_bpm_event_notification_integration_client_plugin.rb +61 -0
- data/lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb +17 -19
- data/lib/kaltura_plugins/kaltura_bulk_upload_csv_client_plugin.rb +7 -6
- data/lib/kaltura_plugins/kaltura_bulk_upload_filter_client_plugin.rb +33 -13
- data/lib/kaltura_plugins/kaltura_bulk_upload_xml_client_plugin.rb +1 -2
- data/lib/kaltura_plugins/kaltura_business_process_notification_client_plugin.rb +545 -0
- data/lib/kaltura_plugins/kaltura_caption_client_plugin.rb +235 -114
- data/lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb +86 -29
- data/lib/kaltura_plugins/kaltura_cielo24client_plugin.rb +39 -17
- data/lib/kaltura_plugins/kaltura_code_cue_point_client_plugin.rb +49 -18
- data/lib/kaltura_plugins/kaltura_comcast_mrss_distribution_client_plugin.rb +163 -0
- data/lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb +846 -439
- data/lib/kaltura_plugins/kaltura_cross_kaltura_distribution_client_plugin.rb +232 -0
- data/lib/kaltura_plugins/kaltura_cue_point_client_plugin.rb +229 -74
- data/lib/kaltura_plugins/kaltura_dailymotion_distribution_client_plugin.rb +199 -0
- data/lib/kaltura_plugins/kaltura_document_client_plugin.rb +140 -97
- data/lib/kaltura_plugins/kaltura_double_click_distribution_client_plugin.rb +142 -0
- data/lib/kaltura_plugins/kaltura_drm_client_plugin.rb +635 -0
- data/lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb +485 -196
- data/lib/kaltura_plugins/kaltura_drop_folder_xml_bulk_upload_client_plugin.rb +19 -1
- data/lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb +1228 -0
- data/lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb +178 -89
- data/lib/kaltura_plugins/kaltura_event_cue_point_client_plugin.rb +10 -4
- data/lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb +205 -95
- data/lib/kaltura_plugins/kaltura_external_media_client_plugin.rb +43 -32
- data/lib/kaltura_plugins/kaltura_facebook_distribution_client_plugin.rb +183 -0
- data/lib/kaltura_plugins/kaltura_fairplay_client_plugin.rb +62 -0
- data/lib/kaltura_plugins/kaltura_feed_drop_folder_client_plugin.rb +40 -16
- data/lib/kaltura_plugins/kaltura_file_sync_client_plugin.rb +182 -67
- data/lib/kaltura_plugins/kaltura_freewheel_distribution_client_plugin.rb +157 -0
- data/lib/kaltura_plugins/kaltura_freewheel_generic_distribution_client_plugin.rb +172 -0
- data/lib/kaltura_plugins/kaltura_ftp_distribution_client_plugin.rb +258 -0
- data/lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb +154 -102
- data/lib/kaltura_plugins/kaltura_hulu_distribution_client_plugin.rb +213 -0
- data/lib/kaltura_plugins/kaltura_idetic_distribution_client_plugin.rb +131 -0
- data/lib/kaltura_plugins/kaltura_integration_client_plugin.rb +19 -10
- data/lib/kaltura_plugins/kaltura_kaltura_internal_tools_client_plugin.rb +1 -87
- data/lib/kaltura_plugins/kaltura_kontiki_client_plugin.rb +19 -10
- data/lib/kaltura_plugins/kaltura_like_client_plugin.rb +45 -25
- data/lib/kaltura_plugins/kaltura_metadata_client_plugin.rb +435 -213
- data/lib/kaltura_plugins/kaltura_metro_pcs_distribution_client_plugin.rb +155 -0
- data/lib/kaltura_plugins/kaltura_msn_distribution_client_plugin.rb +186 -0
- data/lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb +482 -0
- data/lib/kaltura_plugins/kaltura_poll_client_plugin.rb +116 -0
- data/lib/kaltura_plugins/kaltura_push_notification_client_plugin.rb +154 -0
- data/lib/kaltura_plugins/kaltura_quick_play_distribution_client_plugin.rb +187 -0
- data/lib/kaltura_plugins/kaltura_quiz_client_plugin.rb +155 -58
- data/lib/kaltura_plugins/kaltura_schedule_bulk_upload_client_plugin.rb +107 -0
- data/lib/kaltura_plugins/kaltura_schedule_client_plugin.rb +1580 -0
- data/lib/kaltura_plugins/kaltura_schedule_drop_folder_client_plugin.rb +52 -0
- data/lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb +277 -71
- data/lib/kaltura_plugins/kaltura_scheduled_task_content_distribution_client_plugin.rb +4 -3
- data/lib/kaltura_plugins/kaltura_scheduled_task_event_notification_client_plugin.rb +4 -3
- data/lib/kaltura_plugins/kaltura_scheduled_task_metadata_client_plugin.rb +10 -7
- data/lib/kaltura_plugins/kaltura_short_link_client_plugin.rb +113 -66
- data/lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb +81 -517
- data/lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb +63 -30
- data/lib/kaltura_plugins/kaltura_thumb_cue_point_client_plugin.rb +40 -16
- data/lib/kaltura_plugins/kaltura_transcript_client_plugin.rb +44 -8
- data/lib/kaltura_plugins/kaltura_unicorn_distribution_client_plugin.rb +212 -0
- data/lib/kaltura_plugins/kaltura_var_console_client_plugin.rb +75 -74
- data/lib/kaltura_plugins/kaltura_velocix_client_plugin.rb +10 -4
- data/lib/kaltura_plugins/kaltura_view_history_client_plugin.rb +112 -0
- data/lib/kaltura_plugins/kaltura_virus_scan_client_plugin.rb +119 -59
- data/lib/kaltura_plugins/kaltura_voicebase_client_plugin.rb +34 -19
- data/lib/kaltura_plugins/kaltura_webex_drop_folder_client_plugin.rb +207 -0
- data/lib/kaltura_plugins/kaltura_widevine_client_plugin.rb +299 -0
- data/lib/kaltura_plugins/kaltura_wowza_client_plugin.rb +22 -13
- data/lib/kaltura_plugins/kaltura_yahoo_distribution_client_plugin.rb +155 -0
- data/lib/kaltura_plugins/kaltura_you_tube_distribution_client_plugin.rb +382 -0
- data/lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb +219 -0
- data/lib/kaltura_types.rb +10305 -4858
- data/test/access_control_service_test.rb +43 -20
- data/test/base_entry_service_test.rb +57 -67
- data/test/configuration_test.rb +2 -34
- data/test/cue_point_service_test.rb +1 -1
- data/test/data_service_test.rb +19 -5
- data/test/document_service_test.rb +1 -1
- data/test/media_service_test.rb +296 -296
- data/test/metadata_profile_service_test.rb +1 -1
- metadata +52 -21
@@ -0,0 +1,116 @@
|
|
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-2019 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
|
+
|
33
|
+
# Poll service
|
34
|
+
# The poll service works against the cache entirely no DB instance should be used here
|
35
|
+
class KalturaPollService < KalturaServiceBase
|
36
|
+
def initialize(client)
|
37
|
+
super(client)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Add Action
|
41
|
+
# @return [string]
|
42
|
+
def add(poll_type='SINGLE_ANONYMOUS')
|
43
|
+
kparams = {}
|
44
|
+
client.add_param(kparams, 'pollType', poll_type)
|
45
|
+
client.queue_service_action_call('poll_poll', 'add', 'string', kparams)
|
46
|
+
if (client.is_multirequest)
|
47
|
+
return nil
|
48
|
+
end
|
49
|
+
return client.do_queue()
|
50
|
+
end
|
51
|
+
|
52
|
+
# Vote Action
|
53
|
+
# @return [string]
|
54
|
+
def get_vote(poll_id, user_id)
|
55
|
+
kparams = {}
|
56
|
+
client.add_param(kparams, 'pollId', poll_id)
|
57
|
+
client.add_param(kparams, 'userId', user_id)
|
58
|
+
client.queue_service_action_call('poll_poll', 'getVote', 'string', kparams)
|
59
|
+
if (client.is_multirequest)
|
60
|
+
return nil
|
61
|
+
end
|
62
|
+
return client.do_queue()
|
63
|
+
end
|
64
|
+
|
65
|
+
# Get Votes Action
|
66
|
+
# @return [string]
|
67
|
+
def get_votes(poll_id, answer_ids)
|
68
|
+
kparams = {}
|
69
|
+
client.add_param(kparams, 'pollId', poll_id)
|
70
|
+
client.add_param(kparams, 'answerIds', answer_ids)
|
71
|
+
client.queue_service_action_call('poll_poll', 'getVotes', 'string', kparams)
|
72
|
+
if (client.is_multirequest)
|
73
|
+
return nil
|
74
|
+
end
|
75
|
+
return client.do_queue()
|
76
|
+
end
|
77
|
+
|
78
|
+
# Get resetVotes Action
|
79
|
+
# @return []
|
80
|
+
def reset_votes(poll_id)
|
81
|
+
kparams = {}
|
82
|
+
client.add_param(kparams, 'pollId', poll_id)
|
83
|
+
client.queue_service_action_call('poll_poll', 'resetVotes', '', kparams)
|
84
|
+
if (client.is_multirequest)
|
85
|
+
return nil
|
86
|
+
end
|
87
|
+
return client.do_queue()
|
88
|
+
end
|
89
|
+
|
90
|
+
# Vote Action
|
91
|
+
# @return [string]
|
92
|
+
def vote(poll_id, user_id, answer_ids)
|
93
|
+
kparams = {}
|
94
|
+
client.add_param(kparams, 'pollId', poll_id)
|
95
|
+
client.add_param(kparams, 'userId', user_id)
|
96
|
+
client.add_param(kparams, 'answerIds', answer_ids)
|
97
|
+
client.queue_service_action_call('poll_poll', 'vote', 'string', kparams)
|
98
|
+
if (client.is_multirequest)
|
99
|
+
return nil
|
100
|
+
end
|
101
|
+
return client.do_queue()
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
class KalturaClient < KalturaClientBase
|
106
|
+
attr_reader :poll_service
|
107
|
+
def poll_service
|
108
|
+
if (@poll_service == nil)
|
109
|
+
@poll_service = KalturaPollService.new(self)
|
110
|
+
end
|
111
|
+
return @poll_service
|
112
|
+
end
|
113
|
+
|
114
|
+
end
|
115
|
+
|
116
|
+
end
|
@@ -0,0 +1,154 @@
|
|
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-2019 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_event_notification_client_plugin.rb'
|
30
|
+
|
31
|
+
module Kaltura
|
32
|
+
|
33
|
+
class KalturaPushNotificationCommandType
|
34
|
+
CLEAR_QUEUE = "CLEAR_QUEUE"
|
35
|
+
end
|
36
|
+
|
37
|
+
class KalturaPushNotificationTemplateOrderBy
|
38
|
+
CREATED_AT_ASC = "+createdAt"
|
39
|
+
ID_ASC = "+id"
|
40
|
+
UPDATED_AT_ASC = "+updatedAt"
|
41
|
+
CREATED_AT_DESC = "-createdAt"
|
42
|
+
ID_DESC = "-id"
|
43
|
+
UPDATED_AT_DESC = "-updatedAt"
|
44
|
+
end
|
45
|
+
|
46
|
+
class KalturaPushEventNotificationParameter < KalturaEventNotificationParameter
|
47
|
+
attr_accessor :queue_key_token
|
48
|
+
|
49
|
+
|
50
|
+
def from_xml(xml_element)
|
51
|
+
super
|
52
|
+
if xml_element.elements['queueKeyToken'] != nil
|
53
|
+
self.queue_key_token = xml_element.elements['queueKeyToken'].text
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
class KalturaPushNotificationData < KalturaObjectBase
|
60
|
+
attr_accessor :queue_name
|
61
|
+
attr_accessor :queue_key
|
62
|
+
attr_accessor :url
|
63
|
+
|
64
|
+
|
65
|
+
def from_xml(xml_element)
|
66
|
+
super
|
67
|
+
if xml_element.elements['queueName'] != nil
|
68
|
+
self.queue_name = xml_element.elements['queueName'].text
|
69
|
+
end
|
70
|
+
if xml_element.elements['queueKey'] != nil
|
71
|
+
self.queue_key = xml_element.elements['queueKey'].text
|
72
|
+
end
|
73
|
+
if xml_element.elements['url'] != nil
|
74
|
+
self.url = xml_element.elements['url'].text
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
79
|
+
|
80
|
+
# Object which contains contextual entry-related data.
|
81
|
+
class KalturaPushNotificationParams < KalturaObjectBase
|
82
|
+
# User params
|
83
|
+
attr_accessor :user_params
|
84
|
+
|
85
|
+
|
86
|
+
def from_xml(xml_element)
|
87
|
+
super
|
88
|
+
if xml_element.elements['userParams'] != nil
|
89
|
+
self.user_params = KalturaClientBase.object_from_xml(xml_element.elements['userParams'], 'KalturaPushEventNotificationParameter')
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
end
|
94
|
+
|
95
|
+
class KalturaPushNotificationTemplate < KalturaEventNotificationTemplate
|
96
|
+
# Define the content dynamic parameters
|
97
|
+
attr_accessor :queue_name_parameters
|
98
|
+
# Define the content dynamic parameters
|
99
|
+
attr_accessor :queue_key_parameters
|
100
|
+
# Kaltura API object type
|
101
|
+
attr_accessor :api_object_type
|
102
|
+
# Kaltura Object format
|
103
|
+
attr_accessor :object_format
|
104
|
+
# Kaltura response-profile id
|
105
|
+
attr_accessor :response_profile_id
|
106
|
+
|
107
|
+
def object_format=(val)
|
108
|
+
@object_format = val.to_i
|
109
|
+
end
|
110
|
+
def response_profile_id=(val)
|
111
|
+
@response_profile_id = val.to_i
|
112
|
+
end
|
113
|
+
|
114
|
+
def from_xml(xml_element)
|
115
|
+
super
|
116
|
+
if xml_element.elements['queueNameParameters'] != nil
|
117
|
+
self.queue_name_parameters = KalturaClientBase.object_from_xml(xml_element.elements['queueNameParameters'], 'KalturaPushEventNotificationParameter')
|
118
|
+
end
|
119
|
+
if xml_element.elements['queueKeyParameters'] != nil
|
120
|
+
self.queue_key_parameters = KalturaClientBase.object_from_xml(xml_element.elements['queueKeyParameters'], 'KalturaPushEventNotificationParameter')
|
121
|
+
end
|
122
|
+
if xml_element.elements['apiObjectType'] != nil
|
123
|
+
self.api_object_type = xml_element.elements['apiObjectType'].text
|
124
|
+
end
|
125
|
+
if xml_element.elements['objectFormat'] != nil
|
126
|
+
self.object_format = xml_element.elements['objectFormat'].text
|
127
|
+
end
|
128
|
+
if xml_element.elements['responseProfileId'] != nil
|
129
|
+
self.response_profile_id = xml_element.elements['responseProfileId'].text
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
end
|
134
|
+
|
135
|
+
class KalturaPushNotificationTemplateBaseFilter < KalturaEventNotificationTemplateFilter
|
136
|
+
|
137
|
+
|
138
|
+
def from_xml(xml_element)
|
139
|
+
super
|
140
|
+
end
|
141
|
+
|
142
|
+
end
|
143
|
+
|
144
|
+
class KalturaPushNotificationTemplateFilter < KalturaPushNotificationTemplateBaseFilter
|
145
|
+
|
146
|
+
|
147
|
+
def from_xml(xml_element)
|
148
|
+
super
|
149
|
+
end
|
150
|
+
|
151
|
+
end
|
152
|
+
|
153
|
+
|
154
|
+
end
|
@@ -0,0 +1,187 @@
|
|
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-2019 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_content_distribution_client_plugin.rb'
|
30
|
+
|
31
|
+
module Kaltura
|
32
|
+
|
33
|
+
class KalturaQuickPlayDistributionProfileOrderBy
|
34
|
+
CREATED_AT_ASC = "+createdAt"
|
35
|
+
UPDATED_AT_ASC = "+updatedAt"
|
36
|
+
CREATED_AT_DESC = "-createdAt"
|
37
|
+
UPDATED_AT_DESC = "-updatedAt"
|
38
|
+
end
|
39
|
+
|
40
|
+
class KalturaQuickPlayDistributionProviderOrderBy
|
41
|
+
end
|
42
|
+
|
43
|
+
class KalturaQuickPlayDistributionProvider < KalturaDistributionProvider
|
44
|
+
|
45
|
+
|
46
|
+
def from_xml(xml_element)
|
47
|
+
super
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
class KalturaQuickPlayDistributionJobProviderData < KalturaConfigurableDistributionJobProviderData
|
53
|
+
attr_accessor :xml
|
54
|
+
attr_accessor :video_file_paths
|
55
|
+
attr_accessor :thumbnail_file_paths
|
56
|
+
|
57
|
+
|
58
|
+
def from_xml(xml_element)
|
59
|
+
super
|
60
|
+
if xml_element.elements['xml'] != nil
|
61
|
+
self.xml = xml_element.elements['xml'].text
|
62
|
+
end
|
63
|
+
if xml_element.elements['videoFilePaths'] != nil
|
64
|
+
self.video_file_paths = KalturaClientBase.object_from_xml(xml_element.elements['videoFilePaths'], 'KalturaString')
|
65
|
+
end
|
66
|
+
if xml_element.elements['thumbnailFilePaths'] != nil
|
67
|
+
self.thumbnail_file_paths = KalturaClientBase.object_from_xml(xml_element.elements['thumbnailFilePaths'], 'KalturaString')
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
class KalturaQuickPlayDistributionProfile < KalturaConfigurableDistributionProfile
|
74
|
+
attr_accessor :sftp_host
|
75
|
+
attr_accessor :sftp_login
|
76
|
+
attr_accessor :sftp_pass
|
77
|
+
attr_accessor :sftp_base_path
|
78
|
+
attr_accessor :channel_title
|
79
|
+
attr_accessor :channel_link
|
80
|
+
attr_accessor :channel_description
|
81
|
+
attr_accessor :channel_managing_editor
|
82
|
+
attr_accessor :channel_language
|
83
|
+
attr_accessor :channel_image_title
|
84
|
+
attr_accessor :channel_image_width
|
85
|
+
attr_accessor :channel_image_height
|
86
|
+
attr_accessor :channel_image_link
|
87
|
+
attr_accessor :channel_image_url
|
88
|
+
attr_accessor :channel_copyright
|
89
|
+
attr_accessor :channel_generator
|
90
|
+
attr_accessor :channel_rating
|
91
|
+
|
92
|
+
|
93
|
+
def from_xml(xml_element)
|
94
|
+
super
|
95
|
+
if xml_element.elements['sftpHost'] != nil
|
96
|
+
self.sftp_host = xml_element.elements['sftpHost'].text
|
97
|
+
end
|
98
|
+
if xml_element.elements['sftpLogin'] != nil
|
99
|
+
self.sftp_login = xml_element.elements['sftpLogin'].text
|
100
|
+
end
|
101
|
+
if xml_element.elements['sftpPass'] != nil
|
102
|
+
self.sftp_pass = xml_element.elements['sftpPass'].text
|
103
|
+
end
|
104
|
+
if xml_element.elements['sftpBasePath'] != nil
|
105
|
+
self.sftp_base_path = xml_element.elements['sftpBasePath'].text
|
106
|
+
end
|
107
|
+
if xml_element.elements['channelTitle'] != nil
|
108
|
+
self.channel_title = xml_element.elements['channelTitle'].text
|
109
|
+
end
|
110
|
+
if xml_element.elements['channelLink'] != nil
|
111
|
+
self.channel_link = xml_element.elements['channelLink'].text
|
112
|
+
end
|
113
|
+
if xml_element.elements['channelDescription'] != nil
|
114
|
+
self.channel_description = xml_element.elements['channelDescription'].text
|
115
|
+
end
|
116
|
+
if xml_element.elements['channelManagingEditor'] != nil
|
117
|
+
self.channel_managing_editor = xml_element.elements['channelManagingEditor'].text
|
118
|
+
end
|
119
|
+
if xml_element.elements['channelLanguage'] != nil
|
120
|
+
self.channel_language = xml_element.elements['channelLanguage'].text
|
121
|
+
end
|
122
|
+
if xml_element.elements['channelImageTitle'] != nil
|
123
|
+
self.channel_image_title = xml_element.elements['channelImageTitle'].text
|
124
|
+
end
|
125
|
+
if xml_element.elements['channelImageWidth'] != nil
|
126
|
+
self.channel_image_width = xml_element.elements['channelImageWidth'].text
|
127
|
+
end
|
128
|
+
if xml_element.elements['channelImageHeight'] != nil
|
129
|
+
self.channel_image_height = xml_element.elements['channelImageHeight'].text
|
130
|
+
end
|
131
|
+
if xml_element.elements['channelImageLink'] != nil
|
132
|
+
self.channel_image_link = xml_element.elements['channelImageLink'].text
|
133
|
+
end
|
134
|
+
if xml_element.elements['channelImageUrl'] != nil
|
135
|
+
self.channel_image_url = xml_element.elements['channelImageUrl'].text
|
136
|
+
end
|
137
|
+
if xml_element.elements['channelCopyright'] != nil
|
138
|
+
self.channel_copyright = xml_element.elements['channelCopyright'].text
|
139
|
+
end
|
140
|
+
if xml_element.elements['channelGenerator'] != nil
|
141
|
+
self.channel_generator = xml_element.elements['channelGenerator'].text
|
142
|
+
end
|
143
|
+
if xml_element.elements['channelRating'] != nil
|
144
|
+
self.channel_rating = xml_element.elements['channelRating'].text
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
end
|
149
|
+
|
150
|
+
class KalturaQuickPlayDistributionProviderBaseFilter < KalturaDistributionProviderFilter
|
151
|
+
|
152
|
+
|
153
|
+
def from_xml(xml_element)
|
154
|
+
super
|
155
|
+
end
|
156
|
+
|
157
|
+
end
|
158
|
+
|
159
|
+
class KalturaQuickPlayDistributionProviderFilter < KalturaQuickPlayDistributionProviderBaseFilter
|
160
|
+
|
161
|
+
|
162
|
+
def from_xml(xml_element)
|
163
|
+
super
|
164
|
+
end
|
165
|
+
|
166
|
+
end
|
167
|
+
|
168
|
+
class KalturaQuickPlayDistributionProfileBaseFilter < KalturaConfigurableDistributionProfileFilter
|
169
|
+
|
170
|
+
|
171
|
+
def from_xml(xml_element)
|
172
|
+
super
|
173
|
+
end
|
174
|
+
|
175
|
+
end
|
176
|
+
|
177
|
+
class KalturaQuickPlayDistributionProfileFilter < KalturaQuickPlayDistributionProfileBaseFilter
|
178
|
+
|
179
|
+
|
180
|
+
def from_xml(xml_element)
|
181
|
+
super
|
182
|
+
end
|
183
|
+
|
184
|
+
end
|
185
|
+
|
186
|
+
|
187
|
+
end
|