You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library has interoperability tests for Safari, Firefox, and Chrome. View the [KITE Dashboard](http://jruddell.com/react-native-webrtc-web-shim).
9
+
Add support for `react-native-web` to a `react-native-webrtc` app.
8
10
9
-
## Requirements
11
+
## Getting Started
10
12
11
-
This library assumes you have an existing React Native application using [`react-native-webrtc`](https://github.com/react-native-webrtc/react-native-webrtc).
13
+
Use one of the following preferred package install methods to immediately get going.
When displaying the `RTCView` component, pass it the `stream` object as a prop instead of `streamURL`. On Web, this component renders an HTML5 video tag.
@@ -45,37 +38,28 @@ When displaying the `RTCView` component, pass it the `stream` object as a prop i
45
38
46
39
#### Track Listener
47
40
48
-
Add an`ontrack` listener to your `RTCPeerConnection` object, similar to the `onaddstream` listener.
41
+
Add the`ontrack` listener to your `RTCPeerConnection` object, similar to the `onaddstream` listener.
Come join our [Discourse Community](https://react-native-webrtc.discourse.group/) if you want to discuss any React Native and WebRTC related topics.
60
+
Everyone is welcome and every little helps.
66
61
67
-
Fork and clone the repository and run:
62
+
## Related Projects
68
63
69
-
```javascript
70
-
npm link
71
-
```
72
-
73
-
If you run `npm install`, it will install the peer-dependencies. Due to [this React issue](https://github.com/facebook/react/issues/13991), you will need to link `react` in this project and your application.
74
-
75
-
```bash
76
-
cd node_modules/react
77
-
npm link
78
-
cd ../../MyApp
79
-
npm link react
80
-
81
-
```
64
+
Looking for extra functionality coverage?
65
+
The [react-native-webrtc](https://github.com/react-native-webrtc) organization provides a number of packages which are more than useful when developing Real Time Communication applications.
0 commit comments