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 files not supported on Safari 11 desktop #25

Closed
po5i opened this issue Oct 31, 2017 · 0 comments
Closed

Audio files not supported on Safari 11 desktop #25

po5i opened this issue Oct 31, 2017 · 0 comments

Comments

@po5i
Copy link

po5i commented Oct 31, 2017

I got the response DOMError {name: "NotSupportedError", message: "The operation is not supported."} on the following HTML when I play the captcha sound:

var a = new Audio("https://xxxxxxxxxx.com/captcha/audio/52d3c6188d2fb733480ce2198a7fde4ec1e9d579");
// var a = new Audio("https://www.w3schools.com/html/horse.mp3"); // works!
// var a = new Audio("http://www.wavsource.com/snds_2017-09-17_1751672946049674/movie_stars/deniro/meet_parents_bring_u_down.wav");  // works!
var promise = a.play();
promise.catch(error => {
	console.log(error)
})
.then(() => {
	console.log('success, it played!')
})
@po5i po5i closed this as completed Nov 1, 2017
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