2025-04-27 07:49:33 -04:00

208 lines
5.5 KiB
HTML

<HTML>
<!--
Copyright (c) 2000 Microsoft Corporation
-->
<HEAD>
<TITLE>Remote Assistance</TITLE>
<meta http-equiv="MSThemeCompatible" content="Yes">
<LINK id="UI_StyleSheet" REL="stylesheet" TYPE="text/css" HREF="../../Css/rc.css">
<Script Language="javascript">
var vArgs=window.dialogArguments;
/*
Function : OnApply()
Description : Gets called when the Apply button is pressed.
This apply the settings based upon the options selected
*/
function OnApply()
{
vArgs[0].TraceFunctEnter("OnApply");
try
{
// We need to change the Voice Compression if a radio button setting has been modified
if ((optStd.checked == true) && (vArgs[0].g_VoipBandwidth == 1))
{
// Caught a change from high to low, set the SamplingRate property
vArgs[0].g_Helpee_oSAFIntercomServer.SamplingRate = 1;
// Change state variable from 1 to 0
vArgs[0].g_VoipBandwidth = 0;
// Send a message to client (helper)
vArgs[0].Helpee_SendControlCommand(vArgs[0].c_szVoipBandwidthToLow);
} else if ((optHigh.checked == true) && (vArgs[0].g_VoipBandwidth == 0))
{
// Caught a change from low to high, set the SamplingRate property
vArgs[0].g_Helpee_oSAFIntercomServer.SamplingRate = 2;
// Change state variable from 0 to 1
vArgs[0].g_VoipBandwidth = 1;
// Send a message to client (helper)
vArgs[0].Helpee_SendControlCommand(vArgs[0].c_szVoipBandwidthToHigh);
}
}
catch(error)
{
vArgs[0].FatalError(error.description,error);
}
vArgs[0].TraceFunctLeave();
}
/*
Function : Tuning()
Description : Gets called when the Audio Tuning Wizard button is pressed.
*/
function Tuning()
{
vArgs[0].TraceFunctEnter("Tuning");
lRet = 0;
try
{
vArgs[0].g_Helpee_oSAFIntercomServer.RunSetupWizard();
// Send a message to the client that the SetupWizard succeeded
vArgs[0].Helpee_SendControlCommand(vArgs[0].c_szVoipWizardGood);
// set me to good
vArgs[0].g_stateVoipMe = 1;
// Now we make the check to see if we can enable voice.
// If me and you are good < 2 then enable
if ( (vArgs[0].g_stateVoipMe < 2) && (vArgs[0].g_stateVoipYou < 2) )
{
// Enable voice
vArgs[0].frames.idFrameTools.btnVoice.disabled = false;
vArgs[0].g_bStartEnabled = true;
}
}
catch(error)
{
alert("Voice has been disabled for this Remote Assistance session.");
// set me to bad
vArgs[0].g_stateVoipMe = 2;
// gray voice button
vArgs[0].frames.idFrameTools.btnVoice.disabled = true;
vArgs[0].g_bStartEnabled = false;
// Send a message to the client that the SetupWizard failed
vArgs[0].Helpee_SendControlCommand(vArgs[0].c_szVoipWizardBad);
}
vArgs[0].TraceFunctLeave();
}
/*
Function : SystemOptions()
Description :
*/
function SystemOptions()
{
vArgs[0].TraceFunctEnter("SystemOptions");
try
{
//TODO: code goes in here.
}
catch(error)
{
vArgs[0].FatalError("",error);
}
vArgs[0].TraceFunctLeave();
}
/*
Function : OnLoad()
Description : Gets called on the load of the page.
Options are initialised based upon the settings recorded.
*/
function OnLoad()
{
vArgs[0].TraceFunctEnter("OnLoad");
try
{
// Show current compression setting through the 'rdAS' radio button
if (vArgs[0].g_VoipBandwidth == 0)
{
optStd.checked = true;
}
else
{
optHigh.checked = true;
}
}
catch(error)
{
vArgs[0].FatalError("",error);
}
vArgs[0].TraceFunctLeave();
}
</Script>
</HEAD>
<BODY id="idBody" onLoad="OnLoad();">
<TABLE border=0 cellspacing=8>
<TR>
<TD>
<Table border=0 class="MaxWidth">
<TR>
<TD>
<Span class="styText">Remote Assistance Settings</Span>
</TD>
</TR>
<TR>
<TD>
<Fieldset style="padding:10">
<Legend class="styText">
Audio
</Legend>
<Input type="radio" name="rdAS" id="optStd" checked><Label For="optStd" class="styText">Standard Quality</Label>
<BR>
<Input type="radio" name="rdAS" id="optHigh"><Label For="optHigh" class="styText">High Quality (requires a high speed internet connection)</Label>
<P>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BUTTON name="btnATW" id="btnATW" onClick="Tuning();" class="stybutton" style="LEFT: 9px; WIDTH: 180px; TOP: 82px"> Audio Tuning Wizard .... </BUTTON></P>
</Fieldset>
</TD>
</TR>
<!--<TR>
<TD>
<Fieldset style="padding:10">
<Legend class="styText">
System
</Legend>
<Span class="styText">Set system options for Remote Assistance.</Span>
<P>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BUTTON name="btnSysOpt" id="btnSysOpt" onClick="SystemOptions();" class="stybutton" style="LEFT: 9px; WIDTH: 180px; TOP: 82px"> System Options... </BUTTON></P>
</Fieldset>
</TD>
</TR>-->
<TR>
<TD align="right">
<BR>
<Button id="btnOK" name="btnOK" Onclick="OnApply();window.close();" class="stybutton" accesskey="O"><U>O</U>K</Button>&nbsp;
<Button id="btnCancel" name="btnCancel" OnClick="window.close();" class="stybutton" accesskey="C"><U>C</U>ancel</Button>&nbsp;
<Button id="btnApply" name="btnApply" Onclick="OnApply();" class="stybutton" accesskey="A"><U>A</U>pply</Button>&nbsp;
</TD>
</TR>
</Table>
</TD>
</TR>
</Table>
</BODY>
</HTML>