0.0.18 • Published 10 years ago
react-simplewebrtc v0.0.18
React webRTC component built with SimpleWebRTC
The webRTC component takes a roomname for the room to join and the signal server url.
- Include the script "https://simplewebrtc.com/latest-v2.js" in the header of the html
- Put the webRTC component in the render function
- 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
10 years ago
0.0.17
10 years ago
0.0.16
10 years ago
0.0.15
10 years ago
0.0.13
10 years ago
0.0.12
10 years ago
0.1.0
10 years ago
0.0.11
10 years ago
0.0.10
10 years ago
0.0.9
10 years ago
0.0.8
10 years ago
0.0.7
10 years ago
0.0.6
10 years ago
0.0.5
10 years ago
0.0.4
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago
0.0.1
10 years ago