home *** CD-ROM | disk | FTP | other *** search
- <%@ Language=VBScript CODEPAGE=65001 %>
-
-
- <HTML>
- <HEAD>
-
- <meta http-equiv="Content-Language" content="en-us">
- <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
- <TITLE>New Source For The Encoder</TITLE>
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
- <SCRIPT LANGUAGE=javascript>
- <!--
- function AddSource(){
- var Archive
- if (fSrc.tName.value==""){
- alert("Please enter a valid group name")
- return
- }
-
- var Grp=fSrc.tName.value
- var Vid=fSrc.tVideo.value
- var Aud=fSrc.tAudio.value
- if (fSrc.rRecord.checked==true){
- Archive="Record"
- }
-
- if (fSrc.rPause.checked==true){
- Archive="Pause"
- }
-
- if (fSrc.rStop.checked==true){
- Archive="Stop"
- }
-
- window.opener.InsertSrc(Grp,Vid,Aud,Archive)
- window.close()
- }
-
- function SrcCancel(){
- window.close()
- }
-
- function SlctAudio(){
- fSrc.tAudio.value=fSrc.sAudio.value
-
- }
- function SlctVideo(){
- fSrc.tVideo.value=fSrc.sVideo.value
- }
- function Error_Display(iNum,sDesc){
- if (iNum!=0){
- alert(sDesc)
- }
-
- }
- //-->
- </SCRIPT>
-
-
-
- </HEAD>
- <BODY>
-
- <%
- on Error Resume Next
- 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)
- set Encoder=EncAgent.GetEncoder("EncPrf")
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- dim DeviceInfoMgr
- dim I
-
- Set DeviceInfoMgr = Encoder.SourcePluginInfoManager
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if%>
-
-
-
- <FORM id=fSrc>
- <P>
- <TABLE border=1 cellPadding=1 cellSpacing=1 style="BACKGROUND-COLOR: #d4d0c9;
- HEIGHT: 226px; WIDTH: 525px" width="100%">
-
- <TR>
- <TD>
- Name:
- </TD>
-
- <TD colspan=3><INPUT type="text" id=tName name=tName
- style ="HEIGHT: 22px; WIDTH: 399px">
- </TD>
-
-
-
- </TR>
- <TR>
- <TD colspan=4>
- Sources and Archive
- </TD>
-
-
-
- </TR>
-
- <TR>
-
- <TD width="20%">
-
- Video:
- </TD>
-
-
- <%I = DeviceInfoMgr.Count
- I = I - 1
- do while I>=0
- Set DeviceInfo = DeviceInfoMgr.Item(I)
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- If LCase(DeviceInfo.SchemeType) <> "file" Then
- AltPath = DeviceInfo.SchemeType
- AltPath = AltPath & "://"
-
- If DeviceInfo.MediaType = 2 Then
- If DeviceInfo.Resources = False Then
- NameVideo=AltPath & DeviceInfo.Name
- exit do
- else
- J = DeviceInfo.Count
- J = J - 1
- AltPath = AltPath & DeviceInfo.Item(J)
- NameVideo=AltPath
- exit do
- end if
- end if
-
- end if
- I=I-1
- loop%>
-
-
- <TD colspan=3>
- <INPUT id=tVideo name=tVideo style="HEIGHT: 22px; WIDTH: 400px" value="<%=NameVideo%>">
- <BR>
- <SELECT id=sVideo name=sVideo
- style ="HEIGHT: 22px; WIDTH: 402px" onclick="SlctVideo()">
- <%I = DeviceInfoMgr.Count
- I = I - 1
- While I >= 0
- Set DeviceInfo = DeviceInfoMgr.Item(I)
-
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- If LCase(DeviceInfo.SchemeType) <> "file" Then
- AltPath = DeviceInfo.SchemeType
- AltPath = AltPath & "://"
- If DeviceInfo.MediaType = 2 Then
- If DeviceInfo.Resources = False Then
- AltPath=AltPath & DeviceInfo.Name
- if I=DeviceInfoMgr.Count-1 then%>
-
- <OPTION selected value="<%=AltPath%>">
- <%=AltPath%></OPTION>
-
- <%else%>
-
- <OPTION value="<%=AltPAth%>">
- <%=AltPath%></OPTION>
-
- <%end if%>
-
-
- <%else
- J = DeviceInfo.Count
- J = J - 1
- While J >= 0
- AltPath="DEVICE://"
- AltPath = AltPath & DeviceInfo.Item(J)
- if I=DeviceInfoMgr.Count-1 and j=DeviceInfo.Count-1 then%>
-
- <OPTION selected value="<%=AltPath%>">
- <%=AltPath%></OPTION>
-
- <%else%>
-
- <OPTION value="<%=AltPAth%>">
- <%=AltPath%></OPTION>
- <%end if
- J=J-1
- wend
- end if
- end if
-
- end if
- I=I-1
- wend%>
- </SELECT>
- </TD>
-
-
- </TR>
- <TR>
-
- <TD> Audio:
- </TD>
- <%I = DeviceInfoMgr.Count
- I = I - 1
- do while I>=0
- Set DeviceInfo = DeviceInfoMgr.Item(I)
- If LCase(DeviceInfo.SchemeType) <> "file" Then
- AltPath = DeviceInfo.SchemeType
- AltPath = AltPath & "://"
- If DeviceInfo.MediaType = 1 Then
- If DeviceInfo.Resources = False Then
- AltPath=AltPath & DeviceInfo.Name
- NameAudio=AltPath
- exit do
- else
- J = DeviceInfo.Count
- J = J - 1
- AltPath = AltPath & DeviceInfo.Item(J)
- NameAudio=AltPath
- exit do
- end if
- end if
-
- end if
- I=I-1
- loop%>
-
-
- <TD colspan=3>
- <INPUT id=tAudio name=tAudio style="HEIGHT: 22px; WIDTH: 402px" value="<%=NameAudio%>">
- <BR>
- <SELECT id=sAudio name=sAudio
- style ="HEIGHT: 22px; WIDTH: 402px" onclick="SlctAudio()">
- <%I = DeviceInfoMgr.Count
- I = I - 1
- While I >= 0
- Set DeviceInfo = DeviceInfoMgr.Item(I)
- If LCase(DeviceInfo.SchemeType) <> "file" Then
- AltPath = DeviceInfo.SchemeType
- AltPath = AltPath & "://"
- If DeviceInfo.MediaType = 1 Then
- If DeviceInfo.Resources = False Then
- AltPath=AltPath & DeviceInfo.Name
- if I=DeviceInfoMgr.Count-1 then%>
-
- <OPTION selected value="<%=AltPath%>">
- <%=AltPath%></OPTION>
-
- <%else%>
-
- <OPTION value="<%=AltPAth%>">
- <%=AltPath%></OPTION>
-
- <%end if%>
-
-
- <%else
- J = DeviceInfo.Count
- J = J - 1
- While J >= 0
- AltPath="DEVICE://"
- AltPath = AltPath & DeviceInfo.Item(J)
- if I=DeviceInfoMgr.Count-1 and j=DeviceInfo.Count-1 then%>
-
- <OPTION selected value="<%=AltPath%>">
- <%=AltPath%></OPTION>
-
- <%else%>
-
- <OPTION value="<%=AltPAth%>">
- <%=AltPath%></OPTION>
- <%end if
- J=J-1
- wend
- end if
- end if
-
- end if
- I=I-1
- wend%>
-
- </SELECT>
-
-
- </TD>
-
-
-
- </TR>
- <TR>
-
- <TD> Archive:
- </TD>
-
- <TD><INPUT id=rRecord name=rArchive
- type=radio CHECKED> Record
- </TD>
-
- <TD><INPUT id=rPause name=rArchive
- type=radio> Pause
- </TD>
-
- <TD><INPUT id=rStop name=rArchive
- type=radio> Stop
- </TD>
-
- </TR>
- </TABLE>
- </P>
- <P>
-
-
-
-
-
- <INPUT id=bOk name=bOk onclick="AddSource()"
- style="HEIGHT: 29px; WIDTH: 102px" type=button value=Ok>
- <INPUT id=bCancel name=bCancel style="HEIGHT: 30px; WIDTH: 100px"
- type=button value=Cancel onclick="SrcCancel()"> </P>
- <%if ErrorNum<>0 then%>
- <SCRIPT LANGUAGE=javascript>
- <!--
- Error_Display("<%=ErrorNum%>","<%=ErrorDesc%>")
- //-->
- </SCRIPT>
-
-
- <%end if%>
-
- </FORM>
- </BODY>
- </HTML>
-