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
      • Enable secure video playback
      • Use custom domain
      • Switch audio tracks
      • Switch subtitle tracks
      • Add seek preview thumbnails
      • Enable fullscreen mode
      • Monitor video data
  • iOS player
    • Install FastPix iOS player
    • Play uploaded videos
    • Handle playback errors
  • Flutter player
    • Install FastPix Flutter player
    • Play uploaded videos
    • Handle playback errors
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • Set up token-based playback
  • How tokens protect your content
  • What’s next
Android playerAdvanced features

Enable secure video playback

Was this page helpful?
Previous

Use custom domain

Next
Built with

Learn how to protect video content using token-based authentication in the FastPix Android Player.

Set up token-based playback

Pass a playbackToken in your setFastPixMediaItem configuration to secure the stream:

1private fun startPlayback() {
2 player?.setFastPixMediaItem {
3 playbackId = "YOUR_PLAYBACK_ID"
4 playbackToken = "SET_PLAYBACK_TOKEN"
5 }
6}

How tokens protect your content

  • Unique playback ID identifies each video asset individually for secure and trackable playback.
  • Signed token authentication grants access only if a valid, cryptographically signed token is present in the playback URL.
  • Time-limited access — tokens can include expiration timestamps, allowing playback only within a defined time window.
  • User-specific control — tokens can be generated per user or session, restricting access based on identity or device.
  • Prevents unauthorized sharing — signed tokens stop others from reusing the URL, protecting content from piracy and hotlinking.
  • Customizable restrictions — tokens can include rules like IP restrictions, usage limits, or geo-blocking.

What’s next

  • Use a custom domain to stream from your own domain with token support.
  • Handle playback errors to troubleshoot token validation failures.