webrtc-adapter
A shim to insulate apps from WebRTC spec changes and browser prefix differences
Last updated 7 years ago by fippo .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ npm install webrtc-adapter 
SYNC missed versions from official npm registry.

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.

This repository used to be part of the WebRTC organisation on github but moved. We aim to keep the old repository updated with new releases.

Install

NPM

npm install webrtc-adapter

Bower

bower install webrtc-adapter

Usage

Javascript

Just import adapter:

import adapter from 'webrtc-adapter';

No further action is required.

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.

Prebuilt releases

Web

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

Bower

You will find adapter.js in bower_components/webrtc-adapter/.

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_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.

Development

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

Publish a new version

  • Go to the adapter repository root directory
  • Make sure your repository is clean, i.e. no untracked files etc. Also check that you are on the master branch and have pulled the latest changes.
  • Depending on the impact of the release, either use patch, minor or major in place of <version>. Run npm version <version> -m 'bump to %s' and type in your password lots of times (setting up credential caching is probably a good idea).
  • Create and merge the PR if green in the GitHub web ui
  • Go to the releases tab in the GitHub web ui and edit the tag.
  • Add a summary of the recent commits in the tag summary and a link to the diff between the previous and current version in the description, example.
  • Go back to your checkout and run git pull
  • Run npm publish (you need access to the webrtc-adapter npmjs package). For big changes, consider using a tag version such as next and then change the dist-tag after testing.
  • Done! There should now be a new release published to NPM and the gh-pages branch.

Note: Currently only tested on Linux, not sure about Mac but will definitely not work on Windows.

Publish a hotfix patch versions

In some cases it may be necessary to do a patch version while there are significant changes changes on the master branch. To make a patch release,

  • checkout the latest git tag using git checkout tags/vMajor.minor.patch.
  • checkout a new branch, using a name such as patchrelease-major-minor-patch.
  • cherry-pick the fixes using git cherry-pick some-commit-hash.
  • run npm version patch. This will create a new patch version and publish it on github.
  • check out origin/bumpVersion branch and publish the new version using npm publish.
  • the branch can now safely be deleted. It is not necessary to merge it into the main branch since it only contains cherry-picked commits.

Current Tags

  • 9.0.6                                ...           latest (5 months ago)

126 Versions

  • 9.0.6                                ...           5 months ago
  • 9.0.5                                ...           7 months ago
  • 9.0.4                                ...           9 months ago
  • 8.2.4                                ...           2 years ago
  • 9.0.3                                ...           2 years ago
  • 9.0.2 [deprecated]           ...           2 years ago
  • 9.0.1                                ...           3 years ago
  • 9.0.0                                ...           3 years ago
  • 8.2.3                                ...           3 years ago
  • 8.2.2                                ...           4 years ago
  • 8.2.1                                ...           4 years ago
  • 8.2.0                                ...           4 years ago
  • 8.1.2                                ...           4 years ago
  • 8.1.1                                ...           5 years ago
  • 8.1.0                                ...           5 years ago
  • 8.0.0                                ...           6 years ago
  • 7.7.1                                ...           6 years ago
  • 7.7.0                                ...           6 years ago
  • 7.6.4                                ...           6 years ago
  • 7.6.3                                ...           6 years ago
  • 7.6.2                                ...           6 years ago
  • 7.6.1                                ...           7 years ago
  • 7.6.0                                ...           7 years ago
  • 7.5.1                                ...           7 years ago
  • 7.5.0                                ...           7 years ago
  • 7.4.0                                ...           7 years ago
  • 7.3.0                                ...           7 years ago
  • 7.2.9                                ...           7 years ago
  • 7.2.8                                ...           7 years ago
  • 7.2.7                                ...           7 years ago
  • 7.2.6                                ...           7 years ago
  • 7.2.5                                ...           7 years ago
  • 7.2.4                                ...           7 years ago
  • 7.2.3                                ...           8 years ago
  • 7.2.2                                ...           8 years ago
  • 7.2.1                                ...           8 years ago
  • 7.2.0                                ...           8 years ago
  • 7.1.1                                ...           8 years ago
  • 7.1.0                                ...           8 years ago
  • 7.0.1                                ...           8 years ago
  • 7.0.0                                ...           8 years ago
  • 6.4.8                                ...           8 years ago
  • 6.4.7                                ...           8 years ago
  • 6.4.6                                ...           8 years ago
  • 6.4.5                                ...           8 years ago
  • 6.4.4                                ...           8 years ago
  • 6.4.3                                ...           8 years ago
  • 6.4.2                                ...           8 years ago
  • 6.4.1                                ...           8 years ago
  • 6.4.0                                ...           8 years ago
  • 6.3.2                                ...           8 years ago
  • 6.3.1                                ...           8 years ago
  • 6.3.0                                ...           8 years ago
  • 6.2.1                                ...           9 years ago
  • 6.2.0                                ...           9 years ago
  • 6.1.5                                ...           9 years ago
  • 6.1.4                                ...           9 years ago
  • 6.1.3                                ...           9 years ago
  • 6.1.2                                ...           9 years ago
  • 6.1.1                                ...           9 years ago
  • 6.1.0                                ...           9 years ago
  • 6.0.4                                ...           9 years ago
  • 6.0.3                                ...           9 years ago
  • 6.0.2                                ...           9 years ago
  • 6.0.1                                ...           9 years ago
  • 6.0.0                                ...           9 years ago
  • 5.0.6                                ...           9 years ago
  • 5.0.5                                ...           9 years ago
  • 5.0.4                                ...           9 years ago
  • 5.0.3                                ...           9 years ago
  • 5.0.2                                ...           9 years ago
  • 5.0.1                                ...           9 years ago
  • 5.0.0                                ...           9 years ago
  • 4.2.2                                ...           9 years ago
  • 4.2.1                                ...           9 years ago
  • 4.2.0                                ...           9 years ago
  • 4.1.1                                ...           9 years ago
  • 4.1.0                                ...           9 years ago
  • 4.0.2                                ...           9 years ago
  • 4.0.1                                ...           9 years ago
  • 4.0.0                                ...           9 years ago
  • 3.4.3                                ...           10 years ago
  • 3.4.2                                ...           10 years ago
  • 3.4.1                                ...           10 years ago
  • 3.4.0                                ...           10 years ago
  • 3.3.4                                ...           10 years ago
  • 3.3.3                                ...           10 years ago
  • 3.3.2                                ...           10 years ago
  • 3.3.1                                ...           10 years ago
  • 3.3.0                                ...           10 years ago
  • 3.2.0                                ...           10 years ago
  • 3.1.7                                ...           10 years ago
  • 3.1.6                                ...           10 years ago
  • 3.1.5                                ...           10 years ago
  • 3.1.4                                ...           10 years ago
  • 3.1.3                                ...           10 years ago
  • 3.1.2                                ...           10 years ago
  • 3.1.1                                ...           10 years ago
  • 3.1.0                                ...           10 years ago
  • 3.0.1                                ...           10 years ago
  • 3.0.0                                ...           10 years ago
  • 2.1.0                                ...           10 years ago
  • 2.0.8                                ...           10 years ago
  • 2.0.7                                ...           10 years ago
  • 2.0.6                                ...           10 years ago
  • 2.0.5                                ...           10 years ago
  • 2.0.4                                ...           10 years ago
  • 2.0.3                                ...           10 years ago
  • 2.0.2                                ...           10 years ago
  • 1.4.0                                ...           10 years ago
  • 1.3.0                                ...           11 years ago
  • 1.2.2                                ...           11 years ago
  • 1.1.0                                ...           11 years ago
  • 1.0.7                                ...           11 years ago
  • 1.0.6                                ...           11 years ago
  • 1.0.4                                ...           11 years ago
  • 1.0.2                                ...           11 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
  • 0.0.7                                ...           12 years ago
  • 0.0.6                                ...           12 years ago
  • 0.0.5                                ...           12 years ago
  • 0.0.4                                ...           12 years ago
  • 0.0.3                                ...           12 years ago
  • 0.0.2                                ...           12 years ago
  • 0.0.1                                ...           12 years ago
Downloads
Total 404
Today 0
This Week 4
This Month 226
Last Day 0
Last Week 0
Last Month 5
Dependencies (2)
Dev Dependencies (26)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE