Skip to content

Headphone action button stops audio but does not trigger events #1345

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

Open
enzoferey opened this issue May 27, 2020 · 1 comment
Open

Headphone action button stops audio but does not trigger events #1345

enzoferey opened this issue May 27, 2020 · 1 comment

Comments

@enzoferey
Copy link

When using the action button of headphones, the audio source gets properly played / paused, but events don't trigger and .playing() does not reflect the right value.

I know headphone action button has no listener per se, but normally if you add event listeners on a audio or video HTML tag they do get triggered. Howler doesn't use any tag underneath (is it possible to do so in some way ?), but could hooking on the Audio object events be a solution ?

@bikubi
Copy link
Contributor

bikubi commented Sep 1, 2020

Howler does not pay attention to external audio events, see my comment on #1262 for more information and a possible workaround.

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

2 participants