Limit of 6 embed Cam views in a web page.

Forum for questions and support relating to the 1.30.x releases only.
Locked
tiripon
Posts: 34
Joined: Fri Aug 12, 2016 4:06 pm

Limit of 6 embed Cam views in a web page.

Post by tiripon »

Hi,

I am playing around creating web pages to embed my cameras views.

I am noticing that I am able to see, in 1 web page, no more than 6 cam views at the same time.

Here is the code I am inserting in my page for every camera:

<div onclick="window.open('http://servername/zm/index.php?view=watch&mid=1', '_blank', 'location=yes,height=900,width=780,scrollbars=yes,status=yes');">
<img src="http://servername/zm/cgi-bin/nph-zms?mo ... s=password" alt="Parking-Front" width="460" height="340"/>
</div>

I searched for a setting which would restrict only to 6 cameras but can't find anything.
When I open "Montage" and "Montage Review" views, I see all of them (12 in total)

Anyone knows why I can't see more than 6 cameras in a custom web page?

Thank you
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Limit of 6 embed Cam views in a web page.

Post by knight-of-ni »

Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Limit of 6 embed Cam views in a web page.

Post by bbunge »

Here is some simple code that works for me. I have had up to 17 cameras on a single web page.
Create a non-privileged user with the password of user. log in as that user, view the camera, right click on the image and choose View Image and use the URL in the window for the <img src="xxxx"> The meta entry will refresh the screen or you can use the add in RefreshEvery in Firefox.

<html>

<meta http-equiv="refresh" content="300">

<body>

<p>Reception Camera Group</p>


<img src="http://192.168.2.118/zm/cgi-bin/nph-zms ... &pass=user">


<img src="http://192.168.2.118/zm/cgi-bin/nph-zms ... &pass=user">


<img src="http://192.168.2.118/zm/cgi-bin/nph-zms ... &pass=user">


<img src="http://192.168.2.118/zm/cgi-bin/nph-zms ... &pass=user">



</body>
</html>
tiripon
Posts: 34
Joined: Fri Aug 12, 2016 4:06 pm

Re: Limit of 6 embed Cam views in a web page.

Post by tiripon »

knnniggett wrote:Yep, it's in the FAQ:
http://zoneminder.readthedocs.io/en/lat ... in-firefox
Thanks knnniggett. I would not have guess to troubleshoot on the browser side.

I was wondering what made it possible to see all cameras when in "Montage review" without changing settings in the browser?
Locked