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
  • When to use analytics
  • Configure analytics
  • Required and optional parameters
Android playerAdvanced features

Monitor video data

Was this page helpful?
Previous

Changelog

Next
Built with

Learn how to enable playback analytics in the FastPix Android Player using the FastPix Data Core SDK.

The FastPix Android Data Core SDK captures playback analytics automatically, including playback lifecycle events (play, pause, ready, complete, errors), buffering behavior, seek patterns, and engagement signals. The SDK sends collected data to your FastPix workspace for near real-time monitoring through the dashboard.

The integration is lightweight and doesn’t interrupt or degrade playback. If analytics setup fails at runtime, playback continues — analytics is fail-safe by design.

When to use analytics

Use analytics when you want to:

  • Measure viewer engagement and completion trends.
  • Detect buffering and quality-of-experience issues.
  • Correlate playback behavior with video metadata (for example, title and ID).
  • Monitor player health and failures in production.

Configure analytics

Set up analytics using AnalyticsConfig and pass it to FastPixPlayer.Builder:

1import io.fastpix.data.domain.model.VideoDataDetails
2import io.fastpix.media3.analytics.AnalyticsConfig
3import io.fastpix.media3.core.FastPixPlayer
4
5val videoDataDetails = VideoDataDetails("video-123", "Launch Demo")
6
7val analyticsConfig = AnalyticsConfig.Builder(
8 playerView = binding.playerView, // Required
9 workSpaceId = "your-workspace-id" // Required
10)
11 .setVideoDataDetails(videoDataDetails) // Optional metadata
12 .setEnabled(true) // Default is true
13 .build()
14
15val fastPixPlayer = FastPixPlayer.Builder(this)
16 .setAutoplay(true)
17 .setLoop(false)
18 .setAnalyticsConfig(analyticsConfig)
19 .build()
20
21binding.playerView.player = fastPixPlayer

Required and optional parameters

  • playerView and workSpaceId are required.
  • videoDataDetails, playerDataDetails, and customDataDetails are optional and can be added based on your use case.

Note: Current analytics APIs are optimized for Java-first Android integration. Kotlin ergonomics and customization options will improve in future releases.