Skip to content

Commit a8bb820

Browse files
Add auto_subscribe_data_track to StartSession. (#1366)
* Add auto_subscribe_data_track to StartSession. * Update big-ducks-play.md for new feature Add auto_subscribe_data_track feature to StartSession. * generated protobuf --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent c6ffa8e commit a8bb820

File tree

3 files changed

+53
-33
lines changed

3 files changed

+53
-33
lines changed

.changeset/big-ducks-play.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@livekit/protocol": patch
3+
"github.com/livekit/protocol": patch
4+
---
5+
6+
Add auto_subscribe_data_track to StartSession.

livekit/livekit_internal.pb.go

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

protobufs/livekit_internal.proto

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@
1515
syntax = "proto3";
1616

1717
package livekit;
18-
option go_package = "github.com/livekit/protocol/livekit";
19-
option csharp_namespace = "LiveKit.Proto";
20-
option ruby_package = "LiveKit::Proto";
2118

19+
import "livekit_agent_dispatch.proto";
20+
import "livekit_egress.proto";
2221
// internal protos, not exposed to clients
2322
import "livekit_models.proto";
24-
import "livekit_egress.proto";
25-
import "livekit_agent_dispatch.proto";
2623
import "livekit_room.proto";
2724
import "livekit_rtc.proto";
2825

26+
option csharp_namespace = "LiveKit.Proto";
27+
option go_package = "github.com/livekit/protocol/livekit";
28+
option ruby_package = "LiveKit::Proto";
29+
2930
enum NodeType {
3031
SERVER = 0;
3132
CONTROLLER = 1;
@@ -65,14 +66,14 @@ message NodeStats {
6566
int32 num_tracks_in = 5;
6667
int32 num_tracks_out = 6;
6768
int32 num_track_publish_attempts = 36;
68-
float track_publish_attempts_per_sec = 37 [deprecated=true];
69+
float track_publish_attempts_per_sec = 37 [deprecated = true];
6970
int32 num_track_publish_success = 38;
70-
float track_publish_success_per_sec = 39 [deprecated=true];
71+
float track_publish_success_per_sec = 39 [deprecated = true];
7172
int32 num_track_publish_cancels = 51;
7273
int32 num_track_subscribe_attempts = 40;
73-
float track_subscribe_attempts_per_sec = 41 [deprecated=true];
74+
float track_subscribe_attempts_per_sec = 41 [deprecated = true];
7475
int32 num_track_subscribe_success = 42;
75-
float track_subscribe_success_per_sec = 43 [deprecated=true];
76+
float track_subscribe_success_per_sec = 43 [deprecated = true];
7677
int32 num_track_subscribe_cancels = 52;
7778

7879
// packet
@@ -81,40 +82,40 @@ message NodeStats {
8182
uint64 packets_in = 9;
8283
uint64 packets_out = 10;
8384
uint64 nack_total = 11;
84-
float bytes_in_per_sec = 12 [deprecated=true];
85-
float bytes_out_per_sec = 13 [deprecated=true];
85+
float bytes_in_per_sec = 12 [deprecated = true];
86+
float bytes_out_per_sec = 13 [deprecated = true];
8687
float packets_in_per_sec = 14;
87-
float packets_out_per_sec = 15 [deprecated=true];
88-
float nack_per_sec = 16 [deprecated=true];
88+
float packets_out_per_sec = 15 [deprecated = true];
89+
float nack_per_sec = 16 [deprecated = true];
8990

9091
// system
9192
uint32 num_cpus = 17;
9293
float load_avg_last1min = 18;
9394
float load_avg_last5min = 19;
9495
float load_avg_last15min = 20;
9596
float cpu_load = 21;
96-
float memory_load = 33 [deprecated=true];
97+
float memory_load = 33 [deprecated = true];
9798
uint64 memory_total = 34;
9899
uint64 memory_used = 35;
99100
uint32 sys_packets_out = 28;
100101
uint32 sys_packets_dropped = 29;
101-
float sys_packets_out_per_sec = 30 [deprecated=true];
102-
float sys_packets_dropped_per_sec = 31 [deprecated=true];
103-
float sys_packets_dropped_pct_per_sec = 32 [deprecated=true];
102+
float sys_packets_out_per_sec = 30 [deprecated = true];
103+
float sys_packets_dropped_per_sec = 31 [deprecated = true];
104+
float sys_packets_dropped_pct_per_sec = 32 [deprecated = true];
104105

105106
// retransmissions
106107
uint64 retransmit_bytes_out = 22;
107108
uint64 retransmit_packets_out = 23;
108-
float retransmit_bytes_out_per_sec = 24 [deprecated=true];
109-
float retransmit_packets_out_per_sec = 25 [deprecated=true];
109+
float retransmit_bytes_out_per_sec = 24 [deprecated = true];
110+
float retransmit_packets_out_per_sec = 25 [deprecated = true];
110111

111112
// participant joins
112113
uint64 participant_signal_connected = 26;
113-
float participant_signal_connected_per_sec = 27 [deprecated=true];
114+
float participant_signal_connected_per_sec = 27 [deprecated = true];
114115
uint64 participant_rtc_connected = 44;
115-
float participant_rtc_connected_per_sec = 45 [deprecated=true];
116+
float participant_rtc_connected_per_sec = 45 [deprecated = true];
116117
uint64 participant_rtc_init = 46;
117-
float participant_rtc_init_per_sec = 47 [deprecated=true];
118+
float participant_rtc_init_per_sec = 47 [deprecated = true];
118119
uint64 participant_rtc_canceled = 53;
119120

120121
// forward metrics
@@ -172,9 +173,10 @@ message StartSession {
172173
// if a client is reconnecting (i.e. resume instead of restart)
173174
bool reconnect = 4;
174175
bool auto_subscribe = 9;
175-
bool hidden = 10 [deprecated=true];
176+
optional bool auto_subscribe_data_track = 25;
177+
bool hidden = 10 [deprecated = true];
176178
ClientInfo client = 11;
177-
bool recorder = 12 [deprecated=true];
179+
bool recorder = 12 [deprecated = true];
178180
string name = 13;
179181
// A user's ClaimGrants serialized in JSON
180182
string grants_json = 14;
@@ -189,6 +191,8 @@ message StartSession {
189191
SessionDescription publisher_offer = 22;
190192
SyncState sync_state = 23;
191193
bool use_single_peer_connection = 24;
194+
195+
// NEXT ID: 26
192196
}
193197

194198
// room info that should not be returned to clients

0 commit comments

Comments
 (0)