Install the New Relic VegaTracker to monitor Shaka Player video playback in your Amazon Fire TV application.
Before you begin
Complete the common installation steps first to create your application and retrieve your mobile application token.
Install the tracker
Install the Shaka package
$npm install @newrelic/video-shaka --saveInstall device info
This step is optional. The device info library provides real device attributes — model, OS version, and UUID — in your video events. Without it, events use placeholder values for deviceModel and deviceUuid.
$npm install @amazon-devices/react-native-device-info --saveInitialize VegaTracker
Initialize VegaTracker inside the onSurfaceViewCreated callback. This ensures the player's async attach is complete before initialization.
Pass your Shaka player instance and the info object. The info object must include your account ID, application token, and endpoint. If you installed the device info library, also pass device attributes as info.deviceInfo.
When playback ends, call tracker.dispose() to release resources.
For the initialization example, use the code snippet in the New Relic guided install.
View your data
Deploy your application and play a video. Go to one.newrelic.com > Streaming Video & Ads to verify that data is flowing for your application.
Next steps
To continue, explore the following resources.
- View your data: Explore monitoring features and dashboards.
- Review compatibility requirements: Check supported platforms and versions.
- Update the agent: Keep your agent up to date.