Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play sound in iPhone web app

I assume there might be a HTML5 or some JS that can be used to play sound?

Before you mark this as duplicate, this question is old, so I believe outdated:

Play sound in iPhone web app with Javascript?

like image 296
Alec Smart Avatar asked Nov 15 '22 07:11

Alec Smart


1 Answers

Maybe you could use a JS event, send a event to your UIWebView delegate and then play a sound with in objective-c ?

Best solution I think ^^

For a solution in HTML5 I have no idea. You could take a look at Sound effects in JavaScript / HTML5

But I'm not sure this solution would work on all device. It depends if you need to play the sound "often" or not.

like image 82
Vinzius Avatar answered Dec 15 '22 14:12

Vinzius