Skip to content
/ adapter Public
forked from webrtcHacks/adapter

Shim to insulate apps from spec changes and prefix differences. Latest adapter.js release:

License

Notifications You must be signed in to change notification settings

bud-mo/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

TODO: Might need to point to the gh-pages branch instead so that the prebuilt versions can be accessed.

bower install webrtc-adapter

NPM

npm install webrtc-adapter

Usage

NPM

In node_modules/webrtc-adapter/out/ folder you will find 4 files:

  • adapter.js - includes all the shims and is visible in the browser under the global adapter object (window.adapter).
  • adapter_no_edge.js - same as above but does not include the Microsoft Edge (ORTC) shim.
  • adapter_no_edge_no_global.js - same as above but is not exposed/visible in the browser (you cannot call/interact with the shims in the browser).
  • adapter.js_no_global.js - same as adapter.js but is not exposed/visible in the browser (you cannot call/interact with the shims in the browser).

Include the file that suits your need in your project.

Prebuilt releases

In the gh-pages branch prebuilt ready to use files can be downloaded/linked directly. Latest version can be found at http://webrtc.github.io/adapter/adapter-latest.js. Specific versions can be found at http://webrtc.github.io/adapter/adapter-.js, e.g. http://webrtc.github.io/adapter/adapter-0.2.10.js.

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.

Head over to test/README.md and get started developing.

About

Shim to insulate apps from spec changes and prefix differences. Latest adapter.js release:

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.3%
  • Other 0.7%