daed17
06-19-2003, 07:41 PM
I am using cameras that are behind a firewall. Both web server and camera are behind the firewall. Only port 80 is open for the web server. I want to make the streaming video coming from the video bridge (mjpeg) viewable to internet users that visit the site.
Here is the code that the company provided. It is client side code and assumes that the IP,szIP, is available on the web.
<script language=javascript>
var isIE = navigator.appName.search( "Microsoft" ) != -1 ? true : false;
nCamera = 1 << nCamera;
document.write( "<APPLET " );
if ( isIE )
{
document.write( "CABBASE=MultiViewClient.cab " );
document.write( "CODE=MultiViewClient.class " );
}
else
{
document.write( "ARCHIVE=MultiViewClient.jar " );
document.write( "CODE=MultiViewClient " );
}
document.write( "CODEBASE=http://" + szIP + " " );
document.write( "WIDTH=" + nWidth + " " );
document.write( "HEIGHT=" + nHeight + " " );
document.write( "MAYSCRIPT>");
document.write( "<PARAM NAME = SourceID " );
document.write( " VALUE=" + nCamera + ">" );
document.write( "</APPLET>" );
</script>
How can I do this?
Here is the code that the company provided. It is client side code and assumes that the IP,szIP, is available on the web.
<script language=javascript>
var isIE = navigator.appName.search( "Microsoft" ) != -1 ? true : false;
nCamera = 1 << nCamera;
document.write( "<APPLET " );
if ( isIE )
{
document.write( "CABBASE=MultiViewClient.cab " );
document.write( "CODE=MultiViewClient.class " );
}
else
{
document.write( "ARCHIVE=MultiViewClient.jar " );
document.write( "CODE=MultiViewClient " );
}
document.write( "CODEBASE=http://" + szIP + " " );
document.write( "WIDTH=" + nWidth + " " );
document.write( "HEIGHT=" + nHeight + " " );
document.write( "MAYSCRIPT>");
document.write( "<PARAM NAME = SourceID " );
document.write( " VALUE=" + nCamera + ">" );
document.write( "</APPLET>" );
</script>
How can I do this?