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

Sounds do not play in Safari +1 #80

Open
guoguofish opened this issue Oct 16, 2014 · 3 comments
Open

Sounds do not play in Safari +1 #80

guoguofish opened this issue Oct 16, 2014 · 3 comments

Comments

@guoguofish
Copy link

The following results from my testing:
Complete Success: My codes in Chrome on OS X 10.9.5 ( MacBookPro )
Your demo in Chrome on OS X 10.9.5 ( MacBookPro )

Partial success: Your demo in Safari on OS X 10.9.5 ( MacBookPro )
A sound by clicking a letter work only once .

Failure: My codes in Safari(v6-8) on OS X 10.9.5 ( MacBookPro )
My codes in Chrome on IOS(v7-8) ( ipad2 )
My codes in Safari on IOS(v7-8) ( ipad2 )

I inspect "loadstart" event and the others.

_mySound.bind('loadstart',function(e){
// debug
$('#tm-debug').append( '

buzz:loadstart event > '+Object.keys(e)+'

');
});

Result is " buzz:loadstart event > clipboardData " when failure. Then others event are not triggered.

Result is " buzz:loadstart event > clipboardData,path,cancelBubble,returnValue,srcElement,defaultPrevented,timeStamp,cancelable,bubbles,eventPhase,currentTarget,target,type " when success.Then others event are normal.

@christian-fei
Copy link

stumbled upon the same issue https://github.com/christian-fei/pomodoro.cc/issues/57
do you have any updates?

@jaysalvat
Copy link
Owner

Hello,

It works well for me on Safari.
Impossible to reproduce the problem on Safari desktop. Safari IOS doesn't allow to set volume or autoplay sound. It's a known limitation, not a bug.

@christian-fei
It seems Safari doesn't work well with webAudioApi.
Set webAudioApi to false.

@christian-fei
Copy link

ooooh, thanks will try!

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

3 participants