Delivery package
Everything requested is included below with clean, minimal code and straightforward setup.
1. Flutter frontend
- One screen only
- Large “Watch Live” button
- Loads stream from backend
- Video player auto-starts
- Simple loading and error handling
2. FastAPI backend
- CORS enabled
/streamendpoint- Returns JSON with HLS URL
- No auth, no extra complexity
Recommended local backend URL for Android emulator
Use http://10.0.2.2:8000/stream in Flutter when running the FastAPI server on your computer.
lib/main.dart
pubspec.yaml
server.py
How to run everything
Minimal setup for stable local testing.