Skip to content

Integration Guides

Comprehensive guides for integrating Lunar Stream into your applications.

Integration Architecture

How It Works

StepComponentAction
1Your BackendCall API to create livestream, receive credentials
2BroadcasterUse RTMP URL + pushToken to start streaming
3Lunar StreamProcess and deliver stream to CDN network
4Viewer AppPlay 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

TaskGuideKey API
Create a livestreamQuick StartPOST /livestream
Push stream from OBSRTMP StreamingRTMP URL
Play stream in browserHLS PlaybackHLS URLs
Handle CDN failoverMulti-CDNhlsPaths[]
Monitor stream statusWebhooksGET /stream-info

Next Steps

  1. New to Lunar Stream? Start with Quick Start Guide
  2. Setting up broadcaster? See RTMP Streaming
  3. Building viewer app? Check HLS Playback

Released under the MIT License.