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.
- After cloning the project, download the Ooyala Video Advertising iOS SDKs here.
- Copy the required framework files into the Pulse folder of the project.
- Open the project file in XCode.
- Select the
PulsePlayerscheme for iOS, or the
PulsePlayer (TVOS)scheme for tvOS.
- Build the project.
The Pulse SDK is initialized in the app delegate.
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.