Decouple appending bytes from downloading and parsing segments
We have to wait until the SourceBuffer is empty before resetting the decoder when crossing over a timestamp discontinuity. Make appending bytes happen asynchronously so that we can delay appends util the buffer is empty when we see a discontinuity in the playlist. Fix tests.
Showing
2 changed files
with
91 additions
and
40 deletions
-
Please register or sign in to post a comment