64 lines
1.3 KiB
Protocol Buffer
64 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package livekit;
|
|
option go_package = "github.com/livekit/livekit-server/proto/livekit";
|
|
|
|
// internal protos, not exposed to clients
|
|
import "rtc.proto";
|
|
import "room.proto";
|
|
|
|
message Node {
|
|
string id = 1;
|
|
string ip = 2;
|
|
uint32 num_cpus = 3;
|
|
NodeStats stats = 4;
|
|
}
|
|
|
|
message NodeStats {
|
|
// when server was started
|
|
int64 started_at = 1;
|
|
// when server last reported its status
|
|
int64 updated_at = 2;
|
|
uint32 num_rooms = 3;
|
|
uint32 num_clients = 4;
|
|
uint32 num_tracks_in = 5;
|
|
uint32 num_tracks_out = 6;
|
|
}
|
|
|
|
// message to RTC nodes
|
|
message RTCNodeMessage {
|
|
string participant_key = 1;
|
|
oneof message {
|
|
StartSession start_session = 2;
|
|
SignalRequest request = 3;
|
|
// internal messages
|
|
RoomParticipantIdentity remove_participant = 4;
|
|
MuteRoomTrackRequest mute_track = 5;
|
|
}
|
|
}
|
|
|
|
// message to Signal nodes
|
|
message SignalNodeMessage {
|
|
string connection_id = 1;
|
|
oneof message {
|
|
SignalResponse response = 2;
|
|
EndSession end_session = 3;
|
|
}
|
|
}
|
|
|
|
message StartSession {
|
|
string room_name = 1;
|
|
string identity = 2;
|
|
string connection_id = 3;
|
|
// if a client is reconnecting (i.e. resume instead of restart)
|
|
bool reconnect = 4;
|
|
// metadata to pass to participant
|
|
string metadata = 5;
|
|
}
|
|
|
|
message EndSession {
|
|
}
|
|
|
|
message RemoveParticipant {
|
|
string participant_id = 1;
|
|
} |