See the IMA Sample App in Action on iOS

Was this article helpful?


  1. Download the Ooyala Google IMA SDK for iOS (available at Ooyala Downloads).
  2. Unzip the file.
  3. Go to the subdirectory OoyalaIMASDK-iOS/IMASampleApp.
  4. Open the file GoogleIMASampleApp.xcodeproj. This starts Xcode.
  5. In Xcode, open the folder GoogleIMASampleApp.
  6. Open IMASampleApp/Players/ IMAPlayerViewController.m for editing.
  7. In the IMAPlayerViewController implementation enter your Ooyala-supplied provider ID code, as the PCODE. For details, see Your API Credentials. This is shown in the following code sample:
    @implementation IMAPlayerViewController
    - (id)initWithPlayerSelectionOption:(PlayerSelectionOption *)playerSelectionOption {
      self = [super initWithPlayerSelectionOption: playerSelectionOption];
      self.nib = @"PlayerSimple";
      self.pcode =@"your pcode";
      self.playerDomain = @"";
  8. Save your changes.
  9. In the upper left, select a test device and select Run.

The video is loaded on the test device. Select the play button to view the video.