kaltura-client 15.19.0 → 16.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35ad49fcf5e4f6fb7ab703d239d6c717927cbf2d0537de0e42f3b2e05e12c15a
4
- data.tar.gz: 11fd471fab39ff28b9065639a63ef0586a1a5a695373f55704a66df8e89ebda5
3
+ metadata.gz: 2fc69157edf5f39cf64e200a2ce1f4ad7b596ffcf8c655c8b3b4ed70cc4ff45e
4
+ data.tar.gz: 69e1a68e5eaed220275790d67bd5bbdf117ddb3525abcb9310cf0915feb42e6a
5
5
  SHA512:
6
- metadata.gz: f6f6dee26a03172a421d981e33836593e88c1b6047561c097f3a38e63c94261d6f72c9f3ca93464c8624f9b83368656c8758b4c2c5c4489c28f78ee8b772644b
7
- data.tar.gz: 9261f605937806910c894ffd8290613f2cc71566b6cac6be0ab0bc35e5ae43038495db18e66de6af10ffcf55c7a397a4cede8935ecad2a1e968ec156549d050e
6
+ metadata.gz: 2b9b6b8e2863655f7a7b2a2d94f4e785daab503cc80653ab4ba0a67fcbd62fe6fd8f24602038ebfe0ea23df22ff0fa1718aafc33ac857527381d4f3ba8851a09
7
+ data.tar.gz: 789629509948419f57c8b687d6aa3f554ec495c72336e0b34bb45106ff1e18154a9a10918924c8e031f708a2e017f43aad0cd868e52b331abbaf00de174f388e
data/README CHANGED
@@ -1,5 +1,5 @@
1
1
  Kaltura Ruby API Client Library.
2
- Compatible with Kaltura server version 15.19.0 and above.
2
+ Compatible with Kaltura server version 16.5.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-03-16'
6247
- self.api_version = '15.19.0'
6296
+ self.client_tag = 'ruby:20-06-29'
6297
+ self.api_version = '16.5.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
@@ -1131,6 +1132,9 @@ module Kaltura
1131
1132
  REPORT_EXPORT = "50"
1132
1133
  LIVE_ENTRY_ARCHIVE = "51"
1133
1134
  STORAGE_UPDATE = "52"
1135
+ STORAGE_PERIODIC_EXPORT = "53"
1136
+ STORAGE_PERIODIC_PURGE = "54"
1137
+ STORAGE_PERIODIC_DELETE_LOCAL = "55"
1134
1138
  end
1135
1139
 
1136
1140
  class KalturaBulkUploadAction
@@ -1143,6 +1147,7 @@ module Kaltura
1143
1147
  ADD_OR_UPDATE = "6"
1144
1148
  ACTIVATE = "7"
1145
1149
  REJECT = "8"
1150
+ UPDATE_STATUS = "9"
1146
1151
  end
1147
1152
 
1148
1153
  class KalturaBulkUploadObjectType
@@ -1155,6 +1160,7 @@ module Kaltura
1155
1160
  CATEGORY_USER = "4"
1156
1161
  CATEGORY_ENTRY = "5"
1157
1162
  USER_ENTRY = "6"
1163
+ VENDOR_CATALOG_ITEM = "7"
1158
1164
  end
1159
1165
 
1160
1166
  class KalturaBulkUploadOrderBy
@@ -1659,7 +1665,9 @@ module Kaltura
1659
1665
 
1660
1666
  class KalturaEntryType
1661
1667
  AUTOMATIC = "-1"
1668
+ CONFERENCE_ENTRY_SERVER = "conference.CONFERENCE_ENTRY_SERVER"
1662
1669
  EXTERNAL_MEDIA = "externalMedia.externalMedia"
1670
+ SIP_ENTRY_SERVER = "sip.SIP_ENTRY_SERVER"
1663
1671
  MEDIA_CLIP = "1"
1664
1672
  MIX = "2"
1665
1673
  PLAYLIST = "5"
@@ -3517,6 +3525,12 @@ module Kaltura
3517
3525
  USER_INTERACTIVE_VIDEO = "49"
3518
3526
  INTERACTIVE_VIDEO_TOP_NODES = "50"
3519
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"
3532
+ INTERACTIVE_VIDEO_HOTSPOT_CLICKED_PERCENTILES = "56"
3533
+ INTERACTIVE_VIDEO_NODE_SWITCH_HOTSPOT_CLICKED_PERCENTILES = "57"
3520
3534
  PARTNER_USAGE = "201"
3521
3535
  MAP_OVERLAY_COUNTRY_REALTIME = "10001"
3522
3536
  MAP_OVERLAY_REGION_REALTIME = "10002"
@@ -3531,6 +3545,8 @@ module Kaltura
3531
3545
  PLAYBACK_TYPE_REALTIME = "10011"
3532
3546
  CONTENT_REALTIME = "10012"
3533
3547
  DISCOVERY_VIEW_REALTIME = "10013"
3548
+ TOP_ENDED_BROADCAST_ENTRIES = "10014"
3549
+ TOP_LIVE_NOW_ENTRIES = "10015"
3534
3550
  CONTENT_DROPOFF_VPAAS = "20001"
3535
3551
  TOP_SYNDICATION_VPAAS = "20002"
3536
3552
  USER_TOP_CONTENT_VPAAS = "20003"
@@ -3667,6 +3683,9 @@ module Kaltura
3667
3683
  end
3668
3684
 
3669
3685
  class KalturaServerNodeType
3686
+ CONFERENCE_SERVER = "conference.CONFERENCE_SERVER"
3687
+ LIVE_CLUSTER_MEDIA_SERVER = "liveCluster.LIVE_CLUSTER_MEDIA_SERVER"
3688
+ SIP_SERVER = "sip.SIP_SERVER"
3670
3689
  WOWZA_MEDIA_SERVER = "wowza.WOWZA_MEDIA_SERVER"
3671
3690
  EDGE = "1"
3672
3691
  end
@@ -3798,7 +3817,9 @@ module Kaltura
3798
3817
 
3799
3818
  class KalturaUserEntryType
3800
3819
  QUIZ = "quiz.QUIZ"
3820
+ REGISTRATION = "registration.REGISTRATION"
3801
3821
  VIEW_HISTORY = "viewHistory.VIEW_HISTORY"
3822
+ WATCH_LATER = "watchLater.WATCH_LATER"
3802
3823
  end
3803
3824
 
3804
3825
  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