See the IMA Sample App in Action on iOS

To get started, follow these steps to run the sample app Ooyala provides.

  1. Download the Ooyala Google IMA SDK for iOS (available at Ooyala Downloads).
  2. Unzip the OoyalaIMASDK-iOS.zip 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 = @"http://www.ooyala.com";
    Note: Leave unchanged the PLAYERDOMAIN as "http://www.ooyala.com". This constant works in conjunction with Syndication Controls (publishing rules) in Backlot. If you have set Internet domain restrictions on videos in Backlot (see the Backlot User Guide), the constant here can be set to one of those allowed domains. If you have not set these Syndication Controls, the constant has no effect.
  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.

Was this article helpful?