I found a problem with sample extraction: nextSeekPosition was never updated when samples were missing from buffers. This causes onSamples to not be called if the data is not already in the buffers as appendBuffer would never return the offset required for the sample extraction track.
I tried to fix it with this change, feel free to make changes / suggest a better solution.
Thank you! I was having issues with the video stalling whenever I seeked back to an unbuffered period of the video stream and this solves it wonderfully!
I found a problem with sample extraction:
nextSeekPosition
was never updated when samples were missing from buffers. This causesonSamples
to not be called if the data is not already in the buffers asappendBuffer
would never return the offset required for the sample extraction track.I tried to fix it with this change, feel free to make changes / suggest a better solution.