Giter VIP home page Giter VIP logo

socialapi-demo's Introduction

Social API + WebRTC Demo

Quick Start

  1. This demo requires Firefox 19+. Grab the latest nightly.

  2. Create a new profile. You don't want to be messing with all these prefs in a profile that you use regularly.

  3. Set the following boolean prefs via about:config

     social.enabled: true
     social.active: true
     media.navigator.enabled: true
     media.navigator.permission.disabled: true
     media.peerconnection.enabled: true
     dom.disable_open_during_load: false
    
  4. Set the SocialAPI provider, also via about:config. It's ok that the provider is named "facebook", the SocialAPI grabs the first pref prefixed with social.manifest. Note that the pref is actually a JSON string.

     social.manifest.facebook: {"location":"https://webrtc-demo.vcap.mozillalabs.com/manifest.json","name":"WebRTC Social Demo","iconURL":"https://webrtc-demo.vcap.mozillalabs.com/icon.png","workerURL":"https://webrtc-demo.vcap.mozillalabs.com/worker.js","sidebarURL":"https://webrtc-demo.vcap.mozillalabs.com/sidebar.htm","origin":"https://webrtc-demo.vcap.mozillalabs.com","enabled":true,"last_modified":135101330568}
    
  5. Restart the browser.

  6. Login with Persona when the SocialAPI sidebbar shows up. Get a friend to login (or login with a new profile on the same machine), and click to initiate a video call. You can drag-and-drop to share files and tabs!

Local Development

It is easier to hack on this by setting up a local server:

$ npm install
$ env PORT=5000 AUDIENCE="http://localhost:5000" node app.js

and set the SocialAPI provider to:

social.manifest.facebook: {"location":"http://localhost:5000/manifest.json","name":"WebRTC Social Demo","iconURL":"http://localhost:5000/icon.png","workerURL":"http://localhost:5000/worker.js","sidebarURL":"http://localhost:5000/sidebar.htm","origin":"http://localhost:5000","enabled":true,"last_modified":135101330568}

socialapi-demo's People

Contributors

anantn avatar craigcook avatar fqueze avatar mixedpuppy avatar standard8 avatar tokeshu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.