Set TV screen size when launching by Mulet

RESOLVED INVALID

Status

Firefox OS
Gaia::TV
RESOLVED INVALID
2 years ago
11 months ago

People

(Reporter: Evelyn Hung, Assigned: Evelyn Hung)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [ft:conndevices])

(Assignee)

Description

2 years ago
We need to set a TV window size preference so the runtime will respect to it when launching
(Assignee)

Comment 1

2 years ago
https://github.com/evelynhung/gaia/commit/5aba30a5ba908d67e324a2162287d443637cb9d5

I try to use this way for setting a pref, but it doesn't work well on Mulet. Guess there is something wrong... Alex, any suggestion?
Flags: needinfo?(poirot.alex)
(Assignee)

Comment 2

2 years ago
okay, I will check bug 1191951 as you suggested in mail. :)
Flags: needinfo?(poirot.alex)
(Assignee)

Updated

2 years ago
See Also: → bug 1191951
s/Set TV screen size when launching by Mulet/Set TV screen size on Desktop/

Setting b2g.screen.size should work. If not, we should fix screen.js accordingly.
The priority order is expected to be like this:
 - default size hardcoded in screen.js (which is a phone size, 320x480)
 - preference: b2g.screen.size
 - command line: --screen

If you set the pref from gaia profile, desktop runtime (b2g-desktop and mulet) should automatically get the correct size without having to pass a command line argument manually.

Regarding mulet random behavior, this is most likely something buggy in responsive design code...
(Assignee)

Updated

11 months ago
Status: NEW → RESOLVED
Last Resolved: 11 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.