livekit-server-sdk 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/banner_dark.png +0 -0
- data/.github/banner_light.png +0 -0
- data/NOTICE +13 -0
- data/README.md +15 -10
- data/lib/livekit/egress_service_client.rb +9 -4
- data/lib/livekit/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b58f808c349a7091f04fad6dc6cfb7c41a3de141018ec8092513102ff3f7eea
|
4
|
+
data.tar.gz: 2ee2f7816d43aa52bd332e99e883b4ebf7bc598be1f64e17f862e472b925903b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef2df5a94cf49ef4631723ccf1466c5cf476f097bea31c0a9ed7a0677dce66983e10c36b0f27134a99715cde351c06c4ba480f9b5a84ce4efd2bbd975dbc6123
|
7
|
+
data.tar.gz: 95619bcb926a6461e22c00aa19f2194631d3a4c22d0b9003144609968685e91eb186b6bc1c72a1c79bf816baed20a37b7bb456ba9090fda115c44bd71e4c9bb4
|
data/.github/banner_dark.png
CHANGED
Binary file
|
data/.github/banner_light.png
CHANGED
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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-->
|
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>
|
139
|
-
<tr><td>Server
|
140
|
-
<tr><td>
|
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
|
data/lib/livekit/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: livekit-server-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Omri Gabay
|
8
8
|
- David Zhao
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-02-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-protobuf
|
@@ -91,7 +91,7 @@ dependencies:
|
|
91
91
|
- - "<"
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '2.0'
|
94
|
-
description:
|
94
|
+
description:
|
95
95
|
email:
|
96
96
|
- omri@omrigabay.me
|
97
97
|
- dz@livekit.io
|
@@ -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
|
@@ -157,7 +158,7 @@ homepage: https://livekit.io
|
|
157
158
|
licenses:
|
158
159
|
- Apache-2.0
|
159
160
|
metadata: {}
|
160
|
-
post_install_message:
|
161
|
+
post_install_message:
|
161
162
|
rdoc_options: []
|
162
163
|
require_paths:
|
163
164
|
- lib
|
@@ -172,8 +173,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
173
|
- !ruby/object:Gem::Version
|
173
174
|
version: '0'
|
174
175
|
requirements: []
|
175
|
-
rubygems_version: 3.3.
|
176
|
-
signing_key:
|
176
|
+
rubygems_version: 3.0.3.1
|
177
|
+
signing_key:
|
177
178
|
specification_version: 4
|
178
179
|
summary: LiveKit Server SDK for Ruby
|
179
180
|
test_files: []
|