Package Exports
- get-browser-rtc
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (get-browser-rtc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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