| |
Orta derecede erişim alan kameradan
canlı görüntü aktarımı
Burada verilen bilgiler aşağıdaki
ürünler ve sürümler için geçerlidir:
- AXIS 2100/2120/2400/2401/2420 F/W
sürümü 2.30'dan ve AXIS 2400+/2401+ F/W sürümü 3.01'dan
itibaren.
Özet
Bu sayfada Axis network video ürününden
gelen canlı görüntülerin Web sunucuya nasıl aktarılacağına ilişkin
bilgiler verilmektedir.
Açıklamalar
Eğer
Axis Kamera için doğrudan ethernet bağlantısı olanağı var ise basitçe
kamerayı network'e bağlayıp, canlı görüntüleri almaya başlarsınız. Kamera
içindeki web sunucu gerekli tüm yazılımları yükler. Kamera üzerindeki
dahili web sayfasını da kolayca değiştirmeniz mümkündür. Buradaki
yönergeleri takip ederek web sayfalarınıza canlı görüntüleri aktarmanız
mümkündür. Axis Network kamera aynı anda 10 kullanıcının erişimini
destekler. Orta derecede erişim alan bir kamera için bu değer yeterlidir.
Kullanıcı sayısı 10'dan fazla olursa kullanıcılar hala görüntüleri almaya
devam edebilirler, fakat bir garanti verilemez.
Aşağıdaki kod kısmen karmaşık olmakla beraber bir çok web tarayıcı ile
sorunsuz çalışır. Microsoft Internet Explorer (Windows) ilk defa bu html
sayfasına eriştiğinde, kullanıcının görüntüleri canlı olarak izleyebilmesi
için ActiveX bileşenin yüklenilmesi istenir. Tüm yapmanız gereken
BaseURL ve kamera IP adresini belirtmektir.
Örnek
<html> <head> <title>MJPG Live Demo</title> </head>
<body> <center> <h2>Motion JPEG image</h2> <!-- Cut from here
to the end of image display comment --> <!-- Note: If you do not
see a JavaScript below in the view source window you must --> <!--
first save the html file from your browser, then open the saved -->
<!-- file in a text editor, for instance Notepad.-->
<SCRIPT
LANGUAGE="JavaScript"> // Set the BaseURL to the url of your camera
// Example: var BaseURL = "http://172.21.1.122/";
var BaseURL =
"http://[myCamera]/";
// The two following lines are for AXIS
2400/2400+:
var Camera = ""; // If you use an AXIS 2400/2400+,
comment away this line by inserting "//" // var Camera = "n"; //
Change n to the Video source used in the AXIS 2400/2400+ and remove
"//"
// Go to the camera used and remove the "//" in front of
the ImageResolution to be used. // Note that only one can be
enabled.
// AXIS 2100 // var ImageResolution = "320x240";var
DisplayWidth = "320";var DisplayHeight = "240"; // var
ImageResolution = "640x480";var DisplayWidth = "640";var DisplayHeight
= "480";
// AXIS 2120/2400/2400+/2401/2401+/2420 PAL // var
ImageResolution = "352x288";var DisplayWidth = "352";var DisplayHeight
= "288"; // var ImageResolution = "704x576";var DisplayWidth =
"704";var DisplayHeight = "576";
// AXIS
2120/2400/2400+/2401/2401+/2420 NTSC // var ImageResolution =
"352x240";var DisplayWidth = "352";var DisplayHeight = "240"; //
var ImageResolution = "704x480";var DisplayWidth = "704";var
DisplayHeight = "480";
// No changes required below this
point var File = "axis-cgi/mjpg/video.cgi?resolution=" +
ImageResolution; if (Camera != "") {File += "&camera=" + Camera;}
var output = ""; if ((navigator.appName == "Microsoft Internet
Explorer")&&(navigator.platform != "MacPPC")&&(navigator.platform !=
"Mac68k")) { // If Internet Explorer for Windows then use
ActiveX output = "<OBJECT ID=\"CamImage\" WIDTH=" output +=
DisplayWidth; output += " HEIGHT="; output += DisplayHeight;
output += " CLASSID=CLSID:917623D1-D8E5-11D2-BE8B-00104B06BDE3 ";
output += "CODEBASE=\""; output += BaseURL; output +=
"activex/AxisCamControl.cab#Version=1,0,2,15\">"; output += "<PARAM
NAME=\"URL\" VALUE=\""; output += BaseURL; output += File;
output += "\"> <BR><B>Axis ActiveX Camera Control</B><BR>"; output
+= "The AXIS ActiveX Camera Control, which enables you "; output +=
"to view live image streams in Microsoft Internet"; output += "
Explorer, could not be registered on your computer."; output +=
"<BR></OBJECT>"; } else { // If not IE for Windows use the
browser itself to display output = "<IMG SRC=\""; output +=
BaseURL; output += File; output += "&dummy=garb\" HEIGHT=\"";
// The above dummy cgi-parameter helps some versions of NS output
+= DisplayHeight; output += "\" WIDTH=\""; output +=
DisplayWidth; output += "\" ALT=\"Moving Image Stream\">"; }
document.write(output); </script> <!-- End of image display part
--> </body> </html> |
Bu tanımların sisteminizde oluşturabileceği değişikliklerden dolayı
Axis ve BağLAN hiç bir sorumluluk kabul etmez. Detaylı uygulama için
sistem yöneticinize danışınız.
|
|