mirror of
https://github.com/livekit/livekit.git
synced 2026-04-25 19:52:11 +00:00
50 lines
851 B
Protocol Buffer
50 lines
851 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package livekit;
|
|
option go_package = "github.com/livekit/livekit-server/proto/livekit";
|
|
|
|
message Room {
|
|
string sid = 1;
|
|
string name = 2;
|
|
uint32 empty_timeout = 3;
|
|
uint32 max_participants = 4;
|
|
int64 creation_time = 5;
|
|
}
|
|
|
|
message ParticipantInfo {
|
|
enum State {
|
|
// websocket' connected, but not offered yet
|
|
JOINING = 0;
|
|
// server received client offer
|
|
JOINED = 1;
|
|
// ICE connectivity established
|
|
ACTIVE = 2;
|
|
// WS disconnected
|
|
DISCONNECTED = 3;
|
|
}
|
|
string sid = 1;
|
|
string identity = 2;
|
|
State state = 3;
|
|
repeated TrackInfo tracks = 4;
|
|
}
|
|
|
|
enum TrackType {
|
|
AUDIO = 0;
|
|
VIDEO = 1;
|
|
DATA = 2;
|
|
}
|
|
|
|
message TrackInfo {
|
|
string sid = 1;
|
|
TrackType type = 2;
|
|
string name = 3;
|
|
bool muted = 4;
|
|
}
|
|
|
|
message DataMessage {
|
|
oneof value {
|
|
string text = 1;
|
|
bytes binary = 2;
|
|
}
|
|
}
|