Firefox OS/Remote Control

From MozillaWiki
< Firefox OS
Revision as of 09:11, 12 October 2015 by Luke-chang (talk | contribs)
Jump to navigation Jump to search

Introduction

Meta Bug: bug 1205939

Architecture Designs

Ajax Protocol

Touch Events

 {
   type: 'touchstart',
   detail: {
     width: <touch panel width, integer, in pixels>,
     height: <touch panel height, integer, in pixels>
   }
 }
 {
   type: 'touchmove',
   detail: {
     dx: <dx between current point and starting point, integer, in pixels>,
     dy: <dy between current point and starting point, integer, in pixels>,
     duration: <duration from "touchstart", integer, in milliseconds>
   }
 }
 {
   type: 'touchend',
   detail: {
     dx: <same as "touchmove">,
     dy: <same as "touchmove">,
     duration: <same as "touchmove">,
     swipe: <the gesture within this touch, string, should be "left", "right", "up" and "down">
   }
 }

Scroll Events

There are "scrollstart", "scrollmove", "scrollend" events whose details are all the same as touch events above.

Key Events

 {
   type: 'keypress',
   detail: <KeyEvent constant, string, sush as "DOM_VK_RETURN">
 }

Input Events

 {
   type: 'input',
   detail: {
     clear: <whether to clear the entire string in the current focused input field, boolean>,
     string: <new string to append, string>
   }
 }


Pairing

Meta Bug: bug 1207996

Flowchart

First Time Connection

RemoteControl FirstConnect.png

Enter PIN Code

RemoteControl EnterPIN.png

Resume Connection

RemoteControl ResumeConnection.png

Dismiss Pairing

RemoteControl DismissPairing.png

Bug Status

Top blockers of bug 1205939 - [TV][2.5][meta][TV side] Remote Control

Full Query
ID Summary Priority Status
1192806 [TV 2.5] [meta] Prototyping TV remote control P1 RESOLVED
1193345 [UX][TV][2.5] (TV Side) Remote Control P2 RESOLVED
1197749 [TV][2.6] Receive keyboard/pointer event from client in remote control service P1 RESOLVED
1197751 [TV][2.6] Write a event shuttle in Gecko P1 RESOLVED
1203048 [TV 2.5] Draw a mock mouse cursor in the smart-system app P1 RESOLVED
1204806 [TV 2.6] Draw cursor while virtual mouse is connected to TV -- RESOLVED
1207971 [TV 2.5][meta] Provide a TV remote control app -- RESOLVED
1207996 [TV] Implement JPAKE authentication over TLS socket server -- RESOLVED
1208006 [TV 2.5][meta] Implement a client-side page for TV remote control -- RESOLVED
1212385 [TV][2.6][meta] Remote Control features in Smart System -- RESOLVED
1215457 [TV 2.5][meta] Secure connection between remote control server and client P1 RESOLVED
1222306 [TV 2.5] Expose remote control service via mDNS -- RESOLVED
1223387 [TV 2.5][meta] Revise Remote Control string base on copy review result -- RESOLVED
1227092 The "window.confirm()" dialog shows two "OK" buttons on TV incorrectly -- RESOLVED
1227808 [TV 2.5] Change the settings of Authorized Devices in Remote Control feature to a simple object instead of a serialized string -- RESOLVED
1235511 [TV 2.5] Add the permission to let web components work correctly in the remote control app -- RESOLVED
1236808 [TV][2.5] Remove remote control apps from both engineering and production building lists on TV 2.5 branch P1 RESOLVED
1271220 [TV][System] Remove the settings observer in the remote control module -- RESOLVED
1282373 [TV 2.6][Remote Control] TV removes pairing record if client didn't connect in last 30 days P1 RESOLVED

19 Total; 0 Open (0%); 19 Resolved (100%); 0 Verified (0%);


Top blockers of bug 1207971 - [TV 2.5][meta] Provide a TV remote control app

Full Query
ID Summary Priority Status
1203853 Provide a QR code on the remote control app on TV -- RESOLVED
1208003 [TV 2.5] Implement the functionalities of the TV remote control app -- RESOLVED
1212402 [TV 2.5] Apply visual spec to the TV remote control app -- RESOLVED

3 Total; 0 Open (0%); 3 Resolved (100%); 0 Verified (0%);


Top blockers of bug 1208006 - [TV 2.5][meta] Provide PIN code pairing to connect TV as remote control

Full Query
ID Summary Priority Status
1212403 [TV 2.5] Apply visual spec to the client-side page of TV remote control -- RESOLVED
1212407 [TV 2.5] Implement the functionalities of the client-side page of TV remote control -- RESOLVED
1215075 [TV 2.5] Implement a pairing page on the client-side -- RESOLVED
1218682 [TV 2.5] Improve the input function in remote control client by one-way sync -- RESOLVED

4 Total; 0 Open (0%); 4 Resolved (100%); 0 Verified (0%);


Top blockers of bug 1212385 - [TV 2.5][meta] Remote Control features in Smart System

Full Query
ID Summary Priority Status
1203045 [TV 2.5] Dispatch input messages via mozInputMethod API in server side P2 RESOLVED
1203048 [TV 2.5] Draw a mock mouse cursor in the smart-system app P1 RESOLVED
1207995 [TV 2.5] Provide remote control service current control mode -- RESOLVED
1214993 [TV 2.5] "sendKeyEvent" doesn't work when sending "DOM_VK_HOME" to trigger homescreen -- RESOLVED
1215076 [TV 2.5] Implement the remote control pairing notification in TV system -- RESOLVED

5 Total; 0 Open (0%); 5 Resolved (100%); 0 Verified (0%);