---
title: Install automatically using CocoaPods
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/ios/install-automatically-using-cocoapods
---

This page provides an overview of the installation steps when using CocoaPods to install the Streaming Video & Ads agent. For the complete installation with code examples, use the [guided install](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/ios/get-started-with-ios).

### Add dependencies

Add the video agent pods to your Podfile.

### Install pods

Run `pod install` in your terminal.

### Build project

Open your project in **Xcode** and build it.

1.  Click **Continue**.

### Initialize video tracker

Select the agent type that matches your implementation:

-   **Video agent with AVPlayer tracker only**: For video playback tracking
-   **Video agent with AVPlayer and IMA trackers**: For video playback and ad tracking

1.  Click **See your data** to view your streaming data in New Relic.

## What's next?

-   [View your data](https://docs.newrelic.com/docs/streaming-video-&-ads/view-data-in-newrelic/streaming-video-&-ads-features): Learn about the different views available in New Relic to monitor your streaming video and ads
-   [Compatibility requirements](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/compatibility-requirements): Check supported platforms and versions
-   [Update the agent](https://docs.newrelic.com/docs/streaming-video-&-ads/update-the-media-agent): Keep your agent up to date
