flutter-web-app audio autoplay restriction policy: play a sound at defined interval #122934
Unanswered
toutPetitPoissonRouge
asked this question in
Programming Help
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
Hello,
i want to create a web-app which will play a sound (from asset) every 2 s. You find below a simplifed version of the code. This code works perfectely fine on desktop browsers like chrome or firefox. But the audio fonction does not even start on mobile browser (chrome, safari). I guess it is due to the autoplay restriction policy in mobile browsers. Does any body faced the same issue ? and/or has ideas how to solve that ?
Here is the code:
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions