Skip to content

Conversation

@ladvoc
Copy link
Contributor

@ladvoc ladvoc commented Sep 25, 2025

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Sep 25, 2025

⚠️ No Changeset found

Latest commit: 2a0a69c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package or glob expression "github.com/livekit/protocol" specified in the `fixed` option does not match any package in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.

@boks1971
Copy link
Contributor

Tried to compile and push, but still merge conflicts. Tried resolving conflicts and it became a major disaster. Will look at this more later.

@ladvoc ladvoc force-pushed the ladvoc/data-tracks branch from 00c694f to 916df6d Compare October 28, 2025 07:06
@ladvoc ladvoc force-pushed the ladvoc/data-tracks branch from f1c10fc to 886b832 Compare October 28, 2025 13:27
}

message DataTrackInfo {
string sid = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add handleID to this model. I think it is useful to have it in the model.

DATA_TRACK_INVALID_NAME = 8;
DATA_TRACK_INVALID_MIME_TYPE = 9;
DATA_TRACK_NAME_TAKEN = 10;
reserved 11 to 15; // Reserved for future data track errors.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't need any reserved stuff. This can just grow as needed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And all the data track specific name can be made generic by dropping the DATA_TRACK_ prefix. We can re-use if it fits a different scenario.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example, an UnpublishDataTrackRequest could get a reply with the existing NOT_FOUND reason.


message PublishDataTrackResponse {
// Handle of the track that was published.
uint32 handle = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If handle in included in the model, this field can be dropped from this message.


message UnpublishDataTrackResponse {
// Handle of the track that was unpublished.
uint32 handle = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can change this to return DataTrackInfo so that you have both handle (assuming it is added to DataTrackInfo model) and Sid also.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to make a branch off your branch locally as I am starting to work on some initial signalling handling around this. Please let me know if you have objections to the changes I have suggested. We can discuss and pick out what works.


message DataTrackSubscriberHandles {
// Mapping from data track SIDs to handles subscribers will see on incoming packets.
map<string, uint32> handles = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also proposing changing this to map<uint32, string>.

The idea being

  • receives packets for unknown handle
  • look up map indexed by handle
  • if a mapping is found, ensure Sid can be found in remote participants.
  • create a new subscribed data track for thatn handle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants