livekit-server-sdk 0.6.1 → 0.6.3

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: 51137f678f50ef3652432c99668b6527dfb093dde25c27c8ba4fc04fdc8fdad3
4
- data.tar.gz: 392a2871432328d709db03111b85ca86a02f1bb6ad07838f15a98ccc1949bfd3
3
+ metadata.gz: a34860505ef3e82cda7f97eddf966295f6a6417e02a6082497fa087d8eec6742
4
+ data.tar.gz: 04f552051b60c57000b4e07f66b8d6ecfa9eef45aaae39021508095bee310406
5
5
  SHA512:
6
- metadata.gz: 56df6fa9c838c106d5a1629845c4da83895604f7f47364af042433cbc76604a4fb0a5fdca724601f4075eae82f1fe1cb1dec77edac6e0c928b2239f53aee7ec5
7
- data.tar.gz: 0ef597a3f6bddd58b7ae5daefd502f201b6cdc058791d730c8f94d1e5643d3f8681b74ed0289c7ffbde1e0f875c565ece8e51d7c9e6ad69a8d3c2e3e2e1ebc09
6
+ metadata.gz: ca06a2b59ca0bb7a27f45094234d92220fe89ab2ab1a43f7272146d60893e76e706434f834569028e15a80faf628662594ffb1c41993154e0941dd81d2b9579f
7
+ data.tar.gz: d7ddf23c2abc7345989116f7fd058b3f3807ccb23a82169a2f90f3c1e63d7e17607538a2f15cc3e4948e9d0bb43d969f1a816ae52740f10e8e6dffd86d0c9141
Binary file
Binary file
data/NOTICE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2021 LiveKit, Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
data/README.md CHANGED
@@ -1,14 +1,18 @@
1
1
  <!--BEGIN_BANNER_IMAGE-->
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="/.github/banner_dark.png">
4
- <source media="(prefers-color-scheme: light)" srcset="/.github/banner_light.png">
5
- <img style="width:100%;" alt="The LiveKit icon, the name of the repository and some sample code in the background." src="/.github/banner_light.png">
6
- </picture>
7
- <!--END_BANNER_IMAGE-->
2
+
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="/.github/banner_dark.png">
5
+ <source media="(prefers-color-scheme: light)" srcset="/.github/banner_light.png">
6
+ <img style="width:100%;" alt="The LiveKit icon, the name of the repository and some sample code in the background." src="https://raw.githubusercontent.com/livekit/server-sdk-ruby/main/.github/banner_light.png">
7
+ </picture>
8
+
9
+ <!--END_BANNER_IMAGE-->
8
10
 
9
11
  # LiveKit Server API for Ruby
10
12
 
11
- <!--BEGIN_DESCRIPTION-->Use this SDK to manage <a href="https://livekit.io/">LiveKit</a> rooms and create access tokens from your Ruby backend.<!--END_DESCRIPTION-->
13
+ <!--BEGIN_DESCRIPTION-->
14
+ Use this SDK to manage <a href="https://livekit.io/">LiveKit</a> rooms and create access tokens from your Ruby backend.
15
+ <!--END_DESCRIPTION-->
12
16
 
13
17
  This library is designed to work with Ruby 2.6.0 and above.
14
18
 
@@ -135,9 +139,10 @@ The gem is available as open source under the terms of Apache 2.0 License.
135
139
  <br/><table>
136
140
  <thead><tr><th colspan="2">LiveKit Ecosystem</th></tr></thead>
137
141
  <tbody>
138
- <tr><td>Client SDKs</td><td><a href="https://github.com/livekit/components-js">Components</a> · <a href="https://github.com/livekit/client-sdk-js">JavaScript</a> · <a href="https://github.com/livekit/client-sdk-swift">iOS/macOS</a> · <a href="https://github.com/livekit/client-sdk-android">Android</a> · <a href="https://github.com/livekit/client-sdk-flutter">Flutter</a> · <a href="https://github.com/livekit/client-sdk-react-native">React Native</a> · <a href="https://github.com/livekit/client-sdk-rust">Rust</a> · <a href="https://github.com/livekit/client-sdk-python">Python</a> · <a href="https://github.com/livekit/client-sdk-unity-web">Unity (web)</a> · <a href="https://github.com/livekit/client-sdk-unity">Unity (beta)</a></td></tr><tr></tr>
139
- <tr><td>Server SDKs</td><td><a href="https://github.com/livekit/server-sdk-js">Node.js</a> · <a href="https://github.com/livekit/server-sdk-go">Golang</a> · <b>Ruby</b> · <a href="https://github.com/livekit/server-sdk-kotlin">Java/Kotlin</a> · <a href="https://github.com/agence104/livekit-server-sdk-php">PHP (community)</a> · <a href="https://github.com/tradablebits/livekit-server-sdk-python">Python (community)</a></td></tr><tr></tr>
140
- <tr><td>Services</td><td><a href="https://github.com/livekit/livekit">Livekit server</a> · <a href="https://github.com/livekit/egress">Egress</a> · <a href="https://github.com/livekit/ingress">Ingress</a></td></tr><tr></tr>
142
+ <tr><td>Real-time SDKs</td><td><a href="https://github.com/livekit/components-js">React Components</a> · <a href="https://github.com/livekit/client-sdk-js">JavaScript</a> · <a href="https://github.com/livekit/client-sdk-swift">iOS/macOS</a> · <a href="https://github.com/livekit/client-sdk-android">Android</a> · <a href="https://github.com/livekit/client-sdk-flutter">Flutter</a> · <a href="https://github.com/livekit/client-sdk-react-native">React Native</a> · <a href="https://github.com/livekit/client-sdk-rust">Rust</a> · <a href="https://github.com/livekit/client-sdk-python">Python</a> · <a href="https://github.com/livekit/client-sdk-unity-web">Unity (web)</a> · <a href="https://github.com/livekit/client-sdk-unity">Unity (beta)</a></td></tr><tr></tr>
143
+ <tr><td>Server APIs</td><td><a href="https://github.com/livekit/server-sdk-js">Node.js</a> · <a href="https://github.com/livekit/server-sdk-go">Golang</a> · <b>Ruby</b> · <a href="https://github.com/livekit/server-sdk-kotlin">Java/Kotlin</a> · <a href="https://github.com/livekit/client-sdk-python">Python</a> · <a href="https://github.com/livekit/client-sdk-rust">Rust</a> · <a href="https://github.com/agence104/livekit-server-sdk-php">PHP (community)</a></td></tr><tr></tr>
144
+ <tr><td>Agents Frameworks</td><td><a href="https://github.com/livekit/agents">Python</a> · <a href="https://github.com/livekit/agent-playground">Playground</a></td></tr><tr></tr>
145
+ <tr><td>Services</td><td><a href="https://github.com/livekit/livekit">Livekit server</a> · <a href="https://github.com/livekit/egress">Egress</a> · <a href="https://github.com/livekit/ingress">Ingress</a> · <a href="https://github.com/livekit/sip">SIP</a></td></tr><tr></tr>
141
146
  <tr><td>Resources</td><td><a href="https://docs.livekit.io">Docs</a> · <a href="https://github.com/livekit-examples">Example apps</a> · <a href="https://livekit.io/cloud">Cloud</a> · <a href="https://docs.livekit.io/oss/deployment">Self-hosting</a> · <a href="https://github.com/livekit/livekit-cli">CLI</a></td></tr>
142
147
  </tbody>
143
148
  </table>
@@ -15,7 +15,7 @@ module LiveKit
15
15
 
16
16
  def start_room_composite_egress(
17
17
  room_name,
18
- # EncodedFileOutput, SegmentedFileOutput, StreamOutput, or array containing up to one of each
18
+ # EncodedFileOutput, SegmentedFileOutput, StreamOutput, ImageOutput or array containing up to one of each
19
19
  output,
20
20
  # EncodingOptionsPreset, only one of preset or advanced could be set
21
21
  preset: nil,
@@ -50,7 +50,7 @@ module LiveKit
50
50
  def start_participant_egress(
51
51
  room_name,
52
52
  identity,
53
- # EncodedFileOutput, SegmentedFileOutput, StreamOutput, or array containing up to one of each
53
+ # EncodedFileOutput, SegmentedFileOutput, StreamOutput, ImageOutput, or array containing up to one of each
54
54
  output,
55
55
  # true to record the participant's screenshare and screenshare_audio track
56
56
  screen_share: false,
@@ -76,7 +76,7 @@ module LiveKit
76
76
 
77
77
  def start_track_composite_egress(
78
78
  room_name,
79
- # EncodedFileOutput, SegmentedFileOutput, StreamOutput, or array containing up to one of each
79
+ # EncodedFileOutput, SegmentedFileOutput, StreamOutput, ImageOutput, or array containing up to one of each
80
80
  output,
81
81
  # TrackID of an audio track
82
82
  audio_track_id: nil,
@@ -126,7 +126,7 @@ module LiveKit
126
126
 
127
127
  def start_web_egress(
128
128
  url,
129
- # EncodedFileOutput, SegmentedFileOutput, StreamOutput, or array containing up to one of each
129
+ # EncodedFileOutput, SegmentedFileOutput, StreamOutput, ImageOutput, or array containing up to one of each
130
130
  output,
131
131
  # EncodingOptionsPreset, only one of preset or advanced could be set
132
132
  preset: nil,
@@ -222,6 +222,9 @@ module LiveKit
222
222
  elsif out.is_a? Livekit::Proto::StreamOutput
223
223
  raise "cannot add multiple stream outputs" if request.stream_outputs.any?
224
224
  request.stream_outputs = Google::Protobuf::RepeatedField.new(:message, Proto::StreamOutput, [out])
225
+ elsif out.is_a? LiveKit::Proto::ImageOutput
226
+ raise "cannot add multiple image outputs" if request.image_outputs.any?
227
+ request.image_outputs = Google::Protobuf::RepeatedField.new(:message, Proto::ImageOutput, [out])
225
228
  end
226
229
  end
227
230
  elsif output.is_a? LiveKit::Proto::EncodedFileOutput
@@ -233,6 +236,8 @@ module LiveKit
233
236
  elsif output.is_a? LiveKit::Proto::StreamOutput
234
237
  request.stream = output
235
238
  request.stream_outputs = Google::Protobuf::RepeatedField.new(:message, Proto::StreamOutput, [output])
239
+ elsif output.is_a? LiveKit::Proto::ImageOutput
240
+ request.image_outputs = Google::Protobuf::RepeatedField.new(:message, Proto::ImageOutput, [output])
236
241
  end
237
242
  end
238
243
  end
@@ -20,13 +20,15 @@ module LiveKit
20
20
  metadata: nil,
21
21
  min_playout_delay: nil,
22
22
  max_playout_delay: nil,
23
- sync_streams: nil
23
+ sync_streams: nil,
24
+ departure_timeout: nil
24
25
  )
25
26
  self.rpc(
26
27
  :CreateRoom,
27
28
  Proto::CreateRoomRequest.new(
28
29
  name: name,
29
30
  empty_timeout: empty_timeout,
31
+ departure_timeout: departure_timeout,
30
32
  max_participants: max_participants,
31
33
  egress: egress,
32
34
  metadata: metadata,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LiveKit
4
- VERSION = "0.6.1"
4
+ VERSION = "0.6.3"
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.6.1
4
+ version: 0.6.3
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-10-20 00:00:00.000000000 Z
12
+ date: 2024-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-protobuf
@@ -115,6 +115,7 @@ files:
115
115
  - Gemfile
116
116
  - Gemfile.lock
117
117
  - LICENSE
118
+ - NOTICE
118
119
  - README.md
119
120
  - Rakefile
120
121
  - bin/bootstrap.sh