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
Copy file name to clipboardExpand all lines: README.md
+16-4Lines changed: 16 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
## Requirements
6
6
7
-
This library assumes you have an existing `react-native`application using `react-native-webrtc`.
7
+
This library assumes you have an existing React Native application using [`react-native-webrtc`](https://github.com/react-native-webrtc/react-native-webrtc).
8
8
9
9
## Installation
10
10
@@ -30,7 +30,7 @@ Replace the import statement of `react-native-webrtc` to import from `react-nati
30
30
31
31
#### RTCView
32
32
33
-
When displaying the `RTCView` component, pass it the `stream` object as a prop instead of `streamURL`.
33
+
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.
34
34
35
35
```javascript
36
36
<RTCView
@@ -44,9 +44,11 @@ When displaying the `RTCView` component, pass it the `stream` object as a prop i
44
44
Add an `ontrack` listener to your `RTCPeerConnection` object, similar to the `onaddstream` listener.
Due to [this React issue](https://github.com/facebook/react/issues/13991), it is not possible to use `npm link`. To run locally you will need to package the app and install the `.tgz` file in your React Native app:
63
+
Due to [this React issue](https://github.com/facebook/react/issues/13991), to run locally you will need to link `react` in this project and your application.
64
+
65
+
```bash
66
+
cd node_modules/react
67
+
npm link
68
+
cd ../../MyApp
69
+
npm link react
70
+
71
+
```
72
+
73
+
Alternatively, you can package the app and install it directly. Note you will need to re-package the app to apply any changes.
0 commit comments