Skip to content
Draft
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/track-priority.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@livekit/protocol": minor
"github.com/livekit/protocol": minor
---

Add `priority` to `AddTrackRequest`, `PublishDataTrackRequest`, `TrackInfo` and `DataTrackInfo`: a publisher sets each track's network priority, 0 the most important
39 changes: 32 additions & 7 deletions livekit/livekit_models.pb.go

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

40 changes: 33 additions & 7 deletions livekit/livekit_rtc.pb.go

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

8 changes: 8 additions & 0 deletions protobufs/livekit_models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ message TrackInfo {
BackupCodecPolicy backup_codec_policy = 20;

repeated PacketTrailerFeature packet_trailer_features = 21;

// Priority of the track over the network, from `AddTrackRequest.priority`: 0 is the
// most important. Unset when the publisher did not set one.
optional uint32 priority = 22;
}

message DataTrackInfo {
Expand All @@ -293,6 +297,10 @@ message DataTrackInfo {

// ID of the schema used by frames on this track if the track is typed.
optional DataTrackSchemaId schema = 6;

// Priority of the track over the network, from `PublishDataTrackRequest.priority`: 0 is
// the most important. Unset when the publisher did not set one.
optional uint32 priority = 7;
}

// Encoding for frame payloads.
Expand Down
9 changes: 9 additions & 0 deletions protobufs/livekit_rtc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ message AddTrackRequest {
repeated AudioTrackFeature audio_features = 17;

repeated PacketTrailerFeature packet_trailer_features = 18;

// Priority of the track over the network, ordered the way firewall rules are: 0 is the
// most important and a larger value is less important. Unset leaves the choice to the
// server. The server may raise a value that is too important (it keeps the lowest values
// for its own traffic).
optional uint32 priority = 19;
}

message PublishDataTrackRequest {
Expand All @@ -206,6 +212,9 @@ message PublishDataTrackRequest {
// ID of the schema used by frames on this track if the track is typed.
// If set, the associated schema must be stored with `StoreDataBlobRequest`.
optional DataTrackSchemaId schema = 5;

// Priority of the track over the network, as in `AddTrackRequest.priority`.
optional uint32 priority = 6;
}

message PublishDataTrackResponse {
Expand Down
Loading