Skip to content

Commit c6ffa8e

Browse files
Option to control auto subscribe of data tracks. (#1365)
* Option to control auto subscribe of data tracks. * generated protobuf * Create plenty-jobs-pump.md --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d4c49f1 commit c6ffa8e

File tree

3 files changed

+36
-21
lines changed

3 files changed

+36
-21
lines changed

.changeset/plenty-jobs-pump.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+
Option to control auto subscribe of data tracks.

livekit/livekit_rtc.pb.go

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

protobufs/livekit_rtc.proto

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
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

2219
import "livekit_models.proto";
23-
2420
import "logger/options.proto";
2521

22+
option csharp_namespace = "LiveKit.Proto";
23+
option go_package = "github.com/livekit/protocol/livekit";
24+
option ruby_package = "LiveKit::Proto";
25+
2626
message SignalRequest {
2727
oneof message {
2828
// participant offer for publisher
@@ -316,8 +316,6 @@ message UpdateTrackSettings {
316316
uint32 priority = 8;
317317
}
318318

319-
320-
321319
message UpdateLocalAudioTrack {
322320
string track_sid = 1;
323321
repeated AudioTrackFeature features = 2;
@@ -332,9 +330,9 @@ message UpdateLocalVideoTrack {
332330
message LeaveRequest {
333331
// indicates action clients should take on receiving this message
334332
enum Action {
335-
DISCONNECT = 0; // should disconnect
336-
RESUME = 1; // should attempt a resume with `reconnect=1` in join URL
337-
RECONNECT = 2; // should attempt a reconnect, i. e. no `reconnect=1`
333+
DISCONNECT = 0; // should disconnect
334+
RESUME = 1; // should attempt a resume with `reconnect=1` in join URL
335+
RECONNECT = 2; // should attempt a reconnect, i. e. no `reconnect=1`
338336
}
339337

340338
// sent when server initiates the disconnect due to server-restart
@@ -551,7 +549,7 @@ message RequestResponse {
551549
NOT_ALLOWED = 2;
552550
LIMIT_EXCEEDED = 3;
553551
QUEUED = 4;
554-
UNSUPPORTED_TYPE= 5;
552+
UNSUPPORTED_TYPE = 5;
555553
UNCLASSIFIED_ERROR = 6;
556554
INVALID_HANDLE = 7;
557555
INVALID_NAME = 8;
@@ -583,6 +581,7 @@ message ConnectionSettings {
583581
bool adaptive_stream = 2;
584582
optional bool subscriber_allow_pause = 3;
585583
bool disable_ice_lite = 4;
584+
optional bool auto_subscribe_data_track = 5;
586585
}
587586

588587
message JoinRequest {
@@ -618,7 +617,7 @@ message WrappedJoinRequest {
618617
}
619618

620619
Compression compression = 1;
621-
bytes join_request = 2; // marshalled JoinRequest + potentially compressed
620+
bytes join_request = 2; // marshalled JoinRequest + potentially compressed
622621
}
623622

624623
message MediaSectionsRequirement {

0 commit comments

Comments
 (0)