Page 1 of 1
How to enlarge camera window?
Posted: Sunday 13 August 2017 14:28
by Sparks02
In Setup-More Options-Cameras- then pressing the "Stream video" button the appearing window has a fixed size. Where/in what file do you have to change width and height to enlarge this window?
Thanks a lot for your response!
Re: How to enlarge camera window?
Posted: Sunday 13 August 2017 16:58
by Eoreh
Hi !
In file domoticz\www\js\domoticz.js.gz is domoticz.js where about 3200 line is
Code: Select all
function ShowCameraLiveStream(Name, camIdx)
For enlarge near to full screen You can change 6 places (market by bold) something like this.
- Spoiler: show
-
function ShowCameraLiveStream(Name, camIdx) {
$.count = 0;
$.camfeed = "camsnapshot.jpg?idx=" + camIdx;
$('#dialog-camera-live #camfeed').attr("src", "images/camera_default.png");
//$('#dialog-camera-live #camfeed').attr("src", FeedURL);
var dwidth = $(window).width() /1.2;
var dheight = $(window).height() / 1.2 ;
if (dwidth > 2630) {
dwidth = 2630;
dheight = parseInt((dwidth / 16) * 9);
}
if (dheight > 2470) {
dheight = 2470;
dwidth = parseInt((dheight / 9) * 16);
...
.
Don't forget clear cache from your browser to see change !
And of course update to next (beta, release) broke your change.
Re: How to enlarge camera window?
Posted: Sunday 13 August 2017 22:20
by Sparks02
Hi Eoreh,
works like a charm - thanks a lot!!

Re: How to enlarge camera window?
Posted: Friday 03 November 2017 0:29
by bueno79
@gizmocuz
is it possible to have full screen button on the window and in setting a way to define the default size of this windows ?
thanks,
Bueno