Open lannymcnie opened 8 years ago
I'm having the same issue.
Tested with earlier versions of SoundJS. This appears to be an issue with Safari. Unable to test in earlier versions (9.0.0, 8.X).
Bug is still present. Safari 9.1 on OSX El Capitan (10.11.4)
Any news on this issue? It seems to be the same situation on iOS.
It's definitely a bug with WebAudioAPI implementation in Safari (definitely on OSX El Capitan). I filed a bug report to Apple few weeks ago, not much feedback from them I'm afraid.
Which behavior of mobile Safari? Beacuse I'm having the same issue on iPad ( iOS 9.3.1 ) An sound instance have playSuccessed state but, sounds doesn't play.
Same issue on desktop Safari 9.1. I've said it before, I'll take IE over Safari any day because IE's issues are well documented and Apple never admits a mistake.
Call createjs.Sound.on("fileload", this.loadHandler, this); after 0.5-1.0sec from "DOMContentLoaded". It seems to be solved. But I don't know this is the right way.
Same on Safari 10.0.0 few hundred ms delay solves the problem
Seeing similar behavior on Safari 12. I found allusion to an "automatic inference engine" in this article that supposedly decides if a given media is allowed to play. My best guess is relative proximity to the user-initiated event handler still applies (or has been made even stricter). The SoundJS demo still works though
-- Sound is muted --
-- Sound Plays --
Note that this doesn't happen if you open the page via a link. Only loading in an existing window via the URL bar.
Currently happens in Safari 9.0.1, tested in both El Capitan and Yosemite. Tested with earlier versions (SoundJS 0.5.2 onward, problem persists)