Get your React Native playground streaming in under 5 minutes!
β
Node.js 18+ installed
β
ffmpeg installed (brew install ffmpeg on macOS)
β
Expo Go app on your phone (optional)
cd react_native_playground_backend
npm install
npm run devExpected: Server running on http://localhost:3000
cd expo-stream-app
npm install
# Find your computer's IP
ifconfig | grep "inet " | grep -v 127.0.0.1
# Example output: inet 192.168.1.100
# Edit app/index.tsx line 9 with your IP, then:
npx expo startThen:
- Press
ifor iOS simulator, or - Press
afor Android emulator, or - Scan QR with Expo Go app
In the app:
- Enter your server IP (e.g., 192.168.1.100)
- Tap "Start Streaming"
cd react-native-playground-frontend
npm install
npm run devOpen: http://localhost:3000
You should see the live stream in the Preview panel! π
Option A - View in Browser:
Navigate to: http://localhost:3000
Option B - View in VLC:
- Open VLC
- Media β Open Network Stream
- Enter:
http://localhost:3000/stream.mjpeg
Can't connect from mobile?
- Ensure mobile and computer are on same WiFi
- Check firewall allows ports 3000 and 3001
- Verify IP address is correct
No stream in browser?
- Check mobile app shows "π’ Streaming Active"
- Visit http://localhost:3000/status (should show
ffmpegRunning: true)
ffmpeg error?
# Verify ffmpeg is installed
ffmpeg -version
# If not installed:
brew install ffmpeg # macOS- Mobile App captures view at 10 FPS β sends via WebSocket
- Backend receives frames β pipes to ffmpeg β outputs MJPEG
- Frontend displays MJPEG stream in browser
- Read README.md for full documentation
- See SETUP_GUIDE.md for detailed setup
- Check expo-stream-app/README.md for mobile app customization
Happy Streaming! π