livekit-server-sdk 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +23 -44
- data/LICENSE +201 -0
- data/README.md +100 -21
- data/Rakefile +1 -1
- data/lib/livekit/auth_mixin.rb +1 -0
- data/lib/livekit/egress_service_client.rb +158 -0
- data/lib/livekit/egress_types.rb +0 -0
- data/lib/livekit/proto/livekit_egress_pb.rb +203 -0
- data/lib/livekit/proto/livekit_egress_twirp.rb +23 -0
- data/lib/livekit/proto/livekit_models_pb.rb +103 -2
- data/lib/livekit/proto/livekit_room_pb.rb +0 -6
- data/lib/livekit/proto/livekit_webhook_pb.rb +3 -0
- data/lib/livekit/room_service_client.rb +1 -3
- data/lib/livekit/version.rb +1 -1
- data/lib/livekit.rb +2 -2
- data/livekit_server_sdk.gemspec +2 -2
- metadata +16 -14
- data/LICENSE.txt +0 -21
- data/lib/livekit/proto/livekit_recording_pb.rb +0 -95
- data/lib/livekit/proto/livekit_recording_twirp.rb +0 -20
@@ -1,95 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: livekit_recording.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/protobuf/empty_pb'
|
7
|
-
|
8
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
-
add_file("livekit_recording.proto", :syntax => :proto3) do
|
10
|
-
add_message "livekit.StartRecordingRequest" do
|
11
|
-
optional :options, :message, 5, "livekit.RecordingOptions"
|
12
|
-
oneof :input do
|
13
|
-
optional :url, :string, 1
|
14
|
-
optional :template, :message, 2, "livekit.RecordingTemplate"
|
15
|
-
end
|
16
|
-
oneof :output do
|
17
|
-
optional :rtmp, :message, 3, "livekit.RtmpOutput"
|
18
|
-
optional :filepath, :string, 4
|
19
|
-
end
|
20
|
-
end
|
21
|
-
add_message "livekit.RecordingTemplate" do
|
22
|
-
optional :layout, :string, 1
|
23
|
-
optional :room_name, :string, 2
|
24
|
-
optional :base_url, :string, 3
|
25
|
-
end
|
26
|
-
add_message "livekit.RtmpOutput" do
|
27
|
-
repeated :urls, :string, 1
|
28
|
-
end
|
29
|
-
add_message "livekit.RecordingOptions" do
|
30
|
-
optional :preset, :enum, 1, "livekit.RecordingPreset"
|
31
|
-
optional :width, :int32, 2
|
32
|
-
optional :height, :int32, 3
|
33
|
-
optional :depth, :int32, 4
|
34
|
-
optional :framerate, :int32, 5
|
35
|
-
optional :audio_bitrate, :int32, 6
|
36
|
-
optional :audio_frequency, :int32, 7
|
37
|
-
optional :video_bitrate, :int32, 8
|
38
|
-
optional :profile, :string, 9
|
39
|
-
end
|
40
|
-
add_message "livekit.StartRecordingResponse" do
|
41
|
-
optional :recording_id, :string, 1
|
42
|
-
end
|
43
|
-
add_message "livekit.AddOutputRequest" do
|
44
|
-
optional :recording_id, :string, 1
|
45
|
-
optional :rtmp_url, :string, 2
|
46
|
-
end
|
47
|
-
add_message "livekit.RemoveOutputRequest" do
|
48
|
-
optional :recording_id, :string, 1
|
49
|
-
optional :rtmp_url, :string, 2
|
50
|
-
end
|
51
|
-
add_message "livekit.EndRecordingRequest" do
|
52
|
-
optional :recording_id, :string, 1
|
53
|
-
end
|
54
|
-
add_message "livekit.RecordingInfo" do
|
55
|
-
optional :id, :string, 1
|
56
|
-
optional :room_name, :string, 2
|
57
|
-
optional :active, :bool, 3
|
58
|
-
optional :error, :string, 4
|
59
|
-
optional :file, :message, 5, "livekit.FileResult"
|
60
|
-
repeated :rtmp, :message, 6, "livekit.RtmpResult"
|
61
|
-
end
|
62
|
-
add_message "livekit.FileResult" do
|
63
|
-
optional :download_url, :string, 1
|
64
|
-
optional :duration, :int64, 2
|
65
|
-
end
|
66
|
-
add_message "livekit.RtmpResult" do
|
67
|
-
optional :stream_url, :string, 1
|
68
|
-
optional :duration, :int64, 2
|
69
|
-
end
|
70
|
-
add_enum "livekit.RecordingPreset" do
|
71
|
-
value :NONE, 0
|
72
|
-
value :HD_30, 1
|
73
|
-
value :HD_60, 2
|
74
|
-
value :FULL_HD_30, 3
|
75
|
-
value :FULL_HD_60, 4
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
module LiveKit
|
81
|
-
module Proto
|
82
|
-
StartRecordingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.StartRecordingRequest").msgclass
|
83
|
-
RecordingTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.RecordingTemplate").msgclass
|
84
|
-
RtmpOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.RtmpOutput").msgclass
|
85
|
-
RecordingOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.RecordingOptions").msgclass
|
86
|
-
StartRecordingResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.StartRecordingResponse").msgclass
|
87
|
-
AddOutputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.AddOutputRequest").msgclass
|
88
|
-
RemoveOutputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.RemoveOutputRequest").msgclass
|
89
|
-
EndRecordingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.EndRecordingRequest").msgclass
|
90
|
-
RecordingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.RecordingInfo").msgclass
|
91
|
-
FileResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.FileResult").msgclass
|
92
|
-
RtmpResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.RtmpResult").msgclass
|
93
|
-
RecordingPreset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.RecordingPreset").enummodule
|
94
|
-
end
|
95
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# Code generated by protoc-gen-twirp_ruby 1.9.0, DO NOT EDIT.
|
2
|
-
require 'twirp'
|
3
|
-
require_relative 'livekit_recording_pb.rb'
|
4
|
-
|
5
|
-
module LiveKit
|
6
|
-
module Proto
|
7
|
-
class RecordingServiceService < Twirp::Service
|
8
|
-
package 'livekit'
|
9
|
-
service 'RecordingService'
|
10
|
-
rpc :StartRecording, StartRecordingRequest, StartRecordingResponse, :ruby_method => :start_recording
|
11
|
-
rpc :AddOutput, AddOutputRequest, Google::Protobuf::Empty, :ruby_method => :add_output
|
12
|
-
rpc :RemoveOutput, RemoveOutputRequest, Google::Protobuf::Empty, :ruby_method => :remove_output
|
13
|
-
rpc :EndRecording, EndRecordingRequest, Google::Protobuf::Empty, :ruby_method => :end_recording
|
14
|
-
end
|
15
|
-
|
16
|
-
class RecordingServiceClient < Twirp::Client
|
17
|
-
client_for RecordingServiceService
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|