The issue is play in low battery mode will only work if called in an event handler
Because were assuming that the play button would always work so the state informed the elements state, play was called in an effect - async code, this was the wrong way round so it has now been reversed so the state of the element informs the state of the UI and the play method is called in the event handler.
Also suppress the stupid error that it can't autoplay because LBM.
won't work in async function
Why
What
The issue is
play
in low battery mode will only work if called in an event handlerBecause were assuming that the play button would always work so the state informed the elements state,
play
was called in an effect - async code, this was the wrong way round so it has now been reversed so the state of the element informs the state of the UI and theplay
method is called in the event handler.Also suppress the stupid error that it can't autoplay because LBM.
Checklist