Creating an Integrated iOS Sender Application

Review the following content for information about creating an integrated Chromecast sender application using the Ooyala mobile SDK for iOS.

The sender includes the following classes:
Class Description
OOCastPlayer The interface between chromecast device and sender app. It is the object that sends/receives messages. It listens to the action from Ooyala CoreSDK and send the action to the receiver app, and it also listens to the message from the receiver app and transfer it to Ooyala Core SDK.
OOCastManager The interface between customer application/CoreSDK and the OOCastPlayer. It manages the switch between "cast mode" and "local playback mode" and all basic connections between sender app and chromecast device.
Use the following steps to integrate with the sender application UIViewController with OOOoyalaPlayer (where the UIViewController in the sender application contains a player).
Note: The following code is based on the PlayerViewController class in the ChromecastSampleApp.
  1. Initial Configuration Open the ChromecastSampleApp project in Xcode.
    1. Make sure you have -ObjC linker flag enabled.
    2. Link the following libraries as static libraries:
      OoyalaSDK.framework
      OoyalaCastSDK.framework
      GoogleCast.framework
      libz.dylib
  2. Initializing the Cast Manager
    1. Open OOCastManagerFetcher.m and specify your own NameSpace and App ID values:
      App ID The ID you were given when you register the receiver app with which you are trying to connect.
      NameSpace The namespace to identify the protocol of the message being sent for the related receiver app.
      Note: The namespace should not be changed unless you modify the receiver app source code.

Was this article helpful?