Reputation: 50722
Is it possible to play embedded MP3 on iPad Safari (the way you do on normal desktop browsers) ?
If yes, do we need to code separately for iPad Safari ?
The reason I am asking is bcoz in my app, the desktop code for mp3 is not working on iPad.. The code for desktop is
<EMBED src="'+audioUrl+'" autostart=true loop=false volume=100 hidden=true>
Upvotes: 0
Views: 4954
Reputation: 1296
You can use the HTML 5 <audio>
tag. Check out w3schools - HTML5 Audio.
There is also a table on there telling you what formats work with what browsers.
Upvotes: 1
Reputation: 3292
To add to the excellent answers of Blindy and John, the IPad should be HTML5 compliant which means that you can use the HTML5 audio and vido tags. You can read more about this at The Safari Developer Library.
Upvotes: 1
Reputation: 67352
Why don't you just use the <audio>
tag, that's what it's there for.
To answer your question, yes it is possible.
Upvotes: 1