If you are using the latest Terayon - 1.3.3 then I don't quite understand why you want to use embed... the object markup works fine for me... but I suppose embed will work too...
Those values would be undefined if they... aren't defined.
This is the code in latest Terayon:
// Insert WM
function spawnWMBox(target,file) {
height = ext!='.wma'?405:45;
width = ext!='.wma'?640:400;
spawnBox(target,width,height);
setTimeout('setWMBox("'+target+'","'+file+'");',300);
}
function setWMBox(target,file) {
setName(file);
gEBI(target+"Content").innerHTML = '<object type="application/x-mplayer2" width='+width+' height='+height+'><param name=filename value="'+file+'" /><param name=autostart value=true /><param name=autostart value=true /></object>';
}
This is the code with embed...
// Insert WM
function spawnWMBox(target,file) {
height = ext!='.wma'?405:45;
width = ext!='.wma'?640:400;
spawnBox(target,width,height);
setTimeout('setWMBox("'+target+'","'+file+'");',300);
}
function setWMBox(target,file) {
setName(file);
gEBI(target+"Content").innerHTML = '<embed type="application/x-mplayer2" width='+width+' height='+height+' src='+file+' autostart="true" BufferingTime="5" /></embed>';
}
untested.