# webrtcsupport

> Browser module to detect support for webrtc and extract proper constructors.

Latest version **2.2.0** (published 2015-10-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install webrtcsupport
pnpm add webrtcsupport
yarn add webrtcsupport
bun add webrtcsupport
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2015-10-25 |
| First published | 2013-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 54 |
| Author | Henrik Joreteg |
| Maintainers | henrikjoreteg, fippo, lancestout, andyet |
| Keywords | browser, WebRTC |

## Links

- npm: https://www.npmjs.com/package/webrtcsupport
- Repository: https://github.com/HenrikJoreteg/webrtcsupport
- Homepage: https://github.com/HenrikJoreteg/webrtcsupport#readme
- Issues: https://github.com/HenrikJoreteg/webrtcsupport/issues
- npm.io page: https://npm.io/package/webrtcsupport

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.2.0 (latest) — 2015-10-25
- 2.1.3 — 2015-09-02
- 2.1.2 — 2015-03-30
- 1.3.2 — 2015-03-30
- 2.1.1 — 2015-03-30
- 1.3.1 — 2015-03-30
- 2.1.0 — 2015-03-23
- 1.3.0 — 2015-03-23
- 2.0.1 — 2015-03-11
- 1.2.6 — 2015-03-11
- 2.0.0 — 2015-02-20
- 1.2.5 — 2015-02-20
- 1.2.4 — 2015-02-09
- 1.2.3 — 2015-02-08
- 1.2.2 — 2015-01-13
- … 18 more at https://npm.io/package/webrtcsupport/versions

## README

# webrtcsupport

## What is this?

A tiny browser module for detecting support for WebRTC and also for extracting the necessary constructors such as `PeerConnection`, `SessionDescription`, and `IceCandidate`.

Suitable for use with browserify/CommonJS on the client. 

This tiny module is used by [SimpleWebRTC](https://simplewebrtc.com), but obviously can be used by itself.

## Installing

```
npm install webrtcsupport
```

## How to use it

Simply require it and it returns a simple object with support flags and useful support info and normalized constructors for various WebRTC related items.

```js
var webrtcSupport = require('webrtcsupport');

// it returns an object with the following:
{
    support: // boolean whether basic WebRTC support exists
    browserVersion: // integer, browser version
    supportRTCPeerConnection: // boolean whether basic support for RTCPeerConnection exists
    supportVp8: // boolean guess whether VP8 is supported by the browser
    supportGetUserMedia: // boolean whether getUserMedia is supported by the browser
    supportDataChannel: // boolean whether WebRTC data channels are supported
    supportWebAudio: // boolean whether WebAudio API is supported
    supportMediaStream: // boolean whether MediaStream is supported
    supportScreenSharing: // boolean guess of whether screensharing is supported,
    prefix: // returns browser prefix (either moz or webkit for now)
    AudioContext: // the audio context constructor from the web audio API
    PeerConnection: // constructor for creating a peer connection
    SessionDescription: // constructor for RTCSessionDescriptions
    IceCandidate: // constructor for ice candidate
    MediaStream: // constructor for MediaStreams
    getUserMedia: // getUserMedia function
}

```

## License

MIT

## Created By

If you like this, follow: [@HenrikJoreteg](http://twitter.com/henrikjoreteg) on twitter.

---
_Source: https://npm.io/package/webrtcsupport · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
