Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
8BallBomBom authored Nov 1, 2023
1 parent b1e1de2 commit e5d3ca5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Use one of the following preferred package install methods to immediately get go

## Extra Required Steps

Replace the import statement of `react-native-webrtc` to import from `react-native-webrtc-web-shim` instead.
Import directly from our library instead of `react-native-webrtc`.

```javascript
-import { RTCPeerConnection } from 'react-native-webrtc';
Expand All @@ -27,7 +27,8 @@ Replace the import statement of `react-native-webrtc` to import from `react-nati

#### RTCView

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.
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.

```javascript
<RTCView
Expand Down Expand Up @@ -62,4 +63,4 @@ Everyone is welcome and every little helps.
## Related Projects

Looking for extra functionality coverage?
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.
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 comments on commit e5d3ca5

Please sign in to comment.