Giter Site home page Giter Site logo

webrtc-adapter's Introduction

webrtc-adapter

Commonjs adapter.js browser compatibility shim for webRTC

About

WebRTC Adapter provides a more standards-compliant version of browser RTC objects for use in browser projects using WebRTC.

It is meant for requireJS or browserify'ed projects, which use a node-style require syntax, while still running in a chrome or firefox (at the moment) browser.

In particular, the interface exported by this module attempts to closely mirror the standard documented by the w3c. In practice, both the Chrome and Firefox implementations diverge from this standard. Previously, examples have been commonly built around adapter.js, a shim that attempts to sandardize many of these differences between browsers. However, this adapter lives canonically deep within a samples directory, and is not well suited towards inclusion as a dependency within a larger projects.

This implementation is different in 3 regards.

  1. The underlying implemenation is discovered via the existance of prefixed properties, rather than explicit probing of the navigator object. This allows the code to run in firefox extensions while the original adapter could not.
  2. This implementation uses node style exports, rather than attempting to export a fixed global object.
  3. This implementation is released un an Apache 2.0, rather than BSD license.

Usage

var MyPeerConnection = require('webrtc-adapter').RTCPeerConnection;
...

webrtc-adapter's People

Contributors

bemasc avatar willscott avatar

Watchers

 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.