How to enlarge camera window?

Moderator: leecollings

Post Reply
Sparks02
Posts: 2
Joined: Sunday 13 August 2017 14:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

How to enlarge camera window?

Post 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!
Eoreh
Posts: 65
Joined: Tuesday 13 October 2015 13:50
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Poland
Contact:

Re: How to enlarge camera window?

Post 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.
Sparks02
Posts: 2
Joined: Sunday 13 August 2017 14:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to enlarge camera window?

Post by Sparks02 »

Hi Eoreh,

works like a charm - thanks a lot!! :D
User avatar
bueno79
Posts: 83
Joined: Wednesday 08 March 2017 10:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: France
Contact:

Re: How to enlarge camera window?

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest