Firefox OS/Remote Control Service

< Firefox OS
Revision as of 07:37, 13 January 2016 by Eric Tsai (talk | contribs) (→‎Introduction: Add how to enable in custom build)

Introduction

Remote control Service is the entry point of Remote Control feature. This page will introduce how the service works in Gecko.

How to enable remote control in custom build

Remote control is for Firefox OS TV, so it's only available when you add the following line to mozconfig:

 ac_add_options --enable-remote-control-service

Gecko uses the macro MOZ_B2G_REMOTECONTROLSERVICE to enable remote control in following files:

  • b2g/app/b2g.js
  • b2g/installer/package-manifest.in
  • b2g/chrome/jar.mn
  • b2g/chrome/content/shell.html
  • b2g/moz.build
  • b2g/components/moz.build
  • toolkit/modules/AppConstants.jsm

Use AppConstants.MOZ_B2G_REMOTECONTROLSERVICE in following file:

  • b2g/chrome/content/settings.js