Skip to content

Code advice: Implement forward and backward #156

Description

@pmoscode

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

Activity

  1. MarkKremer commented on Oct 8, 2023

    @MarkKremer
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions