Skip to content
프로젝트

sieuhuflit/react-native-live-stream-rtmp-example

GitHub에서 보기

소개

React native live stream using RTMP

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
-1
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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

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 device

  2. Display blanked when join room on Android Make sure you change IP address on step above

License

MIT

관련 프로젝트 살펴보기

불러오는 중…