1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 02:09:22 +02:00
Oinktube/node_modules/get-browser-rtc/readme.markdown
2023-02-17 15:04:26 -03:00

36 lines
586 B
Markdown

# get-browser-rtc
get webrtc methods unprefixed
This module has the same interface as the [wrtc](https://npmjs.com/package/wrtc)
package for easy swapability between node and browsers.
# example output
``` js
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