fix: keep audio play button available while loading#4037
Conversation
|
Hi @rafael226, can you please explain the purpose of this PR? Is it possible to play already while the player is still loading? |
|
Hi @jcbrand, yes. The purpose is to avoid blocking the user's play intent while the audio element is still loading metadata. The PR doesn't try to force playback before the browser has enough data. It only keeps the custom Play button enabled/focusable during the loading state, so a mouse click or keyboard Enter can call Before this change, So the practical intent is: loading should show a spinner/status, but should not make the Play control unavailable. |
Fixes #3382
Summary
Tests
Note: the full Karma suite currently fails later in unrelated existing MAM/MUC tests (src/plugins/muc-views/tests/mam.js) after the new audio test has already passed.