-
Notifications
You must be signed in to change notification settings - Fork 167
Data tracks core #862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Data tracks core #862
Changes from 24 commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
16d0294
Upgrade protocol to v1.44.0
ladvoc cb8f8a8
Integrate
ladvoc ca66c69
generated protobuf
github-actions[bot] 2ccb534
Data tracks core module
ladvoc fd1a92e
Merge remote-tracking branch 'origin/main' into ladvoc/data-tracks-core
ladvoc 7a90118
Use workspace dependencies
ladvoc afc10b4
Add to workspace
ladvoc c320670
Format
ladvoc ab8bb25
Add release-plz configuration
ladvoc d7b07a5
Used checked add
ladvoc 7fb9c8f
Fix naming typo
ladvoc e951f4a
Fix inverted logic
ladvoc 9452218
Fix potential integer overflow
ladvoc 1347840
Add crate as workspace dependency
ladvoc da85847
Fix typo
ladvoc 8239631
Apply Clippy suggestions
ladvoc 9e1b6c7
Detect duplicate packets
ladvoc b4862cf
Compare with >=
ladvoc 5ec6439
Calculate payload length during finalize
ladvoc 01c550a
Cast earlier in expression
ladvoc 8d65bbe
Handle edge case in packet reassembly
ladvoc c117c1c
Format
ladvoc b920d42
Refactor extension deserialization
ladvoc 301aedf
Use wrapping add in tests
ladvoc d2afd21
Merge remote-tracking branch 'origin/main' into ladvoc/data-tracks-core
ladvoc 8e4f0bc
generated protobuf
github-actions[bot] ca40c9f
Address comment
ladvoc 037fafc
Add packet specification
ladvoc cf1f9be
Format
ladvoc 1438639
Implement drop for manager input
ladvoc 2d7d219
Increment frame number after fallible ops
ladvoc ccdc012
Handle publisher side full reconnect
ladvoc ad94670
Merge remote-tracking branch 'origin/main' into ladvoc/data-tracks-core
ladvoc 15f3359
Update protobuf
ladvoc 1ce2601
generated protobuf
github-actions[bot] e2583ab
Add missing clone derive
ladvoc cc4f741
Rename error reason case
ladvoc ba3636b
Unpublish on unknown handle
ladvoc 3432333
Update protocol
ladvoc 586dc9d
Format
ladvoc 8529950
generated protobuf
github-actions[bot] 9923c14
Add missing await
ladvoc e5d9549
Drop guard for manager input
ladvoc fc7e146
Remove timeout
ladvoc 86924dd
Add doc comment
ladvoc 38eba78
Avoid hardcoded constants
ladvoc 0aa9412
Increase buffer counts
ladvoc 45531ef
Merge remote-tracking branch 'origin' into ladvoc/data-tracks-core
ladvoc dac3f02
Add invalid name error case
ladvoc ac7b3f8
Ignore extensions with unknown length
ladvoc bef4a10
Format
ladvoc 211313e
Merge remote-tracking branch 'origin/main' into ladvoc/data-tracks-core
ladvoc 20439ea
Add knope configuration
ladvoc 7efd0a8
Two byte TLV packet format
ladvoc 296bfbe
Merge remote-tracking branch 'origin/main' into ladvoc/data-tracks-core
ladvoc c513c70
Add changeset
ladvoc eb1d7d8
Remove comment
ladvoc 920544c
Use workspace props, add description
ladvoc 4337555
Use actual bytes for extension TLV encoding
ladvoc 0faf7c3
Skip extra bytes for future extension versions
ladvoc 5ba7822
User customizable frame buffer size for subscriptions
ladvoc 61f8f29
Format
ladvoc a7181f3
Add new method
ladvoc 41b25dd
Additional unit tests for track managers
ladvoc 37030fe
Fix publish/unpublish detection
ladvoc de06a2d
Concrete stream type for subscription
ladvoc 7fa0bc6
Consistent public type prefixing
ladvoc d5339be
Avoid intermediate collect
ladvoc f615772
Format
ladvoc fff3d9d
Rename event
ladvoc ab51dc5
Add track unpublished event
ladvoc 7b07b1d
Test track unpublished event
ladvoc bb358f3
Clamp invalid buffer size instead of panic
ladvoc 49ed111
Do not consume track on unpublish
ladvoc e81eb60
Merge remote-tracking branch 'origin/main' into ladvoc/data-tracks-core
ladvoc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| [package] | ||
| name = "livekit-datatrack" | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
| license = "Apache-2.0" | ||
| repository = "https://github.com/livekit/rust-sdks" | ||
| readme = "README.md" | ||
|
|
||
| [dependencies] | ||
| livekit-protocol = { workspace = true } | ||
| livekit-runtime = { workspace = true } | ||
| log = { workspace = true } | ||
| thiserror = "2.0.17" # TODO: upgrade workspace version to 2.x.x | ||
|
ladvoc marked this conversation as resolved.
|
||
| tokio = { workspace = true, default-features = false, features = ["sync"] } | ||
| futures-util = { workspace = true, default-features = false, features = ["sink"] } | ||
| futures-core = { workspace = true } | ||
| bytes = { workspace = true } | ||
| from_variants = { workspace = true } | ||
| tokio-stream = { workspace = true, features = ["sync"] } | ||
| anyhow = { workspace = true } # For internal error handling only | ||
| rand = { workspace = true } | ||
|
|
||
| [dev-dependencies] | ||
| test-case = "3.3" | ||
| fake = { version = "4.4", features = ["derive"] } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # LiveKit Data Track | ||
|
|
||
| **Important**: | ||
| This is an internal crate that powers the data tracks feature in LiveKit client SDKs (including [Rust](https://crates.io/crates/livekit) and others) and is not usable directly. | ||
|
|
||
| To use data tracks in your application, please use the public APIs provided by the client SDKs. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.