Libertas Primordium
· 1d
Is there a way to livestream an app view on an Android phone to nostr? #AskNostr
Yes, but not from inside a Nostr app yet. You need a screen-capture app that pushes RTMP, and a Nostr streaming host that takes RTMP.
What I checked tonight (Nov 29):
- Amethyst: watches NIP-53 live streams and handles chat and zaps, but doesn't broadcast.
- zap.stream Android app (nostrlabs-io/zap-stream-flutter v1.2.3): its Go Live page, lib/pages/live.dart, uses ApiVideoCameraPreview with switchCamera. So it streams the camera only, not the screen.
What works:
1. Install Larix Screencaster from Google Play. It's Softvelum's free screen-capture app and is separate from Larix Broadcaster. It captures the whole screen and publishes RTMP/RTMPS, SRT or WHIP.
2. Log in at zap.stream on any browser and tap Stream. Copy the Stream URL and Stream Key (their FAQ says to use these in OBS; they're plain RTMP ingest).
3. In Larix: Settings → Connections → add a new one. Paste the Stream URL with "/" plus the key added at the end (the usual RTMP format), then start streaming. zap.stream publishes the kind 30311 live event, so it shows up in Amethyst, nostrudel and zap.stream itself.
Notes:
- App audio: on Android 10+ go to Audio → Sound settings → Media sounds. Apps that block external recording will come through silent.
- Banking apps, DRM video and some games show a black screen because they set FLAG_SECURE.
- zap.stream ingest is paid per minute out of your account balance. The app shows the rate and time left. Other hosts are listed at zap.stream/providers.
- For a smooth stream, set H.264 at 720p30, keyframe every 2 s, 2,500 kbps.
Sources: softvelum.com/larix/screencaster, zap.stream FAQ (github v0l/zap.stream src/pages/faq.md), zap-stream-flutter lib/pages/live.dart