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
* Initial update
* Compatibility with older RN versions
* That is more like it should be :o!
* We will do a new example app at a later point
* Oops, didn't catch that one
When displaying the `RTCView` component make sure to give it the `stream` object as a prop instead of `streamURL`, you'll then be using an HTML5 video element on your Web app.
29
42
30
-
When displaying the `RTCView` component, pass it the `stream` object as a prop instead of `streamURL`.
31
-
On Web, this component renders an HTML5 video tag.
43
+
Simply change this.
32
44
33
45
```javascript
34
-
<RTCView
35
-
-streamURL={stream.toURL()}
36
-
+stream={stream}
37
-
/>
46
+
<RTCView streamURL={stream.toURL()} />
38
47
```
39
48
40
-
#### Track Listener
41
-
42
-
Add the `ontrack` listener to your `RTCPeerConnection` object, similar to the `onaddstream` listener.
You don't need `toURL` as that is handled for you.
56
+
58
57
## Community
59
58
60
59
Come join our [Discourse Community](https://react-native-webrtc.discourse.group/) if you want to discuss any React Native and WebRTC related topics.
61
-
Everyone is welcome and every little helps.
60
+
Everyone is welcome and every little helps.
62
61
63
62
## Related Projects
64
63
65
64
Looking for extra functionality coverage?
66
-
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.
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