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

Support iOS HTML5 audio unlocking #1057

Closed
LukeWalsh opened this issue Oct 10, 2018 · 3 comments
Closed

Support iOS HTML5 audio unlocking #1057

LukeWalsh opened this issue Oct 10, 2018 · 3 comments

Comments

@LukeWalsh
Copy link

There's no way to create a Howl with HTML5 and have mobileAutoEnable work -- therefore there's no way to create an HTML5 Howl that works on iOS (and I believe some other mobile browsers that implement audio locking).

For example:

    Howler.mobileAutoEnable = true;
    this.audio = new Howl({
      src: `myaudio`,
      format: ['mp3'],
      autoplay: false,
      loop: true,
      html5: true
    });

After the above Howler.mobileAutoEnable will be false.

I'm not sure if A/ more needs to be done to set up automatic audio unlocking using HTML5 such that it's expected behavior for mobileAutoEnable to be forced to false since it's not supported for HTML or B/ if something is accidentally flipping the mobileAutoEnable boolean.

@scottanderson42
Copy link
Contributor

Linking this here for reference: #1008

@goldfire
Copy link
Owner

goldfire commented Dec 8, 2018

This should be fixed with #1008, which I'll try to have pushed out with several other updates in v2.1.0 early next week.

@goldfire goldfire closed this as completed Dec 8, 2018
@psntr
Copy link

psntr commented Feb 11, 2019

Can anyone confirm that #1008 did fix that issue?

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

4 participants