Firefox OS/Remote Control: Difference between revisions

Jump to navigation Jump to search
→‎Control event processing: Add steps of control event processing
(→‎PIN code pairing: Fix PIN code pairing last section description)
(→‎Control event processing: Add steps of control event processing)
Line 63: Line 63:


=== Control event processing ===
=== Control event processing ===
Control page provides: 1) a virtual touchpad, 2) a virtual vertical scrollbar, 3) 3 function keys. Every touch, swipe or click will be generated to an event in JSON format, encrypted and send to TV. Following describes how control event is sent and processed:


# User opens the URL.
# Client requests page with UUID can access control page.
# Server returns client.html as requested page for remote control.
# User operates control page.
# Client generates an event and encrypts the event using symmetric key.
# Client sends encrypted event.
# Client.sjs responses with latest event result.
# Client.sjs decrypts event with symmetric key received in establish secure connection.
# Client.sjs parses event and dispatch to Gecko or Gaia system app.


=== Ajax Protocol ===
=== Ajax Protocol ===
133

edits

Navigation menu