Skip to content
Proyek

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

Lihat di GitHub

Tentang

React native live stream using RTMP

Pengembangan web dan aplikasi

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
-1
dalam 15 hari
-1
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

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

Jelajahi proyek terkait

Memuat…