I’m forced to load the tumblr audio player in my theme via JavaScript because of this issue. The loading happens as follows:
$(window).load(function() {
setTimeout(function() {
$('.audio-player').each(function(){
var audioID = $(this).parents(".audio").attr("id");
var $audioPost = $(this);
var color = "000000"; //new color
$.ajax({
url: '/api/read/json?id=' + audioID,
dataType: 'jsonp',
timeout: 50000,
success: function(data){
if ($audioPost.html().indexOf("is required to") != -1) {
$audioPost.find('#audio_player_'+audioID).replaceWith('<div style=\"background-color:white;">' + data.posts[0]['audio-player'].replace("color=FFFFFF", "color=" + color) +'</div>'); //replace color here
}
}
});
});
}, 2000);
});
In spite of using the {AudioPlayerBlack} tag, the code-inserted audio player is white, so I want to change that. I added two lines (commented in the code) and it’s sort of working: the player becomes black but all the controls are invisible. Instead of the expected

I get this

You can inspect the live example here: http://tmbeta.tumblr.com/ (btw, testing for mobiles so you need to resize your window to make it less than 480px wide). This is the tumblr api for audio posts, just in case.
The color scheme of the Tumblr audio players is not governed by the color code passed in the request URL, as you assume – it is part of the
swf(Flash) file itself. To get the black player, you need to requestaudio_player_black.swfinstead of the default (white)audio_player.swf. In your code, change the innermost code line toand you should be good to go. You can also get rid of the
colordefinition, of course :).