1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00
Oinktube/node_modules/get-browser-rtc
2023-02-17 15:04:26 -03:00
..
index.js Updates node modules 2023-02-17 15:04:26 -03:00
package.json Updates node modules 2023-02-17 15:04:26 -03:00
readme.markdown Updates node modules 2023-02-17 15:04:26 -03:00

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