Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 2.18 KB

File metadata and controls

37 lines (23 loc) · 2.18 KB

OptiView Player iOS Reference Apps - Advertising (OptiView Ads)

The purpose of this app is to demonstrate how to integrate OptiView Player (formerly THEOplayer) into an iOS app with SPM and playback a stream with OptiView Ads.

For a quick start with this sample, please proceed with the Quick Start section. You can also take a look at our Getting Started on iOS guide for more information.

Quick Start

  1. Navigate to your Xcode project and switch to the Package Dependencies tab. Click on the + button to add a new SPM package and enter in the search bar the URL of the following repo: https://github.com/THEOplayer/theoplayer-sdk-apple.

  2. Add the THEOplayerSDK and THEOplayerTHEOadsIntegration to your project.

(Only if using SPM): Also add GoogleInteractiveMediaAds from the https://github.com/googleads/swift-package-manager-google-interactive-media-ads-ios repo to your project by following the same steps. This step is not necessary if you are using Cocoapods, in which case the THEOplayerTHEOadsIntegration can automatically pull the GoogleInteractiveMediaAds dependency while fetching the pods.

  1. In the player configuration, replace the placeholder your_license_here with your license for iOS SDK.

    let playerConfigurationBuilder = THEOplayerConfigurationBuilder()
    playerConfigurationBuilder.license = "your_license_string"
    self.theoplayer = THEOplayer(configuration: playerConfigurationBuilder.build())

    If you don't have a license yet, please visit THEOportal Getting Started page.

  2. Open the project .xcodeproj, select a Development Team for signing and build it.

License

This project is licensed under the BSD 3 Clause License - see the LICENSE file for details.