Gathering detailed insights and metrics for react-native-webrtc-simple
Gathering detailed insights and metrics for react-native-webrtc-simple
Gathering detailed insights and metrics for react-native-webrtc-simple
Gathering detailed insights and metrics for react-native-webrtc-simple
simple-p2p-webrtc
Simple WebRTC peer-to-peer connections in both React Native and React apps.
omnitalk-rn-sdk
Simple and Easy React-Native SDK for real time communication using webRTC
react-native-simple-peer
To building an exciting peer-to-peer WebRTC-based mobile Application
@100mslive/react-native-room-kit
100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.
A simple and easy to use module that help in making video call for React Native.
npm install react-native-webrtc-simple
Typescript
Module System
Node Version
NPM Version
TypeScript (55.77%)
Java (22.04%)
C++ (9.97%)
Objective-C++ (5.17%)
JavaScript (2.35%)
Makefile (2.17%)
Ruby (1.73%)
Objective-C (0.56%)
C (0.15%)
Swift (0.09%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
20 Stars
93 Commits
8 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Oct 17, 2022
Latest Version
1.4.2
Package Id
react-native-webrtc-simple@1.4.2
Unpacked Size
737.93 kB
Size
171.25 kB
File Count
43
NPM Version
6.14.17
Node Version
14.17.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
24
A simple and easy to use module that help in making video call for React Native. Implemented using react-native-webrtc.
1npm install react-native-webrtc-simple --save
or
1yarn add react-native-webrtc-simple
Now we need to install react-native-webrtc
Method | Description |
---|---|
start | Create connections |
stop | Stop connections |
getSessionId | Get your session id |
getLocalStream | Get your video stream |
getRemoteStream | Get remote video stream |
listenings | Listenings call events |
events | Method call events |
Value | Type | Description |
---|---|---|
optional | Object or null | Option peer configuration (https://peerjs.com/) |
key | String | Your session id |
Value | Type | Description |
---|---|---|
START_CALL | String | Your start call status |
RECEIVED_CALL | String | Call received status |
ACCEPT_CALL | String | Call aceept status |
END_CALL | String | Call end status |
MESSAGE | String | Listenings a message |
Method | Params | Description |
---|---|---|
call | sessionId:String, data:any | Initiate a call |
acceptCall | No | Accept a call |
endCall | No | Reject a call |
switchCamera | No | Switch camera |
videoEnable | No | On/Off video |
audioEnable | No | On/Off audio |
message | data:any | Events send message |
Value | Type | Description |
---|---|---|
START_GROUP_CALL | String | Your start call status |
RECEIVED_GROUP_CALL | String | Call received status |
JOIN_GROUP_CALL | String | Call received status |
LEAVE_GROUP_CALL | String | Call reject status |
Method | Params | Description |
---|---|---|
groupCall | groupSessionId: string[], userData: object = {} | Start group call |
joinGroup | arrSessionId: string[] | Join group call |
leaveGroup | No | Leave group call |
addStream | sessionId: string | Create a stream |
switchCamera | No | Switch camera |
videoEnable | No | On/Off video |
audioEnable | No | On/Off audio |
message | data:any | Events send message |
1import WebrtcSimple from 'react-native-webrtc-simple';
2
3useEffect(() => {
4 const configuration = {
5 optional: null,
6 key: Math.random().toString(36).substr(2, 4), //optional
7 };
8
9 WebrtcSimple.start(configuration)
10 .then((status) => {
11 if (status) {
12 const stream = WebrtcSimple.getLocalStream();
13 console.log('My stream: ', stream);
14
15 WebrtcSimple.getSessionId((id: string) => {
16 console.log('UserId: ', id);
17 });
18 }
19 })
20 .catch();
21
22 WebrtcSimple.listenings.callEvents((type, userData) => {
23 console.log('Type: ', type);
24 // START_CALL
25 // RECEIVED_CALL
26 // ACCEPT_CALL
27 // END_CALL
28 // MESSAGE
29 // START_GROUP_CALL
30 // RECEIVED_GROUP_CALL
31 // JOIN_GROUP_CALL
32 // LEAVE_GROUP_CALL
33 });
34
35 WebrtcSimple.listenings.getRemoteStream((remoteStream) => {
36 console.log('Remote stream', remoteStream);
37 });
38
39}, []);
40
41const callToUser = (userId) => {
42 const data = {};
43 WebrtcSimple.events.call(userId, data);
44};
45
46const acceptCall = () => {
47 WebrtcSimple.events.acceptCall();
48};
49
50const endCall = () => {
51 WebrtcSimple.events.endCall();
52};
53
54const switchCamera = () => {
55 WebrtcSimple.events.switchCamera();
56};
57
58const video = (enable: boolean) => {
59 WebrtcSimple.events.videoEnable(enable);
60};
61
62const audio = (enable: boolean) => {
63 WebrtcSimple.events.audioEnable(enable);
64};
65
66const sendMessage = (message: any) => {
67 WebrtcSimple.events.message(message);
68};
69
70const groupCall = (sessionId: string[]) => {
71 const data = {};
72 WebrtcSimple.events.groupCall(sessionId, data);
73};
74
75const joinGroup = (groupSessionId: string[]) => {
76 WebrtcSimple.events.joinGroup(groupSessionId);
77};
78
79const leaveGroup = () => {
80 WebrtcSimple.events.leaveGroup();
81};
82
No vulnerabilities found.
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
43 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More