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
  • Player SDKs
    • Introduction
  • Web player
    • Install the FastPix web player
    • Play uploaded videos
    • Handle playback errors
  • Android player
    • Install FastPix Android player
    • Set up the player
    • Play uploaded videos
    • Handle playback errors
  • iOS player
    • Install FastPix iOS player
    • Play uploaded videos
    • Handle playback errors
  • Flutter player
    • Install FastPix Flutter player
    • Play uploaded videos
    • Handle playback errors
      • Secure video playback
      • Use a custom domain
      • Optimize live streaming
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • Disable caching for live streams
  • Live streaming checklist
Flutter playerAdvanced features

Optimize live streaming

Was this page helpful?
Previous

Parameter reference

Next
Built with

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:

1final liveDataSource = FastPixPlayerDataSource.hls(
2 playbackId: 'your-playback-id-here',
3 streamType: StreamType.live,
4 cacheEnabled: false,
5 customDomain: "custom-domain",
6);

Live streaming checklist

  • Set streamType explicitly to StreamType.live.
  • Set cacheEnabled: false to minimize latency.
  • Use a stable network connection for the best viewer experience.
  • If using a custom domain, pass it in the customDomain parameter.
  • For private live streams, include a valid JWT token.