jhiesey / videostream

Play html5 video when from a file-like object
MIT License
243 stars 74 forks source link

Wait for initialization segment to be flushed before seeking #33

Closed jhiesey closed 7 years ago

jhiesey commented 7 years ago

Previously, if something caused another call to VideoStream._pump() before the initialization segment was sent to the SourceBuffer, the browser would never get the initialization segment, resulting in an error.

feross commented 7 years ago

LGTM! Nice debugging work! Just tested it and it works. Deployed to https://instant.io.