The FastPix Data SDK with THEOplayer helps you track key video metrics like user interactions, playback quality, and performance to enhance the viewing experience. It lets you customize data tracking, monitor streaming quality, and securely send insights for better optimization and error resolution.
To track and analyze video performance, initialize the SDK with your Workspace key. Learn about Workspaces.
Open your Android Studio project where you want to integrate the SDK.
Add the FastPix Data SDK dependency:
Navigate to your app-level build.gradle file (or build.gradle.kts if using Kotlin DSL).
Navigate to your settings.gradle file
Sync Now in the notification bar to download and integrate the FastPix Data SDK.1.Ensure that the workSpaceId is provided, as it is a mandatory field for FastPix integration, uniquely identifying your workspace. Install and import THEOplayer into your project, and create an theoplayer instance to bind it to. If you are using any other custom player then create an instance of that player.
FastPixBaseTheoPlayer to track analytics. After the video URL loads and playback begins, the SDK automatically begins tracking analytics.THEOplayerView in your Android application to enable seamless functionality. Use the following Kotlin or Java code in your Android application to configure ExoPlayer with FastPix:workSpaceId is a mandatory parameter that tells the SDK on which workspace the data will collect.playerView is another mandatory parameter coming THEOPlayer view.customField1 to customField10 for your business logic, giving you the flexibility to pass any required values. Named attributes, such as videoId and videoTitle, can be passed directly as they are. See the user-passable metadata documentation to see the metadata supported by FastPix.Context (usually the Activity), the THEOPlayer instance, and the customerData.FastPixBaseTheoPlayer.release() function to properly release resources.workspaceId, and look for video views.CustomerDataAfter initialization, the SDK automatically collects:
Provide your stream URL in the url field “https://example.com/video.m3u8” and your FastPix workspace key in the workspaceIdfield.
Enable logs using:
📩 Email: [email protected] 📚 Docs: fastpix.com/docs