Open
Description
Your environment.
- Version: 72c0be8
What did you do?
I'm trying to use jitter buffer interceptor.
What did you expect?
I expect to get an error on read if the current packet was lost. And I expect to get the next packet on the next read.
What happened?
If even one packet was lost, all subsequent reads will return an error.
The reason
The interceptor does not handle the situation with the absence of the next packet and does not shift the expected packet number
It looks like we should add something like this:
if errors.Is(err, ErrNotFound) {
i.buffer.SetPlayoutHead(i.buffer.PlayoutHead() + 1)
}
Metadata
Metadata
Assignees
Labels
No labels