Skip to content

Commit 6425002

Browse files
committed
WIP
1 parent 2a0a69c commit 6425002

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

protobufs/livekit_models.proto

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,17 +247,18 @@ message TrackInfo {
247247
}
248248

249249
message DataTrackInfo {
250-
string sid = 1;
250+
uint32 handle = 1;
251+
string sid = 2;
251252

252253
// Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher.
253-
string name = 2;
254+
string name = 3;
254255

255256
// MIME type of the data sent over the track (e.g., `application/json`).
256257
// This must be a valid MIME type as defined by RFC 2046.
257-
string mime_type = 3;
258+
string mime_type = 4;
258259

259260
// Method used for end-to-end encryption (E2EE) on packet payloads.
260-
Encryption.Type encryption = 4;
261+
Encryption.Type encryption = 5;
261262
}
262263

263264
message DataTrackSubscriptionOptions {

protobufs/livekit_rtc.proto

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,8 @@ message PublishDataTrackRequest {
188188
}
189189

190190
message PublishDataTrackResponse {
191-
// Handle of the track that was published.
192-
uint32 handle = 1;
193191
// Information about the published track.
194-
DataTrackInfo info = 2;
192+
DataTrackInfo info = 1;
195193
}
196194

197195
message UnpublishDataTrackRequest {
@@ -200,13 +198,13 @@ message UnpublishDataTrackRequest {
200198
}
201199

202200
message UnpublishDataTrackResponse {
203-
// Handle of the track that was unpublished.
204-
uint32 handle = 1;
201+
// Information about the unpublished track.
202+
DataTrackInfo info = 1;
205203
}
206204

207205
message DataTrackSubscriberHandles {
208-
// Mapping from data track SIDs to handles subscribers will see on incoming packets.
209-
map<string, uint32> handles = 1;
206+
// Mapping from handles subscribers will see on incoming packets to data track SIDs.
207+
map<uint32, string> handles = 1;
210208
}
211209

212210
message TrickleRequest {
@@ -539,11 +537,10 @@ message RequestResponse {
539537
QUEUED = 4;
540538
UNSUPPORTED_TYPE= 5;
541539
UNCLASSIFIED_ERROR = 6;
542-
DATA_TRACK_INVALID_HANDLE = 7;
543-
DATA_TRACK_INVALID_NAME = 8;
544-
DATA_TRACK_INVALID_MIME_TYPE = 9;
545-
DATA_TRACK_NAME_TAKEN = 10;
546-
reserved 11 to 15; // Reserved for future data track errors.
540+
INVALID_HANDLE = 7;
541+
INVALID_NAME = 8;
542+
INVALID_MIME_TYPE = 9;
543+
NAME_TAKEN = 10;
547544
}
548545

549546
uint32 request_id = 1;

0 commit comments

Comments
 (0)