This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

Camera image/stream window coordinates
#1
Hi guys,

is possible somehow add coordinates at visu for camera's stream window to show it at constant coordinates? For me it opens at low right corner and not fully seen at visu screen. Maybe possible to add such options to RC2? Also good to disable camera icon for mobile devices, not all of them can show stream from camera but icon exist..

Alex
Reply
#2
You can use this Custom JavaScript for fixed window position. Set "Additional classes" for camera element to camera. Change top/left coordinates as needed. We'll see if "Hide in Touch" can be implemented for cameras.

Code:
$(function(){
  var btn = $('.camera'), win = btn.next();

  btn.on('vclick', function() {
    if (!win.hasClass('hide')) {
      win.css({ top: 100, left: 300 });
    }
  });
});
Reply
#3
Admin, big thanks!!
Reply
#4
I would also like to display a camera stream in the visualization. How exactly do I do that? Can Mosaic App do that too?
Reply
#5
Hi Smile

It is simply but depends from camera's brand. For Hikvision you need configure 2nd stream MJPEG type. At visu at camera add such link:

http://user:pass@CamIPaddress/Streaming/channels/102/Preview.

Save. At visu you will see your camera real-time video-stream. Please note it is working at Mozilla. if you have Hikvision camera, you can send data from your LM/SL/HL to camera as metadata and you will see it at your camera's image. More details here:

https://forum.logicmachine.net/showthread.php?tid=1813

For other camera brands try to configure 2nd stream as MJPEG and try to find link how open such stream of your camera.

Hope all works,

AlexLV
Reply


Forum Jump: