Optimize live streaming
Learn best practices for live video streaming in the FastPix Flutter Player.
When streaming live video, use an HLS data source with streamType: StreamType.live. For the best real-time experience, disable caching so viewers stay as close to the live edge as possible.
Disable caching for live streams
Caching is useful for on-demand playback, but for live events it introduces unnecessary delay. Always set cacheEnabled: false:
Live streaming checklist
- Set
streamTypeexplicitly toStreamType.live. - Set
cacheEnabled: falseto minimize latency. - Use a stable network connection for the best viewer experience.
- If using a custom domain, pass it in the
customDomainparameter. - For private live streams, include a valid JWT
token.