Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebRiva, scaling?
#11
(01-24-2018, 08:07 PM)George M Wrote:
(01-13-2018, 02:22 PM)IVB Wrote: Anyone with an android phone able to have Chrome do any scaling? I can't figure it out. I even went into Accessibility, and checked the "override website request to prevent zoom in".  Pinch to expand  doesn't work, can't see what else to do.


Also as far as the 2:1 scaling, I did the template as 1/2 of the resolution and thats when it came out to cover about a fourth of the screen.

That makes sense, you need a 2x screen size for the phone to scale it 2:1 to get a full screen; if scaling were 1:2 then a 1/2 size would come out as full screen. Is that what you meant to say?
Reply
#12
I did find something interesting. If I run WebRiva the template that comes up will not pinch/zoom. However if I ask for the Desktop version, it will then pinch/zoom as long as i do it in the "white space" and not on the template itself.
Thanks
George M
Reply
#13
OK, so apparently I do need to pass gestures through that I don't make use of myself. I'll look at that. I wouldn't have thought so since I think I only register for specific ones. I would have thought those I don't register for would not be affected.
Dean Roddey
Explorans limites defectum
Reply
#14
(01-25-2018, 05:40 AM)batwater Wrote:
(01-24-2018, 08:07 PM)George M Wrote:
(01-13-2018, 02:22 PM)IVB Wrote: Anyone with an android phone able to have Chrome do any scaling? I can't figure it out. I even went into Accessibility, and checked the "override website request to prevent zoom in".  Pinch to expand  doesn't work, can't see what else to do.


Also as far as the 2:1 scaling, I did the template as 1/2 of the resolution and thats when it came out to cover about a fourth of the screen.

That makes sense, you need a 2x screen size for the phone to scale it 2:1 to get a full screen; if scaling were 1:2 then a 1/2 size would come out as full screen. Is that what you meant to say?

What GeorgeM said is what I am seeing as well.  If I create a template that is half the size of the visible area of the phone screen and use the nopixelscale=1 option in the url it comes out fullscreen on the phone

To me that's counter intuitive - its like the nopixelscale=1 is telling the phone to scale 2x.  With out it in the url the image does not fill the screen.

If I do a template the same size as the phone screen (in pixels), leave out the scale option from the url then it fits nicely - but as has been indicated here - that's a much larger template to transfer so slower and the buttons are all very small doe to the high pixels per inch of a phone.
Pinch and zoom just does not work at all with a CQC WEBRiva  - hence the effort needed to get it to fit full screen.
Mykel Koblenz
Illawarra Smart Home
Reply
#15
The issue that, by default, many phones scale 2:1, unless you force it to do otherwise. The no scale command is just preventing that. So it's counter-intuitive because the default scaling of the phone isn't 1:1, as you'd think it is.
Dean Roddey
Explorans limites defectum
Reply
#16
That's just it, it doesn't scale when the noscale command is not used. Or to remove the double negative - it displays 1:1 without the noscale command - not 2:1 as you are indicating

My iPhone SE has a screen resolution of x by y. I created a template of the same size (minus 40 pixes in height for the status bar at the top), and the phone displays it 1:1 as we are used to.

At the noscale command (&nopixelscale=1) and it s twice the size - so its has been scaled by 2. N the command seems to be saying scale by 2, not turn off scaling.
Mykel Koblenz
Illawarra Smart Home
Reply
#17
So, what is really happening is this:

scaleFactor = 1.0 / window.devicePixelRatio;

So we are scaling by the inverse of the pixel ratio. If that is 2 (for a default 2:1 scaling), then we will scale by 1/2 to compensate. If your device reports 1:1 scaling, then this will do nothing. The code assumes that the number will never be less than 1.

If you set &logmisc=1 on the URL, it will log the device pixel ratio that it gets and what scaleFactor comes out to. That would gives us some useful info. That will go to the browser console, or you can force it to log to the CQC log if you want to by using &logtosrv=1 in the URL. However, that may happen too soon, i.e. before we are connected to the server.
Dean Roddey
Explorans limites defectum
Reply
#18
I just want to make sure that everyone sees this.  There is an iOS app now available for WebRIVA.  I takes care of all the switches used in the url, allows for the status bar at the top to be removed to get real full screen and supports LAN and WAN connections

See this thread for details
Mykel Koblenz
Illawarra Smart Home
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Template scaling George M 4 140 10-28-2019, 02:54 PM
Last Post: George M
  IOS Homescreen Webriva fails to connect zra 5 257 10-05-2019, 12:26 PM
Last Post: zra
  WebRIVA and Cameras on iOS gReatAutomation 5 275 07-25-2019, 01:31 PM
Last Post: bryanb
  Slider issue on WebRiva NishanF 4 339 07-03-2019, 05:47 PM
Last Post: NishanF
  WebRIVA password special character issue? batwater 10 1,925 09-30-2018, 02:07 PM
Last Post: batwater
  Android and WebRIVA - working? batwater 9 1,762 09-30-2018, 01:44 PM
Last Post: Dean Roddey
  WebRiva and vpscale=? kblagron 1 823 08-28-2018, 08:12 AM
Last Post: Dean Roddey
  Is it possible to direct link with webriva? ghurty 1 898 07-24-2018, 05:04 PM
Last Post: Dean Roddey
  WebRiva on Android George M 20 3,409 07-22-2018, 09:07 AM
Last Post: Dean Roddey
  Nice job on the scaling! 1 template for the 1st time! IVB 0 849 07-15-2018, 04:38 PM
Last Post: IVB

Forum Jump:


Users browsing this thread: 1 Guest(s)