mirror of
https://github.com/livekit/livekit.git
synced 2026-05-25 20:45:13 +00:00
54 lines
1.1 KiB
Protocol Buffer
54 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package livekit;
|
|
option go_package = "github.com/livekit/livekit-server/proto/livekit";
|
|
|
|
import "model.proto";
|
|
|
|
message SignalRequest {
|
|
oneof message {
|
|
SessionDescription offer = 1;
|
|
SessionDescription negotiate = 2;
|
|
Trickle trickle = 3;
|
|
MediaControl control = 4;
|
|
}
|
|
}
|
|
|
|
message SignalResponse {
|
|
oneof message {
|
|
// sent when join is accepted
|
|
JoinResponse join = 1;
|
|
// sent when offer is answered
|
|
SessionDescription answer = 2;
|
|
// sent when a negotiated sd is available (could be either offer or answer)
|
|
SessionDescription negotiate = 3;
|
|
// sent when an ICE candidate is available
|
|
Trickle trickle = 4;
|
|
// sent when participants in the room has changed
|
|
ParticipantUpdate update = 5;
|
|
}
|
|
}
|
|
|
|
message Trickle {
|
|
string candidateInit = 1;
|
|
|
|
}
|
|
|
|
message SessionDescription {
|
|
string type = 1; // "answer" | "offer" | "pranswer" | "rollback"
|
|
string sdp = 2;
|
|
}
|
|
|
|
message JoinResponse {
|
|
ParticipantInfo participant = 1;
|
|
repeated ParticipantInfo other_participants = 2;
|
|
}
|
|
|
|
message MediaControl {
|
|
|
|
}
|
|
|
|
message ParticipantUpdate {
|
|
repeated ParticipantInfo participants = 1;
|
|
}
|