• /
  • EnglishEspañolFrançais日本語한국어Português
  • Se connecterDémarrer

Install VegaTracker for HTML5

Install the New Relic VegaTracker to monitor native HTML5 video element playback in your Amazon Fire TV application. VegaTracker requires no player SDK and attaches to the W3C VideoPlayer element.

Before you begin

Complete the common installation steps first to create your application and retrieve your mobile application token.

Install the tracker

Install the HTML5 package

bash
$
npm install @newrelic/video-html5 --save

Install 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.

bash
$
npm install @amazon-devices/react-native-device-info --save

Initialize VegaTracker

Initialize VegaTracker inside the onSurfaceViewCreated callback. This ensures the player's async attach is complete before initialization.

Pass the VideoPlayer element as the first argument. You don't need a player SDK instance. 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.

Next steps

To continue, explore the following resources.

Droits d'auteur © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.