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

Code advice: Implement forward and backward #156

Open
pmoscode opened this issue Oct 21, 2022 · 1 comment
Open

Code advice: Implement forward and backward #156

pmoscode opened this issue Oct 21, 2022 · 1 comment

Comments

@pmoscode
Copy link

Hi folks,
I have a list of streams wrapped by beep.Seq(). These are all played sequential one by one.
How do I get it managed to jump forward and backward in the streams.

Let's assume this:
Seq: Stream 1 -> Stream 2 -> Stream 3 -> Stream 4

When the player is started and is in stream 2 after a while, I want to jump to stream 3.
From there I want to jump back to stream 1.

How do I achieve that? I know, I could rebuild the sequence (beep.Seq()), but is there another way?
Or isn't it possible, because I missed something...

Thx

@MarkKremer
Copy link
Contributor

I don't think this is possible currently. You would either have to rebuild the sequence or add the sequence to a buffer, which implements StreamSeeker.

This is a feature I would like to see supported in the future. Question is how the implementation would work...

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