Skip to main content
Marald Bes
Known Participant
November 7, 2018
Question

No sound in HTML 5 with latest safari, previous solution not working

  • November 7, 2018
  • 1 reply
  • 9212 views

Since the latest update of Safari, audio in HTML 5 export from Animate is not playing anymore. This was already the case with iOS but I built in a detection for iOS that showed a play button. After press the audio did sound. I\ve now included safari in the detection loop but in the latest safari does not work.

How do I start playing with audio with user consent? Should I disable autoplay altogether? But then all people with other browsers will have to push to start as well, while this is normally not the case.

This topic has been closed for replies.

1 reply

Preran
Community Manager
Community Manager
November 8, 2018

Not the expert here, but does this solution help? javascript - HTML5 Audio object doesn't play in Safari - Stack Overflow

Thanks,

Preran

Marald Bes
Known Participant
November 8, 2018

Thanks, but this thread is talking about Safari 5 and is from 2010, the current version just released of Safari is12.0.1.

It is related to the muting of autoplay elements, which the HTML5 canvas in export from Adobe Animate standard is.

It was working fine with Safari 11.x which was released with Mojave. So it's only on the latest version where audio is still blocked on autoplay items even after a click. (normally it would play sound but only after a click / interaction on a canvas element, like Safari on iOS and the upcoming Chrome version)

Is there a publish template available from Adobe that requires user interaction before the canvas starts playing? That could probably fix it. But it would cause other browsers to need interaction before playing as well.

Video | Photography | Virtual Realitywww.anymotion.nl