Skip to content

use read options in streaming API - #63

Merged
Bloomca merged 2 commits into
mainfrom
use-read-options-everywhere
Aug 25, 2026
Merged

use read options in streaming API#63
Bloomca merged 2 commits into
mainfrom
use-read-options-everywhere

Conversation

@Bloomca

@Bloomca Bloomca commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Description

Use read options in streaming API. This required chunk size to be moved to the TrackStream struct, but since streaming is a 2 step process (open track for streaming and then get next chunk, seek, etc), it is not awkward API. That being said, the chunk size will probably be customizable in the future.

This is a breaking change, this is fine since the next version is 1.0

@Bloomca Bloomca left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Posted by Llŷr

This PR folds TrackStreamOptions into the shared ReadOptions struct and moves chunk sizing onto TrackStream as a builder method. Streaming now re-applies the read-speed request on every chunk, so I strongly recommend addressing the feedback.

Comment thread src/stream.rs
@Bloomca
Bloomca merged commit 9e0b883 into main Aug 25, 2026
3 checks passed
@Bloomca
Bloomca deleted the use-read-options-everywhere branch August 25, 2026 15:08
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.

1 participant