Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

get-browser-rtc

substack445.1kMIT1.1.0

get webrtc browser methods unprefixed

vendor, prefix, browser, webrtc, RTCIceCandidate, RTCPeerConnection, RTCSessionDescription, wrtc

readme

get-browser-rtc

get webrtc methods unprefixed

This module has the same interface as the wrtc package for easy swapability between node and browsers.

example output

console.log(require('get-browser-rtc')())

If you're in a browser that supports webrtc you'll get:

{ RTCIceCandidate: [Function: RTCIceCandidate],
  RTCPeerConnection: [Function: RTCPeerConnection],
  RTCSessionDescription: [Function: RTCSessionDescription] }

otherwise you'll get

null

install

npm install get-browser-rtc

license

MIT