Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sieuhuflit/react-native-live-stream-rtmp-example
React native live stream using RTMP
https://github.com/sieuhuflit/react-native-live-stream-rtmp-example
livestream react-native rtmp rtmp-client rtmp-server rtmp-stream
Last synced: 6 days ago
JSON representation
React native live stream using RTMP
- Host: GitHub
- URL: https://github.com/sieuhuflit/react-native-live-stream-rtmp-example
- Owner: sieuhuflit
- Created: 2018-08-13T03:13:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T21:18:59.000Z (over 1 year ago)
- Last Synced: 2024-12-05T23:08:33.481Z (18 days ago)
- Topics: livestream, react-native, rtmp, rtmp-client, rtmp-server, rtmp-stream
- Language: Java
- Size: 264 MB
- Stars: 228
- Watchers: 7
- Forks: 86
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React native live stream RTMP Example
An example live stream rtmp application using React native
## Getting Started
We need the RTMP server first. Download the repository below and follow the README information.
Server : https://github.com/sieuhuflit/live-tream-rtmp-server
## Config
Before start, open config.ts file to edit RTMP server ip address
```
const Config = {
RTMP_URL: 'rtmp://{YOUR_RTMP_IP_ADDRESS_HERE}/live',
};export default Config;
```## Install package & Running
```bash
yarn install
yarn ios
yarn android
```## Check live stream work
After running rtmp server, we can run below command
Command below is serve the test.mp4 video to localhost with stream name `test`
```
ffmpeg -re -i ~/Desktop/test.mp4 -c copy -f flv rtmp://localhost/live/test
```## FAQ
1. Start live stream iOS simulator not displayed
Start live stream not worked on iOS simulator, please test start live stream feature on real iOS device2. Display blanked when join room on Android
Make sure you change IP address on step above## License
[MIT](https://choosealicense.com/licenses/mit/)