get-browser-rtc

WebJar for get-browser-rtc

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

get-browser-rtc
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

get-browser-rtc
WebJar for get-browser-rtc
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/substack/get-browser-rtc

Download get-browser-rtc

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/get-browser-rtc/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>get-browser-rtc</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/get-browser-rtc/
implementation 'org.webjars.npm:get-browser-rtc:1.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/get-browser-rtc/
implementation ("org.webjars.npm:get-browser-rtc:1.0.2")
'org.webjars.npm:get-browser-rtc:jar:1.0.2'
<dependency org="org.webjars.npm" name="get-browser-rtc" rev="1.0.2">
  <artifact name="get-browser-rtc" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='get-browser-rtc', version='1.0.2')
)
libraryDependencies += "org.webjars.npm" % "get-browser-rtc" % "1.0.2"
[org.webjars.npm/get-browser-rtc "1.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.2