For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
StatusSupportDiscussionsLog inSign Up
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
  • Get started
    • Overview
    • Quickstart
  • Broadcast
    • Live stream with RTMPS
    • Live stream with SRT
    • Set up OBS for live streaming
    • Set up vMix for live streaming
    • Live stream from a mobile device
  • Manage live streams
    • Create and manage live streams
    • Handle stream disconnects
    • Monitor stream health
  • Edit and transform live stream
    • Add metadata to a live stream
    • Add live captions to a stream
    • Clip moments from a live stream
    • Simulcast to multiple platforms
    • Stream pre-recorded content as live
    • Record and archive live streams
    • Enable DVR and rewind for live streams
  • Live stream events
    • Webhooks in live stream
    • Live events
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • Reconnect window
  • How it works
  • Customizing the reconnect window
Manage live streams

Handle stream disconnects

Manage live stream interruptions using reconnect windows and webhooks for automated recovery.
Was this page helpful?
Previous

Monitor stream health

Identify and resolve live stream ingest issues quickly using FastPix’s real-time tools. Diagnose buffering, stuttering, audio desync, and disconnects.

Next
Built with

Live streaming interruptions can occur due to network issues or errors in streaming software, causing streams to disconnect unexpectedly. FastPix provides built-in mechanisms to handle these disconnects, ensuring a seamless experience for both broadcasters and viewers.

This guide covers:

  • Reconnect Window: How FastPix manages temporary network disruptions.
  • Webhook Events: How to track stream status and automate responses.

Reconnect window

The Reconnect Window determines how long FastPix waits before considering a disconnected live stream as ended. If the network connection is restored within this time frame, the stream resumes seamlessly. Otherwise, it transitions to an idle state, and a media asset is created for the concluded stream.


How it works

  1. Live stream starts: When you start a live stream and connect it to an encoder like OBS, FastPix sends the video.live_stream.connected event.

  1. Media transmission begins: After the encoder starts sending media to FastPix’s ingest server, the following webhook events are triggered:
    • video.live_stream.active - indicating the stream is now live.
    • video.live_stream.recording - Recording begins if enabled.

  1. Network disruption: If the connection drops, FastPix detects the issue and sends the video.live_stream.disconnected event.

  1. Reconnect window initiates:
    • By default, FastPix waits 60 seconds before declaring the stream as over.
    • If the connection is restored within this period, the stream resumes normally.
    • If the connection is not restored within this period, the stream transitions to an idle state, and FastPix sends the following events:
      • video.live_stream.idle - The stream is no longer active.
      • video.media.created – An on-demand media asset is created for the concluded stream.

Here is a webhook event example when network disruption happens:

Event example
1{
2 "type": "video.live_stream.created",
3 "object": {
4 "type": "live",
5 "id": "84132a34dfa677eea4b658e09fa07ce2"
6 },
7 "id": "d6bb41d5-7e51-4bfa-840d-4e343c062109",
8 "workspace": {
9 "name": "Demo",
10 "id": "7f3d4994-ccab-4c83-90af-3e009b4d1541"
11 },
12 "data": {
13 "streamId": "84132a34dfa677eea4b658e09fa07ce2",
14 "streamKey": "bf8f433b25d8b6c2da6db70a069ab5cbk84132a34dfa677eea4b658e09fa07ce2",
15 "srtSecret": "6a6ef7b539a4a2ace01a7fb81c377beak84132a34dfa677eea4b658e09fa07ce2",
16 "trial": false,
17 "status": "idle",
18 "maxResolution": "1080p",
19 "maxDuration": 28800,
20 "createdAt": "2025-11-21T09:06:42.496286Z",
21 "reconnectWindow": 60,
22 "enableRecording": true,
23 "enableDvrMode": false,
24 "mediaPolicy": "public",
25 "metadata": {
26 "livestream_name": "fastpix_livestream"
27 },
28 "lowLatency": false,
29 "closedCaptions": false,
30 "playbackIds": [
31 {
32 "id": "cc209362-2d2d-4ffa-85a0-6b83b205ce3b",
33 "accessPolicy": "public"
34 }
35 ],
36 "srtPlaybackResponse": {
37 "srtPlaybackStreamId": "play84132a34dfa677eea4b658e09fa07ce2",
38 "srtPlaybackSecret": "e57b18e7c799e2ab0b3fff1650573777k84132a34dfa677eea4b658e09fa07ce2"
39 }
40 },
41 "createdAt": "2025-11-21T09:06:45.698708245Z",
42 "attempts": []
43}

Customizing the reconnect window

You can modify the reconnectWindow duration to adjust how long FastPix must wait before marking a stream as ended. Setting a higher value allows more time for recovery from temporary network fluctuations, while a lower value ensures quicker termination if the connection is unlikely to be restored.


POST request
$curl -X POST https://api.fastpix.com/v1/live/streams \
> --user "ACCESS_TOKEN_ID:SECRET_KEY" \
> -H "content-type: application/json" \
> -d '{
> "playbackSettings": {
> "accessPolicy": "public"
> },
> "inputMediaSettings": {
> "maxResolution": "1080p",
> "reconnectWindow": 60,
> "mediaPolicy": "public",
> "metadata": {
> "livestream_name": "fastpix_livestream"
> }
> }
> }'

NOTE

If reconnectWindow is not specified during the API request, it defaults to 60 seconds.

The maximum allowed time for reconnectWindow is 1,800 seconds (30 minutes).