Ooyala Pulse iOS & tvOS Framework 2.x Reference

This SDK allows you to integrate ad serving from your Ooyala Pulse account into your native iOS video player application.

Please see the changelog to see what is new and changed for this version.

Integrating the Pulse SDK into your project

After downloading the frameworks, you need to add them to the Embedded Binaries of your project. This is required because the Pulse iOS/tvOS framework is now a dynamic library.

To generate a build for the App Store, on the Build Phases of your target you should add a new Run Script Phase and add this line inside it:

bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Pulse.framework/strip-frameworks.sh"

This script removes the simulator frameworks from the binary before archiving to comply with the Appleā€™s App Store policy of attaching dynamic libraries.

(if you’re building for the Apple TV, replace Pulse.framework with Pulse_tvOS.framework)

Getting Started

During the startup of the video player application, you initialise the Pulse SDK and set up the connection to your Ooyala Pulse account using the setPulseHost method from OOPulse. After initialization, use OOPulse to create an OOPulseSession. The OOPulseSession has an OOPulseSessionDelegate which handles all the communication between the video player and the OOPulseSession.

When it is time to play a video ad, your OOPulseSessionDelegate will be sent an OOPulseVideoAd through the startAdPlaybackWithAd method.

Integration sample: OBJ-C