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

Audio is not playing when I phone goes to sleep mode. #1716

Open
sureshbehera6123 opened this issue Apr 19, 2024 · 1 comment
Open

Audio is not playing when I phone goes to sleep mode. #1716

sureshbehera6123 opened this issue Apr 19, 2024 · 1 comment
Labels

Comments

@sureshbehera6123
Copy link

The Problem

i am using Howler js library for playing audio. Using this library audio is playing fine in all browser windows, linux, macbook system even it goes to sleep mode or screen locked But for i phone it's not working when it's goes to sleep mode or screen locked.

Reproducible Example

No response

Reproduction Steps

const sound = new Howl({
src: [this.audioLink],
format: ['wav', 'webm', 'mp3'],
html5: true,
autoplay: true,
volume: 0.7,
onend: () => {
this.audioEnded();
},
});

Possible Solution

No response

Context

No response

Howler.js Version

v2.2.4

Affected Browser(s)/Versiuon(s)

No response

@betanyeli
Copy link

Did you try setting html5 to false? It works in some places for me, with the new iOS version the audio stops working if I set HTML to true.

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

No branches or pull requests

2 participants