kaltura-client 15.17.0 → 16.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6cd99fe7092b43a5b335ea2f636b6c8e2a2454247afcd61dd28ec3d0bbb7fac
4
- data.tar.gz: e24af7fd275a1fcb37e3405d42c075feade0f982f23ff3815c2b34c118f9a7ee
3
+ metadata.gz: b3ecc027bf2ab1e47a369193f1321d9f91b2de970a6811daf06c01618ec14ffb
4
+ data.tar.gz: 0e993fdde1919f5b4417ac1a1c68baa08a5e4fa68987a6589fea4fc1221dc879
5
5
  SHA512:
6
- metadata.gz: 5de5583800cf931a09988bb4dce06badc1150ade94513d534d07a4c04f1a504360acbac39b8091b76492720f3c2e58f90dfcf486857bbdb57b51d061bbb5799f
7
- data.tar.gz: f46660ab7f1289cfb9cd0ff9780fc54fe4783a75bdc01d9627a4f080d22a2dd15d24bf60161da66b6db589ba66ab5dfddf836b34fd203f8f5c8e2f780f03f44e
6
+ metadata.gz: 604a4034540c8ff6fdda591e91ee2e19fac493943f88c0b98a471b08ad0230f35a25eddb79f4aa49053f8d81976fb9cac7d60e7d523342cc0bdb711140885ec5
7
+ data.tar.gz: e327c9811b6251ae97e9a76cf20ae12b5e1350b3a2dc9c2ffa887f5e6a5157e3435e6c5f9604f84e6724a8a066612a1876cfcd114af4dcdf589c19f51876260b
data/README CHANGED
@@ -1,5 +1,5 @@
1
1
  Kaltura Ruby API Client Library.
2
- Compatible with Kaltura server version 15.17.0 and above.
2
+ Compatible with Kaltura server version 16.4.0 and above.
3
3
 
4
4
  This source contains:
5
5
  - The Kaltura client library (kaltura_client_base.rb)
@@ -2479,6 +2479,19 @@ module Kaltura
2479
2479
  return client.do_queue()
2480
2480
  end
2481
2481
 
2482
+ # Allocates a conference room or returns ones that has already been allocated
2483
+ # @return [KalturaRoomDetails]
2484
+ def allocate_conference_room(entry_id, env='')
2485
+ kparams = {}
2486
+ client.add_param(kparams, 'entryId', entry_id)
2487
+ client.add_param(kparams, 'env', env)
2488
+ client.queue_service_action_call('livestream', 'allocateConferenceRoom', 'KalturaRoomDetails', kparams)
2489
+ if (client.is_multirequest)
2490
+ return nil
2491
+ end
2492
+ return client.do_queue()
2493
+ end
2494
+
2482
2495
  # Append recorded video to live entry
2483
2496
  # @return [KalturaLiveEntry]
2484
2497
  def append_recording(entry_id, asset_id, media_server_index, resource, duration, is_last_chunk=false)
@@ -2565,6 +2578,19 @@ module Kaltura
2565
2578
  return client.do_queue()
2566
2579
  end
2567
2580
 
2581
+ # When the conf is finished this API should be called.
2582
+ # @return [bool]
2583
+ def finish_conf(entry_id, server_node_id=KalturaNotImplemented)
2584
+ kparams = {}
2585
+ client.add_param(kparams, 'entryId', entry_id)
2586
+ client.add_param(kparams, 'serverNodeId', server_node_id)
2587
+ client.queue_service_action_call('livestream', 'finishConf', 'bool', kparams)
2588
+ if (client.is_multirequest)
2589
+ return nil
2590
+ end
2591
+ return client.do_queue()
2592
+ end
2593
+
2568
2594
  # Get live stream entry by ID.
2569
2595
  # @return [KalturaLiveStreamEntry]
2570
2596
  def get(entry_id, version=-1)
@@ -2628,6 +2654,18 @@ module Kaltura
2628
2654
  return client.do_queue()
2629
2655
  end
2630
2656
 
2657
+ # Mark that the conference has actually started
2658
+ # @return [bool]
2659
+ def register_conf(entry_id)
2660
+ kparams = {}
2661
+ client.add_param(kparams, 'entryId', entry_id)
2662
+ client.queue_service_action_call('livestream', 'registerConf', 'bool', kparams)
2663
+ if (client.is_multirequest)
2664
+ return nil
2665
+ end
2666
+ return client.do_queue()
2667
+ end
2668
+
2631
2669
  # Register media server to live entry
2632
2670
  # @return [KalturaLiveEntry]
2633
2671
  def register_media_server(entry_id, hostname, media_server_index, application_name=KalturaNotImplemented, live_entry_status=1, should_create_recorded_entry=true)
@@ -5727,6 +5765,18 @@ module Kaltura
5727
5765
  end
5728
5766
  return client.do_queue()
5729
5767
  end
5768
+
5769
+ # Validate hash key
5770
+ # @return [KalturaAuthentication]
5771
+ def validate_hash_key(hash_key)
5772
+ kparams = {}
5773
+ client.add_param(kparams, 'hashKey', hash_key)
5774
+ client.queue_service_action_call('user', 'validateHashKey', 'KalturaAuthentication', kparams)
5775
+ if (client.is_multirequest)
5776
+ return nil
5777
+ end
5778
+ return client.do_queue()
5779
+ end
5730
5780
  end
5731
5781
 
5732
5782
  # widget service for full widget management
@@ -6243,8 +6293,8 @@ module Kaltura
6243
6293
 
6244
6294
  def initialize(client)
6245
6295
  super(client)
6246
- self.client_tag = 'ruby:20-02-17'
6247
- self.api_version = '15.17.0'
6296
+ self.client_tag = 'ruby:20-06-15'
6297
+ self.api_version = '16.4.0'
6248
6298
  end
6249
6299
 
6250
6300
  def client_tag=(value)
@@ -448,6 +448,7 @@ module Kaltura
448
448
  STATIC_LIST = 3
449
449
  DYNAMIC = 10
450
450
  EXTERNAL = 101
451
+ PATH = 102
451
452
  end
452
453
 
453
454
  class KalturaPrivacyType
@@ -1130,6 +1131,10 @@ module Kaltura
1130
1131
  EXPORT_CSV = "49"
1131
1132
  REPORT_EXPORT = "50"
1132
1133
  LIVE_ENTRY_ARCHIVE = "51"
1134
+ STORAGE_UPDATE = "52"
1135
+ STORAGE_PERIODIC_EXPORT = "53"
1136
+ STORAGE_PERIODIC_PURGE = "54"
1137
+ STORAGE_PERIODIC_DELETE_LOCAL = "55"
1133
1138
  end
1134
1139
 
1135
1140
  class KalturaBulkUploadAction
@@ -1142,6 +1147,7 @@ module Kaltura
1142
1147
  ADD_OR_UPDATE = "6"
1143
1148
  ACTIVATE = "7"
1144
1149
  REJECT = "8"
1150
+ UPDATE_STATUS = "9"
1145
1151
  end
1146
1152
 
1147
1153
  class KalturaBulkUploadObjectType
@@ -1154,6 +1160,7 @@ module Kaltura
1154
1160
  CATEGORY_USER = "4"
1155
1161
  CATEGORY_ENTRY = "5"
1156
1162
  USER_ENTRY = "6"
1163
+ VENDOR_CATALOG_ITEM = "7"
1157
1164
  end
1158
1165
 
1159
1166
  class KalturaBulkUploadOrderBy
@@ -1658,7 +1665,9 @@ module Kaltura
1658
1665
 
1659
1666
  class KalturaEntryType
1660
1667
  AUTOMATIC = "-1"
1668
+ CONFERENCE_ENTRY_SERVER = "conference.CONFERENCE_ENTRY_SERVER"
1661
1669
  EXTERNAL_MEDIA = "externalMedia.externalMedia"
1670
+ SIP_ENTRY_SERVER = "sip.SIP_ENTRY_SERVER"
1662
1671
  MEDIA_CLIP = "1"
1663
1672
  MIX = "2"
1664
1673
  PLAYLIST = "5"
@@ -3054,6 +3063,7 @@ module Kaltura
3054
3063
  MAIL_TYPE_VIDEO_SERVICE_NOTICE_ACCOUNT_DELETED = "84"
3055
3064
  MAIL_TYPE_VIDEO_SERVICE_NOTICE_UPGRADE_OFFER = "85"
3056
3065
  MAIL_TYPE_ACCOUNT_REACTIVE_CONFIRM = "86"
3066
+ MAIL_TYPE_EXTENDED_FREE_TRIAL_ENDS_WARNING = "87"
3057
3067
  MAIL_TYPE_SYSTEM_USER_RESET_PASSWORD = "110"
3058
3068
  MAIL_TYPE_SYSTEM_USER_RESET_PASSWORD_SUCCESS = "111"
3059
3069
  MAIL_TYPE_SYSTEM_USER_NEW_PASSWORD = "112"
@@ -3515,6 +3525,10 @@ module Kaltura
3515
3525
  USER_INTERACTIVE_VIDEO = "49"
3516
3526
  INTERACTIVE_VIDEO_TOP_NODES = "50"
3517
3527
  LATEST_PLAYED_ENTRIES = "51"
3528
+ CATEGORY_HIGHLIGHTS = "52"
3529
+ SUB_CATEGORIES = "53"
3530
+ INTERACTIVE_VIDEO_NODE_TOP_HOTSPOTS = "54"
3531
+ INTERCATIVE_VIDEO_NODE_SWITCH_TOP_HOTSPOTS = "55"
3518
3532
  PARTNER_USAGE = "201"
3519
3533
  MAP_OVERLAY_COUNTRY_REALTIME = "10001"
3520
3534
  MAP_OVERLAY_REGION_REALTIME = "10002"
@@ -3665,6 +3679,9 @@ module Kaltura
3665
3679
  end
3666
3680
 
3667
3681
  class KalturaServerNodeType
3682
+ CONFERENCE_SERVER = "conference.CONFERENCE_SERVER"
3683
+ LIVE_CLUSTER_MEDIA_SERVER = "liveCluster.LIVE_CLUSTER_MEDIA_SERVER"
3684
+ SIP_SERVER = "sip.SIP_SERVER"
3668
3685
  WOWZA_MEDIA_SERVER = "wowza.WOWZA_MEDIA_SERVER"
3669
3686
  EDGE = "1"
3670
3687
  end
@@ -3796,7 +3813,9 @@ module Kaltura
3796
3813
 
3797
3814
  class KalturaUserEntryType
3798
3815
  QUIZ = "quiz.QUIZ"
3816
+ REGISTRATION = "registration.REGISTRATION"
3799
3817
  VIEW_HISTORY = "viewHistory.VIEW_HISTORY"
3818
+ WATCH_LATER = "watchLater.WATCH_LATER"
3800
3819
  end
3801
3820
 
3802
3821
  class KalturaUserLoginDataOrderBy
@@ -75,6 +75,7 @@ module Kaltura
75
75
  METADATA_PROFILE = "MetadataProfile"
76
76
  PARTNER = "Partner"
77
77
  PERMISSION = "Permission"
78
+ REACH_PROFILE = "ReachProfile"
78
79
  UPLOAD_TOKEN = "UploadToken"
79
80
  USER_LOGIN_DATA = "UserLoginData"
80
81
  USER_ROLE = "UserRole"
@@ -434,6 +434,19 @@ module Kaltura
434
434
  return client.do_queue()
435
435
  end
436
436
 
437
+ # manually export an asset
438
+ # @return [KalturaFlavorAsset]
439
+ def export(asset_id, storage_profile_id)
440
+ kparams = {}
441
+ client.add_param(kparams, 'assetId', asset_id)
442
+ client.add_param(kparams, 'storageProfileId', storage_profile_id)
443
+ client.queue_service_action_call('caption_captionasset', 'export', 'KalturaFlavorAsset', kparams)
444
+ if (client.is_multirequest)
445
+ return nil
446
+ end
447
+ return client.do_queue()
448
+ end
449
+
437
450
  # @return [KalturaCaptionAsset]
438
451
  def get(caption_asset_id)
439
452
  kparams = {}
@@ -0,0 +1,36 @@
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
+
33
+ class KalturaClient < KalturaClientBase
34
+ end
35
+
36
+ end
@@ -0,0 +1,152 @@
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 KalturaConferenceRoomStatus
33
+ CREATED = 1
34
+ READY = 2
35
+ ENDED = 3
36
+ end
37
+
38
+ class KalturaConferenceServerNodeOrderBy
39
+ CREATED_AT_ASC = "+createdAt"
40
+ HEARTBEAT_TIME_ASC = "+heartbeatTime"
41
+ UPDATED_AT_ASC = "+updatedAt"
42
+ CREATED_AT_DESC = "-createdAt"
43
+ HEARTBEAT_TIME_DESC = "-heartbeatTime"
44
+ UPDATED_AT_DESC = "-updatedAt"
45
+ end
46
+
47
+ class KalturaRoomDetails < KalturaObjectBase
48
+ attr_accessor :server_url
49
+ attr_accessor :entry_id
50
+ attr_accessor :token
51
+ attr_accessor :expiry
52
+ attr_accessor :server_name
53
+
54
+ def expiry=(val)
55
+ @expiry = val.to_i
56
+ end
57
+
58
+ def from_xml(xml_element)
59
+ super
60
+ if xml_element.elements['serverUrl'] != nil
61
+ self.server_url = xml_element.elements['serverUrl'].text
62
+ end
63
+ if xml_element.elements['entryId'] != nil
64
+ self.entry_id = xml_element.elements['entryId'].text
65
+ end
66
+ if xml_element.elements['token'] != nil
67
+ self.token = xml_element.elements['token'].text
68
+ end
69
+ if xml_element.elements['expiry'] != nil
70
+ self.expiry = xml_element.elements['expiry'].text
71
+ end
72
+ if xml_element.elements['serverName'] != nil
73
+ self.server_name = xml_element.elements['serverName'].text
74
+ end
75
+ end
76
+
77
+ end
78
+
79
+ class KalturaConferenceEntryServerNode < KalturaEntryServerNode
80
+ attr_accessor :conf_room_status
81
+ attr_accessor :registered
82
+
83
+ def conf_room_status=(val)
84
+ @conf_room_status = val.to_i
85
+ end
86
+ def registered=(val)
87
+ @registered = val.to_i
88
+ end
89
+
90
+ def from_xml(xml_element)
91
+ super
92
+ if xml_element.elements['confRoomStatus'] != nil
93
+ self.conf_room_status = xml_element.elements['confRoomStatus'].text
94
+ end
95
+ if xml_element.elements['registered'] != nil
96
+ self.registered = xml_element.elements['registered'].text
97
+ end
98
+ end
99
+
100
+ end
101
+
102
+ class KalturaConferenceServerNode < KalturaServerNode
103
+ attr_accessor :service_base_url
104
+
105
+
106
+ def from_xml(xml_element)
107
+ super
108
+ if xml_element.elements['serviceBaseUrl'] != nil
109
+ self.service_base_url = xml_element.elements['serviceBaseUrl'].text
110
+ end
111
+ end
112
+
113
+ end
114
+
115
+ class KalturaConferenceEntryServerNodeBaseFilter < KalturaEntryServerNodeFilter
116
+
117
+
118
+ def from_xml(xml_element)
119
+ super
120
+ end
121
+
122
+ end
123
+
124
+ class KalturaConferenceServerNodeBaseFilter < KalturaServerNodeFilter
125
+
126
+
127
+ def from_xml(xml_element)
128
+ super
129
+ end
130
+
131
+ end
132
+
133
+ class KalturaConferenceEntryServerNodeFilter < KalturaConferenceEntryServerNodeBaseFilter
134
+
135
+
136
+ def from_xml(xml_element)
137
+ super
138
+ end
139
+
140
+ end
141
+
142
+ class KalturaConferenceServerNodeFilter < KalturaConferenceServerNodeBaseFilter
143
+
144
+
145
+ def from_xml(xml_element)
146
+ super
147
+ end
148
+
149
+ end
150
+
151
+
152
+ end
@@ -161,6 +161,7 @@ module Kaltura
161
161
  IDETIC = "ideticDistribution.IDETIC"
162
162
  METRO_PCS = "metroPcsDistribution.METRO_PCS"
163
163
  MSN = "msnDistribution.MSN"
164
+ PODCAST = "podcastDistribution.PODCAST"
164
165
  QUICKPLAY = "quickPlayDistribution.QUICKPLAY"
165
166
  UNICORN = "unicornDistribution.UNICORN"
166
167
  YAHOO = "yahooDistribution.YAHOO"
@@ -58,6 +58,8 @@ module Kaltura
58
58
  attr_accessor :distributed_metadata
59
59
  # Key-value array where the keys are IDs of distributed caption assets in the source account and the values are the matching IDs in the target account
60
60
  attr_accessor :distributed_caption_assets
61
+ # Key-value array where the keys are IDs of distributed fileassets in the source account and the values are the matching IDs in the target account
62
+ attr_accessor :distributed_file_assets
61
63
  # Key-value array where the keys are IDs of distributed caption assets in the source account and the values are the matching IDs in the target account
62
64
  attr_accessor :distributed_attachment_assets
63
65
  # Key-value array where the keys are IDs of distributed cue points in the source account and the values are the matching IDs in the target account
@@ -82,6 +84,9 @@ module Kaltura
82
84
  if xml_element.elements['distributedCaptionAssets'] != nil
83
85
  self.distributed_caption_assets = xml_element.elements['distributedCaptionAssets'].text
84
86
  end
87
+ if xml_element.elements['distributedFileAssets'] != nil
88
+ self.distributed_file_assets = xml_element.elements['distributedFileAssets'].text
89
+ end
85
90
  if xml_element.elements['distributedAttachmentAssets'] != nil
86
91
  self.distributed_attachment_assets = xml_element.elements['distributedAttachmentAssets'].text
87
92
  end
@@ -84,6 +84,9 @@ module Kaltura
84
84
  attr_accessor :is_current_dc
85
85
  attr_accessor :is_dir
86
86
  attr_accessor :original_id
87
+ attr_accessor :src_path
88
+ attr_accessor :src_enc_key
89
+ attr_accessor :storage_class
87
90
 
88
91
  def id=(val)
89
92
  @id = val.to_i
@@ -214,6 +217,15 @@ module Kaltura
214
217
  if xml_element.elements['originalId'] != nil
215
218
  self.original_id = xml_element.elements['originalId'].text
216
219
  end
220
+ if xml_element.elements['srcPath'] != nil
221
+ self.src_path = xml_element.elements['srcPath'].text
222
+ end
223
+ if xml_element.elements['srcEncKey'] != nil
224
+ self.src_enc_key = xml_element.elements['srcEncKey'].text
225
+ end
226
+ if xml_element.elements['storageClass'] != nil
227
+ self.storage_class = xml_element.elements['storageClass'].text
228
+ end
217
229
  end
218
230
 
219
231
  end