Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soundpool Audio Not Heard When Running on Mobile Device's Chrome Web Browser #113

Open
ponderMuse opened this issue Feb 25, 2023 · 0 comments

Comments

@ponderMuse
Copy link

Hi,

Before I describe the issue I should say that I don't think the issue I am experiencing is anything to do with Chrome's policy of needing to click a button before loading any audio related code.

Soundpool audio works absolutely fine when running:

  • as a native android mobile app
  • on desktop Chrome web browser
  • on android mobile device's Firefox web browser

Soundpool audio is NOT working when running:

  • on android mobile device's Chrome web browser

I make sure to run following code only after user pressed a Flutter button:

poolOptions = const SoundpoolOptions(maxStreams: 8);
pool?.dispose();
pool = Soundpool.fromOptions(options: _poolOptions);

Is there anything else I should configure for soundpool audio to work on a mobile device's Chrome web browser?

Running code with:

  • Flutter version 3.7.5
  • Soundpool 2.3.0

Cheers, PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant