Skip to content

start the streaming from a specific seconds #2148

Answered by Sean-Der
hamedbrd asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hamedbrd

first, I am trying to find out how I can start the streaming from a specific second.

In play-from-disk here we loop the file and compute the duration of each ogg page. I would start with discarding samples until it reaches the time you want to start playing.

For pause you could Stop/Sleep in the same loop.

If you want to start a repo with edits I am happy to review any changes you make!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Sean-Der
Comment options

You must be logged in to vote
1 reply
@Sean-Der
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants