mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
ffafacfb84
Power-saving features on Chrome and Edge were subtly interfering with playback tests. Timers could be throttled, and both video-only media and media in occluded windows could be paused by the browser. This was discovered only after awaiting play() Promises in all tests. These Promises were being rejected with useful error messages that led to these discoveries. Awaiting play() requires us to disable stall detection during playback tests. This is because on some platforms, stalls get resolved by calling pause() and then play(), which would cause the original awaited play() Promise to be rejected. Finally, some Player tests created additional Player instances that were unnecessary. Removing those allowed me to centralize most of the configuration to disable stall detection.