1

the sound works fine with desktop browsers but doesn't work in iPhone.

$('<audio id="notification_sound"><source src="sounds/notify.mp3" type="audio/mpeg"><source src="sounds/notify.wav" type="audio/wav"></audio>').appendTo('body');

tried many different ways but no luck

j08691
  • 204,283
  • 31
  • 260
  • 272
FAAD
  • 79
  • 3
  • 13
  • How about you try just placing the ` – Spencer Wieczorek Nov 30 '14 at 03:43
  • If you're expecting automatic playback, iOS doesn't allow automatic playback of media as of iOS 6.1 (see http://stackoverflow.com/questions/12496144/can-you-autoplay-html5-videos-on-the-ipad). – Tieson T. Nov 30 '14 at 03:54

0 Answers0