Skip to content
/ adapter Public
forked from webrtcHacks/adapter

Shim to insulate apps from spec changes and prefix differences.

License

Notifications You must be signed in to change notification settings

shines/adapter

 
 

Repository files navigation

Build Status

WebRTC adapter

[adapter.js] is a shim to insulate apps from spec changes and prefix differences. In fact, the standards and protocols used for WebRTC implementations are highly stable, and there are only a few prefixed names. For full interop information, see webrtc.org/web-apis/interop.

Install

Bower

bower install webrtc-adapter

NPM

npm install webrtc-adapter-test

Inclusion on Browser

Bower

<script src="bower_components/webrtc-adapter/adapter.js"></script>

NPM

Copy to desired location in your src tree or use a minify/vulcanize tool (node_modules is usually not published with the code). See webrtc/samples repo as an example on how you can do this.

Development

Detailed information on developing in the webrtc github repo can be found in the WebRTC GitHub repo developer's guide.

This guide assumes you are running a Debian based Linux distribution (travis-multirunner currently fetches .deb browser packages).

Clone the repo in desired folder

git clone https://github.com/webrtc/adapter.git

Install npm dependencies

sudo npm install

Run tests

Runs the tests in test/tests.js using testling.

npm test

Change browser and channel/version for testing

Chrome stable is currently installed as the default browser for the tests.

Currently Chrome and Firefox are supported, check travis-multirunner repo for updates around this. Firefox channels supported are stable, beta and nightly. Chrome channels supported on Linux are stable, beta and unstable.

To select a different browser and/or channel version, change environment variables BROWSER and BVER, then you can rerun the tests with the new browser.

export BROWSER=firefox BVER=nightly

Alternatively you can also do it without changing environment variables.

BROWSER=firefox BVER=nightly npm test

About

Shim to insulate apps from spec changes and prefix differences.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.1%
  • HTML 1.1%
  • Shell 0.8%