mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-15 16:06:41 +03:00
2ad1eff39e
Previously, the PreloadManager would consider a preload "finished" after a few major files like the manifest had been preloaded. It would start prefetching some segments, but wouldn't wait on it to notify the developer. This PR changes the PreloadManager so that PreloadManager.waitForFinish won't return until the prefetched segments have finished loading. Because of that, this also better surfaces errors thrown during segment prefetching, when preloading. Issue #7520