Web Connection
client video resolution
Gravatar is a globally recognized avatar based on your email address. client video resolution
  Luca
  All
  Mar 15, 2020 @ 01:36am

Dear Rick,
the browser knows client video resolution thanks to media queries, but how to inform the server about client video resolution?
How a procedure may know about client video resolution and, for example, dimension a returning image rightly for client device?
Thank you very much again client video resolution

Gravatar is a globally recognized avatar based on your email address. re: client video resolution
  Harvey Mushman
  Luca
  Mar 15, 2020 @ 07:33am

I suspect you need to pass back to the server the window or screen size of hte client browser as data in the request. This would require a small amount of javascript on the client.

Gravatar is a globally recognized avatar based on your email address. re: client video resolution
  Rick Strahl
  Luca
  Mar 16, 2020 @ 04:49am

There's no support for that in the browser as part of regular HTTP requests.

As Jim points out the only way you can do that is to capture the screen size in JavaScript and set it into a hidden variable and pass that back to the server.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: client video resolution
  Luca
  Rick Strahl
  Mar 19, 2020 @ 01:13pm

I solved with media queries, hiding and showing buttons, in order to launch a different procedure informing the server about client video resolution. I need only to know a range of video resolution: for example until to 600px, from 600px to 1024px, and so on.

© 1996-2020