Committing lots of trial and error embed player code changes

This commit is contained in:
drigato 2015-03-18 14:23:38 -04:00
parent 1f2f8a27a5
commit ed891fb145
8 changed files with 107 additions and 17 deletions

View file

@ -0,0 +1,28 @@
function generateEmbedSrc()
{
document.getElementById('embed_player_preview').textContent="";
}
function setupPlayer()
{
MRP.insert({
'url':"http://127.0.0.1:8000/airtime_128",
'codec':"mp3",
'volume':100,
'jsevents':true,
'autoplay':false,
'buffering':5,
'title':'test',
'bgcolor':'#FFFFFF',
'skin':-1,
'width':180,
'height':60
});
}
window.onload = function() {
setupPlayer();
document.getElementById('player_display_track_metadata').onchange = generateEmbedSrc;
document.getElementById('muses_play').click = MRP.play();
document.getElementById('muses_stop').click = MRP.stop();
}

View file

@ -203,7 +203,8 @@
c + ("&skin=" + g.getSkin(a.skin, !0)),
c = c + ("&title=" + a.title),
c = c + ("&welcome=" + a.welcome),
b = g.getScriptBaseHREF() + "/muses-hosted.swf",
//b = g.getScriptBaseHREF() + "/muses-hosted.swf",
b = "http://localhost/js/airtime/embeddableplayer/muses.swf",
e = 'width="' + a.width + '" height="' + a.height + '" ';
null != a.bgcolor && (e += 'bgcolor="' + a.bgcolor + '" ');
var f = '<object id="' + a.id + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ' + e + ">",