The iPhone/Pad don't do Flash. Android does and should work with this current setup. I've tested it (actually had someone with an Android test it) on a very similar script and that worked.
The iDevices probably require the .ogg versions of the sound files, and would then be able to play them via the HTML 5 solution of jPlayer. I've had that tested too, and with the .ogg file also available as described below, that worked too.
The coding isn't that tricky, you just have to add the locations of the .ogg files to the playlist for each entry. For example:
Code:
{name:"Gold Rush",mp3:"http://www.thehordeandtheharem.com/media/harvest/gold-rush.mp3"}
would become:
Code:
{name:"Gold Rush",mp3:"http://www.thehordeandtheharem.com/media/harvest/gold-rush.mp3",oga:"http://www.thehordeandtheharem.com/media/harvest/gold-rush.ogg"}
Do that for each of the sounds in the playlist.
And for the setMedia command here:
Code:
function playerConfig(index) {
playing = index;
$('#audio').jPlayer("setMedia", {mp3: playlist[playing].mp3});
$('#meta span').text(playlist[playing].name);
}
That would become:
Code:
function playerConfig(index) {
playing = index;
$('#audio').jPlayer("setMedia", {mp3: playlist[playing].mp3, oga: playlist[playing].oga});
$('#meta span').text(playlist[playing].name);
}
Then all you need to do is make .ogg versions of each file and upload them to the server at those locations. There are free online utilities for that, as well as free programs you can download that can do that. Make sure you find one that can convert to .ogg at the same bitrate as your mp3 file. The .ogg file should then come in at slightly less bytes than the mp3. If not, use a different converter.
Bookmarks