-
Notifications
You must be signed in to change notification settings - Fork 40
Define that "TV" should appear as token for UA-string when presentation API is used to render on TV #303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This sounds like a workaround for a lack of CSS media queries for some document properties that might hold true when rendering on a presentation display. What is a "TV" though? Is it defined by screen size? Pixel density? Typical viewing distance? Input capability (or lack thereof)? Presence of HDMI inputs and a tuner? Consider the following cases:
Would these cases count as "TV" for the purposes of User-Agent? I'm not opposed to this outright, I just want to be as concrete as possible as to when it applies, and then understand if that would make sense to Web developers. |
This proposal would solve the problem that a document doesn't know for sure it's a presentation until the If we simply say that the receiving user agent should include "TV" in the UA string for the receiving browsing context, that would seem to avoid tricky questions about "what is a TV." |
Doesn't the presence of the |
Most of smart TVs has the customized UA string for TV device, so I think the condition which determines whether it's TV or not, seems not to be defined. For one thing, chrome browser on LG webOS TV has the userAgent string value as follows. |
One of differences between display and TV is that overscan is typically applied to TVs. TVs in overscan mode hide a 5% margin of a picture and show the rest in full screen. Generally, TV app developers should be careful that UI could work properly whether a TV would be in overscan mode or not. (It is unnecessary for displays, though.) For example, pictures could be displayed in the full range of 1920x1080, but active UIs should be placed on the action-safe area (the inner area surrounded by the 5% margin). IMHO, including "TV" in the UA string could help web apps to control UIs by JavaScript in this manner. Note: Android TV has the similar guidelines. https://developer.android.com/design/tv/style.html |
PROPOSED RESOLUTION: For #303, add a note about feature detection through the |
Implements proposed resolution for Issue #303
Mozilla's experience is that the few websites that today target TVs require that a "TV" token is included in the UA string in order for the website to render an appropriate TV UI.
I think this is something that's worth getting into a specification as quickly as we can, in order to prevent the mess that we currently have on mobile. The problem on mobile was that originally there was no token to indicate "mobile device", which lead to websites solving the problem with perpetually out-of-date databases, harder for new players to enter the space, etc.
At the very least, we should define that when implementing that 1-UA mode, the implementation should use a UA string apporpriate for the target device. So if using 1-UA mode to stream to a TV, the "hidden iframe" running on the controller device, should use a UA-string appropriate for TVs.
But I think it would also be good to include an informative note that when implementing the presentation-side of the presentation API on a TV, to include a "TV" token in the UA-string.
The text was updated successfully, but these errors were encountered: