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:
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.
video.live_stream.connected event.video.live_stream.active - indicating the stream is now live.video.live_stream.recording - Recording begins if enabled.video.live_stream.disconnected event.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:
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.
NOTE
If
reconnectWindowis not specified during the API request, it defaults to 60 seconds.The maximum allowed time for
reconnectWindowis 1,800 seconds (30 minutes).