Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/plenty-jobs-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@livekit/protocol": patch
"github.com/livekit/protocol": patch
---

Option to control auto subscribe of data tracks.
30 changes: 20 additions & 10 deletions livekit/livekit_rtc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 10 additions & 11 deletions protobufs/livekit_rtc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
syntax = "proto3";

package livekit;
option go_package = "github.com/livekit/protocol/livekit";
option csharp_namespace = "LiveKit.Proto";
option ruby_package = "LiveKit::Proto";

import "livekit_models.proto";

import "logger/options.proto";

option csharp_namespace = "LiveKit.Proto";
option go_package = "github.com/livekit/protocol/livekit";
option ruby_package = "LiveKit::Proto";

message SignalRequest {
oneof message {
// participant offer for publisher
Expand Down Expand Up @@ -316,8 +316,6 @@ message UpdateTrackSettings {
uint32 priority = 8;
}



message UpdateLocalAudioTrack {
string track_sid = 1;
repeated AudioTrackFeature features = 2;
Expand All @@ -332,9 +330,9 @@ message UpdateLocalVideoTrack {
message LeaveRequest {
// indicates action clients should take on receiving this message
enum Action {
DISCONNECT = 0; // should disconnect
RESUME = 1; // should attempt a resume with `reconnect=1` in join URL
RECONNECT = 2; // should attempt a reconnect, i. e. no `reconnect=1`
DISCONNECT = 0; // should disconnect
RESUME = 1; // should attempt a resume with `reconnect=1` in join URL
RECONNECT = 2; // should attempt a reconnect, i. e. no `reconnect=1`
}

// sent when server initiates the disconnect due to server-restart
Expand Down Expand Up @@ -551,7 +549,7 @@ message RequestResponse {
NOT_ALLOWED = 2;
LIMIT_EXCEEDED = 3;
QUEUED = 4;
UNSUPPORTED_TYPE= 5;
UNSUPPORTED_TYPE = 5;
UNCLASSIFIED_ERROR = 6;
INVALID_HANDLE = 7;
INVALID_NAME = 8;
Expand Down Expand Up @@ -583,6 +581,7 @@ message ConnectionSettings {
bool adaptive_stream = 2;
optional bool subscriber_allow_pause = 3;
bool disable_ice_lite = 4;
optional bool auto_subscribe_data_track = 5;
}

message JoinRequest {
Expand Down Expand Up @@ -618,7 +617,7 @@ message WrappedJoinRequest {
}

Compression compression = 1;
bytes join_request = 2; // marshalled JoinRequest + potentially compressed
bytes join_request = 2; // marshalled JoinRequest + potentially compressed
}

message MediaSectionsRequirement {
Expand Down
Loading