Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
sieuhuflit committed Jan 3, 2023
1 parent 620906c commit 937fbbd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

An example live stream rtmp application using React native

<img src="https://raw.githubusercontent.com/sieuhuflit/react-native-live-stream-rtmp-example/master/demo/demo.gif" />

## Getting Started

We need the RTMP server first. Download the repository below and follow the README information.
Expand All @@ -20,24 +22,22 @@ const Config = {
export default Config;
```

## Install package
## Install package & Running

```bash
yarn install
yarn ios
yarn android
```

## Running the App

### iOS
## Check live stream work

```bash
yarn run ios
```
After running rtmp server, we can run below command

### Android
Command below is serve the test.mp4 video to localhost with stream name `test`

```bash
yarn run run-android
```
ffmpeg -re -i ~/Desktop/test.mp4 -c copy -f flv rtmp://localhost/live/test
```

## FAQ
Expand Down
Binary file added demo/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 937fbbd

Please sign in to comment.