The FastPix Data SDK with KalturaPlayer 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 your project with Gradle files
Click Sync Now in the notification bar to download and integrate the FastPix Data SDK.
Ensure kalturaPlayer is already configured in your project.
Ensure that the workSpaceId is provided, as it is a mandatory field for FastPix integration, uniquely identifying your workspace. Install and import FastPixKalturaPlayer into your project, and create an fastPixKalturaPlayer instance to bind it to. If you are using any other custom player then create an instance of that player.
Next, create an instance of FastPixKalturaPlayer for tracking the analytics. After the video URL loads and playback begins, the SDK automatically begins tracking analytics.
kalturaPlayer in your Android application to enable seamless functionality. Use the following Kotlin or Java code in your Android application to configure kalturaPlayer with FastPix:workSpaceId is a mandatory parameter that tells the SDK on which workspace the data will collect.playerView is another mandatory parameter.See the User-Passable Metadata documentation to understand the metadata supported by FastPix.
You can use custom metadata fields such as customField1 to customField10 for implementing your business logic, allowing you to pass any required values. Named attributes like videoId and videoTitle can be passed directly without any additional configuration.
Context (usually the Activity), the KalturaPlayer instance, and the customerData.fastPixKalturaPlayer?.release() function to properly release resources.The CustomerData class accepts the following parameters:
After initialization, the SDK automatically collects:
Provide your stream URL in url field"your-stream-url.m3u8" and your FastPix workspace Key in the workspaceId field.
Enable logs using:
workSpaceId is correctrelease() in onDestroy() kalturaPlayer?.destroy() is called before releasing FastPix SDKThe SDK automatically tracks all events from Kaltura Player
Events are tracked based on Kaltura Player native event system
Check that Kaltura player is properly configured and receiving events
📩 Email: [email protected] 📚 Docs: fastpix.com/docs