@dpwolfe/react-native-web-webrtc

0.1.2 • Public • Published

react-native-web-webrtc

A WebRTC module for React Native Web.

Build Status

Support

  • Supports browsers and chromeOS.
  • Support video and audio communication.
  • Supports data channels.
  • You can use it to build a client side application using react-native-web that can use WebRTC.

Installation

react-native-web-webrtc:

Usage

Now, you can use WebRTC using react-native in a browser or chromeOS.

In your index.web.js/index.chromeos.js file:

var WebRTC = require('react-native-web-webrtc');
var {
  RTCPeerConnection,
  RTCMediaStream,
  RTCIceCandidate,
  RTCSessionDescription,
  MediaStreamTrack,
  RTCView
} = WebRTC;

TODO:

  • Example project
  • Documentation of implementation
  • Clean up RTCView: unnecessary code.

Sister Projects:

This is a sister project to: react-native-webrtc and react-native-web

Package Sidebar

Install

npm i @dpwolfe/react-native-web-webrtc

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

171 kB

Total Files

20

Last publish

Collaborators

  • dpwolfe