function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shweta GargShweta Garg 

audio.play() not working in ipad

Hello  developers,

I am working on a visualforce page In which I need a beep sound after record creation.I Have stored an audio soud in static resource and using audio.play() method of javascript . It is woring in Android phones.
But It is not working in IPAD.

Please  let me know any workaround for this problem?

Thank,
Shweta

 
AbhinavAbhinav (Salesforce Developers) 
HI Swetha,

Have you checked suggestion provided on below link?

https://stackoverflow.com/questions/25023211/html5-audio-why-not-working-on-ios-no-autoplay-involved

https://stackoverflow.com/questions/31776548/why-cant-javascript-play-audio-files-on-iphone-safari

Thanks!