livekit-server-sdk 0.5.2 → 0.5.4

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: 34926d0d468c544020abdd289ae87b9ef930b02af326b18ff1b412c3079222ae
4
- data.tar.gz: 035442c257c4d5fed8ff590df031234bdf0d30264bd231c825f5da2103e282ac
3
+ metadata.gz: 37c0af8d011a1a96a75436dd27ce5c7b589742a2ba2d8b92783800900b77ed9a
4
+ data.tar.gz: '08f6fba37c2a8caa53199222983bcc9fc68fceb21c77c9983dd5aafd64a75de5'
5
5
  SHA512:
6
- metadata.gz: bb91065950d48efc26837576503724d8bbf26af84a5c224e216cd4002f4eee75a3b5fe64e9b942131ef3be7cbe30ae9d7b1ca1d9d164264f4c78527f24c2fdc9
7
- data.tar.gz: 247cbd14c9bd44653ca64b370b884c421c63ba577979e1ed5895fbbd1f10f95eb8b249408c955fd4e4b67ce38bca36303738f36fdc65985d46656e02899a9710
6
+ metadata.gz: a56e5d01778aee68272c42385c4c201a3ea6328643086ce16f608414c44f9664f6a9e717f16c2daaea8d6e2aba26f293d0a172777d1e1555e578bb250674b484
7
+ data.tar.gz: 387588e04efaf6b702d0998128ba322890093900e7d53981b5f8426e5e63968b7f010a69d29c4934dc110c4a6a83f2514503e167cfc7b56a6bad7d0d484c34eb
data/.gitignore CHANGED
@@ -9,5 +9,9 @@
9
9
  /tmp/
10
10
  /vendor/bundle
11
11
 
12
+ #dev
13
+ test/
14
+ livekit-server-sdk-*.gem
15
+
12
16
  # rspec failure tracking
13
17
  .rspec_status
data/bin/bootstrap.sh CHANGED
File without changes
@@ -144,18 +144,21 @@ module LiveKit
144
144
  :UpdateStream,
145
145
  Proto::UpdateStreamRequest.new(
146
146
  egress_id: egress_id,
147
- add_output_urls: Google::Protobuf::RepeatedField.new(:string, add_output_urls.to_a),
148
- remove_output_urls: Google::Protobuf::RepeatedField.new(:string, remove_output_urls.to_a),
147
+ add_output_urls: add_output_urls,
148
+ remove_output_urls: remove_output_urls,
149
149
  ),
150
150
  headers: auth_header(roomRecord: true),
151
151
  )
152
152
  end
153
153
 
154
154
  # list all egress or only egress for a room
155
- def list_egress(room_name: nil)
155
+ def list_egress(
156
+ room_name: nil,
157
+ active: false
158
+ )
156
159
  self.rpc(
157
160
  :ListEgress,
158
- Proto::ListEgressRequest.new(room_name: room_name),
161
+ Proto::ListEgressRequest.new(room_name: room_name, active: active),
159
162
  headers: auth_header(roomRecord: true),
160
163
  )
161
164
  end
@@ -177,24 +180,24 @@ module LiveKit
177
180
  output.each do |out|
178
181
  if out.is_a? LiveKit::Proto::EncodedFileOutput
179
182
  raise "cannot add multiple file outputs" if request.file_outputs.any?
180
- request.file_outputs = [out]
183
+ request.file_outputs = Google::Protobuf::RepeatedField.new(:message, Proto::EncodedFileOutput, [out])
181
184
  elsif out.is_a? LiveKit::Proto::SegmentedFileOutput
182
185
  raise "cannot add multiple segmented file outputs" if request.segment_outputs.any?
183
- request.segment_outputs = [out]
186
+ request.segment_outputs = Google::Protobuf::RepeatedField.new(:message, Proto::SegmentedFileOutput, [out])
184
187
  elsif out.is_a? Livekit::Proto::StreamOutput
185
188
  raise "cannot add multiple stream outputs" if request.stream_outputs.any?
186
- request.stream_outputs = [out]
189
+ request.stream_outputs = Google::Protobuf::RepeatedField.new(:message, Proto::StreamOutput, [out])
187
190
  end
188
191
  end
189
192
  elsif output.is_a? LiveKit::Proto::EncodedFileOutput
190
193
  request.file = output
191
- request.file_outputs = [output]
194
+ request.file_outputs = Google::Protobuf::RepeatedField.new(:message, Proto::EncodedFileOutput, [output])
192
195
  elsif output.is_a? LiveKit::Proto::SegmentedFileOutput
193
196
  request.segments = output
194
- request.segment_outputs = [output]
197
+ request.segment_outputs = Google::Protobuf::RepeatedField.new(:message, Proto::SegmentedFileOutput, [output])
195
198
  elsif output.is_a? LiveKit::Proto::StreamOutput
196
199
  request.stream = output
197
- request.stream_outputs = [output]
200
+ request.stream_outputs = Google::Protobuf::RepeatedField.new(:message, Proto::StreamOutput, [output])
198
201
  end
199
202
  end
200
203
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LiveKit
4
- VERSION = "0.5.2"
4
+ VERSION = "0.5.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livekit-server-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Omri Gabay
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-04-05 00:00:00.000000000 Z
12
+ date: 2023-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-protobuf
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  - !ruby/object:Gem::Version
171
171
  version: '0'
172
172
  requirements: []
173
- rubygems_version: 3.3.7
173
+ rubygems_version: 3.4.6
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: LiveKit Server SDK for Ruby