I have a VB Script that works for viewing an IP camera. We had to get a new IP camera and it is using a different protocol (RTSP) for the live feed.
Here is my current script:
'**************************Multi-Point Conference Application*******************************
'Setup Explorer Window
Dim strHost, strName
Set objExplorer = wscript.CreateObject("InternetExplorer.Application", "IE_")
objExplorer.Height = 766
objExplorer.Width =1024
objExplorer.Top = 0
objExplorer.Left = 0
objExplorer.MenuBar = 0
objExplorer.StatusBar = 0
objExplorer.ToolBar = 0
objExplorer.Navigate "about:blank"
objExplorer.Visible = 1
Do While (objExplorer.Busy)
Loop
Set objDocument = objExplorer.Document
objDocument.Open
objDocument.Writeln "<TITLE>Web Conference</TITLE><body bgcolor=black text='White'><CENTER>"
'Setup Popup Boxes
Const wshYes = 6
Const wshNo = 7
Const wshYesNoDialog = 4
Const wshQuestionMark = 32
Set objShell = CreateObject("Wscript.Shell")
'Iowa City Camera
intReturn = objShell.Popup("Connect to Atlanta's Camera?", _
10, "Iowa City", wshYesNoDialog + wshQuestionMark)
If intReturn = wshYes Then
objDocument.writeln("<OBJECT ID=VaCtrl WIDTH=964 HEIGHT=672 hspace=5")
objDocument.writeln(" CLASSID=CLSID:A93B47FD-9BF6-4DA8-97FC-9270B9D64A6C")
objDocument.writeln(" CODEBASE=http:/10.2.3.150:80/plugin/h263ctrl.cab#version=1,7,0,5>")
objDocument.writeln("<PARAM NAME=Url VALUE=http:10.2.3.150:80/cgi-bin/video.vam>")
objDocument.writeln("</OBJECT>")
ElseIf intReturn = wshNo Then
'do nothing
Else
Wscript.Echo "The popup timed out."
End If
objDocument.writeln("<a href=JavaScript:window.close()>Close</a>")
'Exit Procedure
objDocument.Close
wscript.Quit
**************************************************************************************************
I can't figure out what/how to change it to view a rtsp://10.2.3.150:554/live1.sdp feed
Any ideas?
Here is my current script:
'**************************Multi-Point Conference Application*******************************
'Setup Explorer Window
Dim strHost, strName
Set objExplorer = wscript.CreateObject("InternetExplorer.Application", "IE_")
objExplorer.Height = 766
objExplorer.Width =1024
objExplorer.Top = 0
objExplorer.Left = 0
objExplorer.MenuBar = 0
objExplorer.StatusBar = 0
objExplorer.ToolBar = 0
objExplorer.Navigate "about:blank"
objExplorer.Visible = 1
Do While (objExplorer.Busy)
Loop
Set objDocument = objExplorer.Document
objDocument.Open
objDocument.Writeln "<TITLE>Web Conference</TITLE><body bgcolor=black text='White'><CENTER>"
'Setup Popup Boxes
Const wshYes = 6
Const wshNo = 7
Const wshYesNoDialog = 4
Const wshQuestionMark = 32
Set objShell = CreateObject("Wscript.Shell")
'Iowa City Camera
intReturn = objShell.Popup("Connect to Atlanta's Camera?", _
10, "Iowa City", wshYesNoDialog + wshQuestionMark)
If intReturn = wshYes Then
objDocument.writeln("<OBJECT ID=VaCtrl WIDTH=964 HEIGHT=672 hspace=5")
objDocument.writeln(" CLASSID=CLSID:A93B47FD-9BF6-4DA8-97FC-9270B9D64A6C")
objDocument.writeln(" CODEBASE=http:/10.2.3.150:80/plugin/h263ctrl.cab#version=1,7,0,5>")
objDocument.writeln("<PARAM NAME=Url VALUE=http:10.2.3.150:80/cgi-bin/video.vam>")
objDocument.writeln("</OBJECT>")
ElseIf intReturn = wshNo Then
'do nothing
Else
Wscript.Echo "The popup timed out."
End If
objDocument.writeln("<a href=JavaScript:window.close()>Close</a>")
'Exit Procedure
objDocument.Close
wscript.Quit
**************************************************************************************************
I can't figure out what/how to change it to view a rtsp://10.2.3.150:554/live1.sdp feed
Any ideas?