home *** CD-ROM | disk | FTP | other *** search
- <%@ Language=VBScript CODEPAGE=65001 %>
- <HTML>
- <HEAD>
- <meta NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
- <meta http-equiv="Content-Language" content="en-us">
- <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
- <SCRIPT LANGUAGE=javascript>
- <!--
-
- function Error_Display(iNum,sDesc){
- if (iNum!=0){
- alert(sDesc)
- }
-
- }
- //-->
-
- </SCRIPT>
- <TITLE>
- Load Encoder
- </TITLE>
- </HEAD>
- <BODY>
- <%on Error Resume Next
- if Request.Form("hOpt")=0 then
-
- Response.Write("You chose To Cancel The Creation Of The New Encoder")%>
- <BR>
- <BR>
- <A href=RemoteControl.htm>Return To The Statistics Page</A>
- <%else
- Path=Request.Form("tPath")
- EncName=Request.Form("tName")
- set AgentLoc=Session("AgentLocSess")
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- MchName=Session("MchNameSess")
-
- set EncAgent=AgentLoc.GetAgent(MchName)
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- set Session(EncName)=EncAgent.CreateEncoder(EncName)
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- set Encoder=EncAgent.GetEncoder(EncName)
- Encoder.Load Path
- Encoder.Name=EncName
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- Encoder.PrepareToEncode(True)
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- if ErrorNum<>0 then
- set Session(EncName)=nothing%>
- <SCRIPT LANGUAGE=javascript>
- <!--
- Error_Display ("<%=ErrorNum%>","<%=ErrorDesc%>")
- //-->
- </SCRIPT>
-
- <%else
- Response.Write("Encoder Sucessfully Created")
- end if%>
- <BR>
- <BR>
- <A href=RemoteControl.htm>Return To The Statistics Page</A>
- <%end if%>
- </BODY>
- </HTML>
-