Learn how to protect video content using JWT tokens in the FastPix Flutter Player.
The FastPix Flutter Player supports token-based authentication for both on-demand and live streams. Pass a valid JWT token in the data source to restrict access to authorized viewers.
Secure on-demand playback
Secure live stream playback
How tokens protect your content
- Only viewers with a valid, cryptographically signed token can access the stream.
- Tokens can include expiration timestamps, restricting playback to a defined time window.
- Tokens can be generated per user or session for user-specific access control.
- Signed tokens prevent unauthorized URL sharing, protecting content from piracy and hotlinking.
Refresh tokens at runtime
If a token expires during a session, you can update the data source without reinitializing the player:
For details on generating JWT tokens, see Secure playback with JWTs.