Skip to content

Commit 48ed047

Browse files
RPC changes for ingress proxy WHIP (#1194)
* Add rpc for ingress whip proxy * remove track stats * use video layer mode for skip reference ts * compile error * generated protobuf --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 29a3aca commit 48ed047

File tree

8 files changed

+274
-151
lines changed

8 files changed

+274
-151
lines changed

livekit/livekit_models.pb.go

Lines changed: 13 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protobufs/livekit_models.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ message ParticipantInfo {
175175
DisconnectReason disconnect_reason = 16;
176176
repeated KindDetail kind_details = 18;
177177

178-
// NEXT_ID: 19
178+
// NEXT_ID: 19
179179
}
180180

181181
enum TrackType {
@@ -257,6 +257,7 @@ message VideoLayer {
257257
MODE_UNUSED = 0;
258258
ONE_SPATIAL_LAYER_PER_STREAM = 1;
259259
MULTIPLE_SPATIAL_LAYERS_PER_STREAM = 2;
260+
ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR = 3;
260261
}
261262

262263
// for tracks with a single layer, this should be HIGH

protobufs/rpc/ingress.proto

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,14 @@ service IngressHandler {
5656
rpc ICERestartWHIPResource(ICERestartWHIPResourceRequest) returns (ICERestartWHIPResourceResponse) {
5757
option (psrpc.options).topics = true;
5858
};
59-
59+
rpc WHIPRTCConnectionNotify(WHIPRTCConnectionNotifyRequest) returns (google.protobuf.Empty) {
60+
option (psrpc.options) = {
61+
topics: true
62+
topic_params: {
63+
single_server: true;
64+
}
65+
};
66+
};
6067
}
6168

6269
message ListActiveIngressRequest {}
@@ -86,6 +93,11 @@ message ICERestartWHIPResourceResponse {
8693
string etag = 2;
8794
}
8895

96+
message WHIPRTCConnectionNotifyRequest {
97+
string participant_id = 1;
98+
bool closed = 2;
99+
}
100+
89101
message StartIngressRequest {
90102
livekit.IngressInfo info = 1;
91103
string token = 2;

protobufs/rpc/whip_signal.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ message WHIPCreateRequest {
3131
livekit.StartSession start_session = 1;
3232
string offer_sdp = 2;
3333
map<string, TrackList> subscribed_participant_tracks = 3;
34+
bool from_ingress = 4;
3435
}
3536

3637
message WHIPCreateResponse {
@@ -101,4 +102,5 @@ message WHIPParticipantDeleteSessionRequest {
101102
string room = 1;
102103
string participant_identity = 2;
103104
string participant_id = 3;
105+
bool from_sweeper = 4;
104106
}

rpc/ingress.pb.go

Lines changed: 100 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)