Loop/Try Loop: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 35: Line 35:
FxOS
FxOS
* push these gecko prefs:  
* push these gecko prefs:  
** user_pref("identity.fxaccounts.loglevel", "TRACE");
user_pref("identity.fxaccounts.loglevel", "TRACE");
** user_pref("services.mobileid.loglevel", "TRACE");
user_pref("services.mobileid.loglevel", "TRACE");
 
mobileid is the variable name for msisdn (phone number) authentication
mobileid is the variable name for msisdn (phone number) authentication



Revision as of 17:53, 22 July 2014

Last updated: 2014/07/22

Loop is a two way audio video application that uses webRTC to communicate.

Here's a diagram of how it works:

Clients

Firefox OS Loop Client

src: https://github.com/mozilla-b2g/firefoxos-loop-client Installing Loop Client on device

  1. flash fxos 2.0 to your phone
  2. make sure phone has settings > adb and devtools access and remote debugging turned on.
  3. tether phone to computer
  4. git clone https://github.com/mozilla-b2g/firefoxos-loop-client.git
  5. open Fx nightly to about:app-manager
  6. click connect to device with device id (random 8 character id)
  7. phone should display allow to connect dialog, click yes
  8. In Apps tab, click add packaged app
  9. browse dialog to the firefoxos-loop-client repo location
  10. click 'update' button
  11. loop should be installed on phone
  12. open loop client - follow menu to use

Desktop Firefox Loop Client

  1. Get Firefox Nightly
  2. click on the telephone icon in the navigation bar
  3. copy URL and open it on another device (another person or device)
  4. click allow when prompted to use cam/mic

Standalone Loop Client

There's a web page that creates the webRTC peer2peer call. You can test that here in any browser:

https://webrtc.etherpad.mozilla.org/26

Client Debugging

FxOS

  • push these gecko prefs:
user_pref("identity.fxaccounts.loglevel", "TRACE");
user_pref("services.mobileid.loglevel", "TRACE");

mobileid is the variable name for msisdn (phone number) authentication

Servers

There are four servers involved:

  • Loop-server (call)
  • MSISDN gateway
  • Firefox Accounts via OAuth
  • TokBox TURN server

How to run Tests


Server Debugging