No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Ooyala Pulse SDK 2.x sample integration for iOS and tvOS

This project demonstrates a simple video player that requests and shows ads using the Ooyala Pulse SDK.

This project is a sample intended only to give a brief introduction to the Pulse SDK and help developers get started with their iOS integration.

This is absolutely not intended to be used in production or to outline best practices, but rather a simplified way of developing your integration.


  1. After cloning the project, download the Ooyala Video Advertising iOS SDKs here.
  2. Copy the required framework files into the Pulse folder of the project.
  3. Open the project file in XCode.
  4. Select the PulsePlayer scheme for iOS, or the PulsePlayer (TVOS) scheme for tvOS.
  5. Build the project.

Project structure

The Pulse SDK is initialized in the app delegate.

A VideoLibraryViewController shows a list of available videos, along with some metadata. When a video is selected, it is opened in a PlayerViewController (specialized for iOS and tvOS).

The PlayerViewController creates a OOPulseSession using the OOPulse class. This OOPulseSession informs the PlayerViewController through the OOPulseSessionDelegate protocol when it is time to play ads or the content.

A helper category AVAsset+Preloading is used to preload media files in another thread and reports back if an error occurred.

All tracking of ad impressions and inventory is automatically handled.

Demo Pulse account

This integration sample uses the following Pulse account:

This account is configured with a set of ad campaigns to help you test your Ooyala Pulse integration. Refer to the content library used in this sample for useful tags and categories.

Useful information