wle8300 / uifx

Audio library designed for UI sound effects
https://wle8300.github.io/uifx-demo
MIT License
112 stars 11 forks source link

play() can only be initiated by a user gesture and cleaning up #20

Closed RWOverdijk closed 4 years ago

RWOverdijk commented 4 years ago

Get this error when playing a notification sound:

play() can only be initiated by a user gesture

Is this for all sounds?

Also I'm curious how to clean up sounds when I'm done with them, they seem to linger in the DOM.

wle8300 commented 4 years ago

What OPerating System are you getting these errors? It works on iOS and Android.

Regarding the clean-up of HTML markup: uifx doesn’t do this BUT that would be an amazing feature to have. Great idea! 💡 Interested in creating a PR for this?

Sent from my iPhone

On May 8, 2020, at 1:12 PM, Roberto Wesley Overdijk notifications@github.com wrote:

Get this error when playing a notification sound:

play() can only be initiated by a user gesture

Is this for all sounds?

Also I'm curious how to clean up sounds when I'm done with them, they seem to linger in the DOM.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

RWOverdijk commented 4 years ago

@wle8300 MacOS. :)

The issue is only if the user hasn't interacted with the page yet; which makes sense so it's not a huge deal.

Interested in creating a PR for this?

Sure thing, might take a bit though.

RWOverdijk commented 4 years ago

Correction, even after interacting with the page I get this message.

RWOverdijk commented 4 years ago

Huh. Howler does work.

wle8300 commented 4 years ago

Not sure what’s causing it. I did a lot of testing already.

You’ll want to check your implementation of uifx

Sent from my iPhone

On May 9, 2020, at 4:31 AM, Roberto Wesley Overdijk notifications@github.com wrote:

Huh. Howler does work.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.