Integration Guides
Comprehensive guides for integrating Lunar Stream into your applications.
Integration Architecture
How It Works
| Step | Component | Action |
|---|---|---|
| 1 | Your Backend | Call API to create livestream, receive credentials |
| 2 | Broadcaster | Use RTMP URL + pushToken to start streaming |
| 3 | Lunar Stream | Process and deliver stream to CDN network |
| 4 | Viewer App | Play HLS stream from CDN URLs |
Available Guides
RTMP Streaming
Configure OBS, FFmpeg, and mobile apps to push RTMP streams.
- OBS Studio setup
- FFmpeg commands
- Mobile SDK integration
- Push token management
HLS Playback
Integrate HLS players into web and mobile applications.
- Video.js integration
- HLS.js setup
- React Native player
- iOS/Android native players
Multi-CDN Setup
Understand and utilize multiple CDN endpoints for redundancy.
- CDN failover implementation
- Region-based CDN selection
- Health checking
Webhooks & Events
Monitor stream status and handle events.
- Stream status polling
- Status change handling
- Best practices
Quick Reference
| Task | Guide | Key API |
|---|---|---|
| Create a livestream | Quick Start | POST /livestream |
| Push stream from OBS | RTMP Streaming | RTMP URL |
| Play stream in browser | HLS Playback | HLS URLs |
| Handle CDN failover | Multi-CDN | hlsPaths[] |
| Monitor stream status | Webhooks | GET /stream-info |
Next Steps
- New to Lunar Stream? Start with Quick Start Guide
- Setting up broadcaster? See RTMP Streaming
- Building viewer app? Check HLS Playback