Skip to content
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

Seeking within existing buffers #95

Closed
jacksonh opened this issue Sep 18, 2024 · 2 comments
Closed

Seeking within existing buffers #95

jacksonh opened this issue Sep 18, 2024 · 2 comments

Comments

@jacksonh
Copy link
Contributor

Is there a way I could seek if its within the current buffered data? For instance imagine progress is at 10s, duration is 20s. Could seeking forward 5s or backwards 5s work without seek being called on my underlying stream?

@dimitris-c
Copy link
Owner

Unfortunately I don't think that's possible with the current implementation. To achieve this I believe audio buffer should be cached and revisit on seek. In theory it's possible but I believe in practice it will be quite some work to do.

@jacksonh
Copy link
Contributor Author

Thank you, yeah I guess I just need to implement proper caching then this issue goes away. Probably more a responsibility of the stream provider than the underlying system.

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

No branches or pull requests

2 participants