DEV Community

Cover image for One Stream, Every Platform: Multi-streaming Made Easy
Amar Thodupunoori
Amar Thodupunoori

Posted on

One Stream, Every Platform: Multi-streaming Made Easy

Simulcasting lets you publish a single live stream to multiple platforms—YouTube, Facebook, Twitch, and more—all at once.
This way, you expand your audience without increasing your broadcasting workload.

Ant Media Server makes this process simple and efficient. Let’s walk through how to set it up.

🎯 What You Need

  • Ant Media Server (Community or Enterprise Edition)
  • A live stream publishing tool (OBS, Larix, WebRTC, etc.)
  • Stream keys / RTMP endpoints from the platforms you want to broadcast to

🔧 Step 1: Start a Live Stream

Start streaming to your Ant Media Server using:

  • WebRTC Publish
  • RTMP Encoder (e.g., OBS, vMix)
  • SRT Publish

Once your stream is live, you can attach external RTMP endpoints for simulcasting.

➕ Step 2: Add Simulcast Targets

You can do this in two ways:

Option A — Using the Web Dashboard (Enterprise Edition)

  1. Go to Ant Media Server Dashboard → Applications → LiveApp → Live Streams
  2. Select your stream
  3. Click on the "Add RTMP Endpoint" option
  4. Add the endpoint and save.

Enter:

  • RTMP URL (e.g., rtmp://a.rtmp.youtube.com/live2)
  • Stream Key
  1. Save the target

Ant Media Server will automatically push your stream to each target.

Option B — Using the REST API (Community & Enterprise)

Add a Simulcast endpoint:
POST /v2/broadcasts/{id}/rtmp-endpoint
Content-Type: application/json
{
"rtmpUrl": "rtmp://a.rtmp.youtube.com/live2/your-stream-key"
}

Delete a Target:
DELETE /v2/broadcasts/{id}/rtmp-endpoint/{endpointId}

List Targets:
GET /v2/broadcasts/{id}/rtmp-endpoint

▶️** Step 3: Start Simulcasting**
Once the stream is running, Ant Media Server automatically pushes it to all active RTMP endpoints you’ve added.

You can monitor each target’s status from the dashboard or via the API:

  • BROADCASTING
  • FAILED
  • NOT_STARTED

✔️ Tips for a Smooth Simulcast

  • Use a stable upload bandwidth that can comfortably handle your highest bitrate
  • Make sure your streaming platform keys are valid
  • Some platforms (like Facebook) expire keys after one use—generate a fresh one if needed
  • If pushing to many platforms, consider using transcoding (Enterprise) to send optimized bitrates

🎉 That’s It!

Simulcasting with Ant Media Server is straightforward and powerful. Whether you're building a social streaming platform, hosting events, or expanding your reach, this feature helps you broadcast everywhere at once.

Top comments (0)