function DrawTB()
{
if (document.Player) {
document.Player.ToolbarConfiguration = "+play,+snapshot,+fullscreen";
}
}
function InstallFilter(prodName, ID, CLSID_filter, ver_filter, cab)
{
document.write('');
}
function DrawAMC(prodName, height, width, imagepath, CLSID_AMC, cab, ver_AMC, ShowAMCToolbar, ptzgui, useWithCam, camnbr, UseRel, UseMotion, UseAudio)
{
if (imagepath.indexOf("mpeg4") != -1) {
var mpeg4 = "yes";
}
if (imagepath.indexOf("mjpg") != -1) {
var mjpg = "yes";
}
if (imagepath.indexOf("mpeg2") != -1) {
var mpeg2 = "yes";
}
document.write('');
if (document.Player.ShowToolbar) // This line is essential when installing AMC or else volume and mute buttons will show until reload
if(ShowAMCToolbar == "yes")
{
document.Player.ToolbarConfiguration = "+play,+snapshot,+fullscreen";
}
if(UseMotion == "yes")
{
document.Player.UIMode = "MDConfig";
document.Player.MotionConfigURL = "/axis-cgi/operator/param.cgi?ImageSource=" + [camnbr - 1]
document.Player.MotionDataURL = "/axis-cgi/motion/motiondata.cgi";
}
if(UseAudio == "yes")
{
document.Player.AudioConfigURL = "/axis-cgi/audio/getparam.cgi";
document.Player.AudioTransmitURL = "/axis-cgi/audio/transmit.cgi";
document.Player.AudioReceiveURL = "/axis-cgi/audio/receive.cgi";
document.Player.ToolbarConfiguration = "+play,+snapshot,+fullscreen,+mute,+volume,+audiocontrol";
}
}
//-->