0.0.18 • Published 8 years ago

react-simplewebrtc v0.0.18

Weekly downloads
21
License
MIT
Repository
github
Last release
8 years ago

React webRTC component built with SimpleWebRTC

The webRTC component takes a roomname for the room to join and the signal server url.

  1. Include the script "https://simplewebrtc.com/latest-v2.js" in the header of the html
  2. Put the webRTC component in the render function
  3. Pass options = {infoObject} as props

Example Use Case

import WebRtc from 'react-simplewebrtc';

class WebRtcDemo extends React.Component {

  constructor(props) {
    super(props);
  }

  render() {
      var infoObject = {
        roomname : "test33333",
        /*provide a valid url for signalmaster otherwise this won't work*/
        signalmasterUrl : "www.example.com"
      }
      return (
            < div >
              <WebRtc options = {infoObject}/>
            </div>
      );
  };
}

Jsfiddle example https://jsfiddle.net/shoque/7jwg7etm/

0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.1.0

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago