');
write('Takes 5 minutes only. ');
write('NOTE: Be sure to also select the Mozilla plugin when installing. ');
write('Click this link to open page for installing. ');
}
else {
write('
You need to install or upgrade the ');
if(player == "wmp")
write('Windows media Player/plugin ');
else
if(player == "qt")
write('Quicktime Player/plugin ');
write('to play this type of file
');
write('You can download and install it by clicking on ');
write('This Link. Takes 5 minutes only. ');
}
}
else {
if(player != "meta")
write('Player: '+player+'
If you see a popup saying "Click to run an ActiveX control on this webpage", ');
write('just click the OK button. The popup is not a security issue, but instead builtin by ');
write('design in some browsers.
Before played, your browser will fetch the file from the web server on the ');
write('internet where it is stored. It might take a while if the file is very large or not in streaming format. ');
write(' PlayAudioVideo indexes serveral types of multimedia files and some of them might not be playable on your ');
write('computer. If the player field above looks like a broken image or it somewhere says that you should install ');
write('a plug-in, then go to the Players link on the main window to install more players. As an alternative, ');
write('you can use the Homepage link for the search result to play or access the file on its home page ');
}
write(' ');
write(' ');
write(' ');
write(' ');
write(' ');
}
}
function playAudioTest(url_add,ext,url_page,bFirst,bLarge) {
var w_win = 320;
var h_win = 74;
var w_obj = 320;
var h_obj = 28;
var type_media = "audio";
var player = "vlc"; // default
var player_no = false;
var player_url = "";
var qtVersion;
var popUp;
var desc = "";
determineEnvironment();
object4.innerHTML="";
player = determinePlayer(ext);
// ##DEBUG
//player = "vlc";
//plugin_vlc = false;
// Set stuff if not installed
if((player == "wmp") && !plugin_wmp) {
player_no = true;
player_url = "http://www.microsoft.com/windows/windowsmedia/download/";
}
else
if((player == "qt") && !plugin_qt) {
player_no = true;
player_url = "http://www.apple.com/quicktime/download/";
}
else
if((player == "vlc") && !plugin_vlc) {
player_no = true;
player_url = "http://www.playaudiovideo.com/pa_vlcinstall.htm";
}
if(player_no) {
w_win = 380;
h_win = 100;
desc = '
'+
'
';
if(player == "vlc") {
desc = desc + 'VLC plugin installation needed to play this file. '+
'NOTE: When installing, select also the Mozilla plugin '+
'Click this link to install. ';
}
else {
if(player == "wmp")
desc = desc + 'Windows media Player/plugin needed ';
else
if(player == "qt")
desc = desc + 'Quicktime Player/plugin needed ';
desc = desc + 'to play this type of file. '+
'Click this Link to install it. ';
}
}
else {
w_obj = 360;
if(player == "xspf")
h_obj = 15;
else
if(player == "qt")
h_obj = 16;
else
if(player == "vlc")
h_obj = 26;
else
if(player == "wmp")
h_obj = 24;
// h_obj = 46;
w_win = w_obj + 2;
h_win = h_obj + 2;
if(player == "vlc")
desc = '
'+
'To save the file to your computer, right-click '+
'this link '+
'and choose "Save As", or left-click to play it. If not standard format, use Transcode to change it. '+
'
'+
'
';
if(family =="nn4") {
document.object2.document.write(desc);
document.object2.left=x+10;
document.object2.top=y+10;
}
else if(family =="gecko") {
document.getElementById("object2").innerHTML=desc;
document.getElementById("object2").style.left=x+10;
document.getElementById("object2").style.top=y+10;
}
else {
object2.innerHTML=desc;
object2.style.pixelLeft=x+10;
object2.style.pixelTop=y+10;
}
}
// Closes download popup
function closeDownload() {
object2.innerHTML="";
}
// ######## TRACKS MOUSE POSITION FOR POPUP PLACEMENT
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function handlerMM(e) {
x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
}
if (isNav) {
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;
// #### Code end for creating popup boxes
// ########################################