Install the video agent using npm package manager for JavaScript applications.
Before you begin
Complete the common installation steps first.
Install using npm
Name your application
Provide a name to your application and click Save and Continue.
Install the agent
Install the latest release from New Relic by copying the code snippet and running it in your terminal (Mac) or command prompt (Windows).
重要
Select npm or Yarn to install the video agent.
Add code to your application
After the script is downloaded, include the code snippet displayed on the platform in your application to start monitoring your video player.
Generate application ID
Select Get Application Info. This will generate the application id for the browser entity generation.
View your data
Click See your data.
重要
It may take a few minutes to interact with your application and generate data.
What's next?
- View your data: Learn about the different views available in New Relic to monitor your streaming video and ads
- Compatibility requirements: Check supported video players and versions
- Update the agent: Keep your agent up to date