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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4fe21f9c1c398cb40a83d57bac471e0d02bf746808ed6039988412533fa18273
4
- data.tar.gz: 47cec5f1324c478dea7a54e2af4f687c2eacf50600b292a3ee6894bbf6516038
3
+ metadata.gz: 052506f07ff75b3577400c88f6947ace39b15fa41106e415bdf78b057d3bd799
4
+ data.tar.gz: f77ccb39333c027d0a94653f308fd5728ec3d381c6ff75c9e37ead7dbda6283c
5
5
  SHA512:
6
- metadata.gz: e51efccb3749c5e23169419f7e7f46b94a674efde6d59cfe00f9b808ea2d897877e2459e981ad70945fdde34cffa564e9196f4ada8fc5d15e93efb3d72bdfac7
7
- data.tar.gz: 259230a283b5782fbdf933d7926073e6b673c36ec2b9ace7415e8b8450153a9db21b7ca9c6c5da01e1a722fdc852619d5a414284fccb544c5e23225d684f6c14
6
+ metadata.gz: 9747036dc4b457fa7f07c858acf7d8fc541bca76af93f4bd6c48028a75aba5f5a03dfc24bf90858fa6ab4437e23cc1e44ad332c21563b4faf7d5cfc999f3ebd5
7
+ data.tar.gz: e31a7211cec66e5bfacd9508b193693d16736f9577b6f6e16afd79985cb22897f528b036fc2bcaa56f5955ec9c4a629405963921adf1f787771abb8d4e1afdb0
data/README CHANGED
@@ -1,5 +1,5 @@
1
1
  Kaltura Ruby API Client Library.
2
- Compatible with Kaltura server version 15.20.0 and above.
2
+ Compatible with Kaltura server version 16.0.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)
@@ -6243,8 +6281,8 @@ module Kaltura
6243
6281
 
6244
6282
  def initialize(client)
6245
6283
  super(client)
6246
- self.client_tag = 'ruby:20-03-31'
6247
- self.api_version = '15.20.0'
6284
+ self.client_tag = 'ruby:20-04-25'
6285
+ self.api_version = '16.0.0'
6248
6286
  end
6249
6287
 
6250
6288
  def client_tag=(value)
@@ -1659,7 +1659,9 @@ module Kaltura
1659
1659
 
1660
1660
  class KalturaEntryType
1661
1661
  AUTOMATIC = "-1"
1662
+ CONFERENCE_ENTRY_SERVER = "conference.CONFERENCE_ENTRY_SERVER"
1662
1663
  EXTERNAL_MEDIA = "externalMedia.externalMedia"
1664
+ SIP_ENTRY_SERVER = "sip.SIP_ENTRY_SERVER"
1663
1665
  MEDIA_CLIP = "1"
1664
1666
  MIX = "2"
1665
1667
  PLAYLIST = "5"
@@ -3668,6 +3670,9 @@ module Kaltura
3668
3670
  end
3669
3671
 
3670
3672
  class KalturaServerNodeType
3673
+ CONFERENCE_SERVER = "conference.CONFERENCE_SERVER"
3674
+ LIVE_CLUSTER_MEDIA_SERVER = "liveCluster.LIVE_CLUSTER_MEDIA_SERVER"
3675
+ SIP_SERVER = "sip.SIP_SERVER"
3671
3676
  WOWZA_MEDIA_SERVER = "wowza.WOWZA_MEDIA_SERVER"
3672
3677
  EDGE = "1"
3673
3678
  end
@@ -3799,6 +3804,7 @@ module Kaltura
3799
3804
 
3800
3805
  class KalturaUserEntryType
3801
3806
  QUIZ = "quiz.QUIZ"
3807
+ REGISTRATION = "registration.REGISTRATION"
3802
3808
  VIEW_HISTORY = "viewHistory.VIEW_HISTORY"
3803
3809
  WATCH_LATER = "watchLater.WATCH_LATER"
3804
3810
  end
@@ -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"
@@ -0,0 +1,60 @@
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 KalturaLiveClusterMediaServerNode < KalturaMediaServerNode
33
+
34
+
35
+ def from_xml(xml_element)
36
+ super
37
+ end
38
+
39
+ end
40
+
41
+ class KalturaLiveClusterMediaServerNodeBaseFilter < KalturaMediaServerNodeFilter
42
+
43
+
44
+ def from_xml(xml_element)
45
+ super
46
+ end
47
+
48
+ end
49
+
50
+ class KalturaLiveClusterMediaServerNodeFilter < KalturaLiveClusterMediaServerNodeBaseFilter
51
+
52
+
53
+ def from_xml(xml_element)
54
+ super
55
+ end
56
+
57
+ end
58
+
59
+
60
+ end
@@ -0,0 +1,140 @@
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_content_distribution_client_plugin.rb'
30
+
31
+ module Kaltura
32
+
33
+ class KalturaPodcastDistributionProfileOrderBy
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 KalturaPodcastDistributionProviderOrderBy
41
+ end
42
+
43
+ class KalturaPodcastDistributionJobProviderData < KalturaDistributionJobProviderData
44
+ attr_accessor :xml
45
+ attr_accessor :metadata_profile_id
46
+ attr_accessor :distribution_profile_id
47
+
48
+ def metadata_profile_id=(val)
49
+ @metadata_profile_id = val.to_i
50
+ end
51
+ def distribution_profile_id=(val)
52
+ @distribution_profile_id = val.to_i
53
+ end
54
+
55
+ def from_xml(xml_element)
56
+ super
57
+ if xml_element.elements['xml'] != nil
58
+ self.xml = xml_element.elements['xml'].text
59
+ end
60
+ if xml_element.elements['metadataProfileId'] != nil
61
+ self.metadata_profile_id = xml_element.elements['metadataProfileId'].text
62
+ end
63
+ if xml_element.elements['distributionProfileId'] != nil
64
+ self.distribution_profile_id = xml_element.elements['distributionProfileId'].text
65
+ end
66
+ end
67
+
68
+ end
69
+
70
+ class KalturaPodcastDistributionProfile < KalturaDistributionProfile
71
+ attr_accessor :xsl
72
+ attr_accessor :feed_id
73
+ attr_accessor :metadata_profile_id
74
+
75
+ def metadata_profile_id=(val)
76
+ @metadata_profile_id = val.to_i
77
+ end
78
+
79
+ def from_xml(xml_element)
80
+ super
81
+ if xml_element.elements['xsl'] != nil
82
+ self.xsl = xml_element.elements['xsl'].text
83
+ end
84
+ if xml_element.elements['feedId'] != nil
85
+ self.feed_id = xml_element.elements['feedId'].text
86
+ end
87
+ if xml_element.elements['metadataProfileId'] != nil
88
+ self.metadata_profile_id = xml_element.elements['metadataProfileId'].text
89
+ end
90
+ end
91
+
92
+ end
93
+
94
+ class KalturaPodcastDistributionProvider < KalturaDistributionProvider
95
+
96
+
97
+ def from_xml(xml_element)
98
+ super
99
+ end
100
+
101
+ end
102
+
103
+ class KalturaPodcastDistributionProfileBaseFilter < KalturaDistributionProfileFilter
104
+
105
+
106
+ def from_xml(xml_element)
107
+ super
108
+ end
109
+
110
+ end
111
+
112
+ class KalturaPodcastDistributionProviderBaseFilter < KalturaDistributionProviderFilter
113
+
114
+
115
+ def from_xml(xml_element)
116
+ super
117
+ end
118
+
119
+ end
120
+
121
+ class KalturaPodcastDistributionProfileFilter < KalturaPodcastDistributionProfileBaseFilter
122
+
123
+
124
+ def from_xml(xml_element)
125
+ super
126
+ end
127
+
128
+ end
129
+
130
+ class KalturaPodcastDistributionProviderFilter < KalturaPodcastDistributionProviderBaseFilter
131
+
132
+
133
+ def from_xml(xml_element)
134
+ super
135
+ end
136
+
137
+ end
138
+
139
+
140
+ end