use setMedia for m4a filetype

This commit is contained in:
btouellette 2014-07-11 13:36:20 -07:00 committed by Trevor Squillario
parent e5318f395b
commit bf96983edf

View file

@ -255,6 +255,10 @@
$(this).jPlayer("setMedia", {
mp3: url
});
} else if (suffix == 'm4a') {
$(this).jPlayer("setMedia", {
m4a: url
});
}
if (!loadonly) { // Start playing
$(this).jPlayer("play");