Closed Bug 1207995 Opened 9 years ago Closed 9 years ago

[TV 2.5] Provide remote control service current control mode

Categories

(Firefox OS Graveyard :: Gaia::TV::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(feature-b2g:2.5+)

RESOLVED FIXED
FxOS-S10 (30Oct)
feature-b2g 2.5+

People

(Reporter: etsai, Assigned: lchang)

References

Details

(Whiteboard: [ft:conndevices][partner-cherry-picked<2015/11/10>])

Attachments

(1 file)

Current control mode is for dispatch different event to app, for example, touch move for browser but gesture to page up/down for control home screen.
Whiteboard: [ft:conndevices]
Assignee: nobody → etsai
feature-b2g: --- → 2.5+
Target Milestone: --- → FxOS-S10 (30Oct)
Blocks: 1212385
No longer blocks: TV_RemoteControl_TVSide
We've decided smart-system will notify Gecko of the mode-changed status via "mozContentEvent" event as follows: { type: 'control-mode-changed', detail: { cursor: true / false } } And Gecko can request system to report the status actively by using "mozChromeRemoteControlEvent" as follows: { type: 'request-control-mode', detail: null }
This bug will be addressed in Gaia side so take it over from Eric.
Assignee: etsai → lchang
Status: NEW → ASSIGNED
Comment on attachment 8672542 [details] [review] [gaia] luke-chang:1207995_tv_provide_control_mode > mozilla-b2g:master Hi Rex, Could you please take a look at this? Thanks. This patch hard-codes to detect if the currently-focused element is the browser app. If yes, it reports "cursor: true" to Gecko, and vice versa. So that Gecko can determine whether or not it needs to draw a cursor on it.
Attachment #8672542 - Flags: review?(rexboy)
(In reply to Luke Chang [:lchang] from comment #1) > And Gecko can request system to report the status actively by using > "mozChromeRemoteControlEvent" as follows: > > { > type: 'request-control-mode', > detail: null > } Protocol changed: { action: 'request-control-mode' }
Comment on attachment 8672542 [details] [review] [gaia] luke-chang:1207995_tv_provide_control_mode > mozilla-b2g:master Looks good to me. Thank you!
Attachment #8672542 - Flags: review?(rexboy) → review+
(In reply to Luke Chang [:lchang] from comment #5) > (In reply to Luke Chang [:lchang] from comment #1) > > And Gecko can request system to report the status actively by using > > "mozChromeRemoteControlEvent" as follows: > > { > action: 'request-control-mode' > } Let me explain this more. In case the HTTP server is, for some reason, initialized or rebooted after system app is loaded, it can retrieve the current control mode immediately by utilizing this event instead of waiting for the next "control-mode-changed" event.
Whiteboard: [ft:conndevices] → [ft:conndevices][partner-cherry-pick]
Whiteboard: [ft:conndevices][partner-cherry-pick] → [ft:conndevices][partner-cherry-picked<2015/11/10>]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: