This section describes how to integrate the Flowplayer SDK with the Google Cast SDK, to be able to show and control media on a Google Cast device. The instructions assume you have installed the Flowplayer SDK and its dependencies in your app.
Add Google Cast to your project
Follow the instructions for how to add the Google Cast SDK to your project (Develop iOS Sender App: Setup). This involves adding the Cast SDK—either manually or via 3rd party dependency managers like cocoapods—and all its dependencies. Also, don't forget to add the needed capabilities in your Xcode project.
How to use a custom Google Cast receiver app
If you have your own Cast receiver app, you can set the app id in your iOS app's Info.plist, using the key FlowplayerCastReceiverAppId. If not set, the Flowplayer SDK will use Flowplayer's default Cast receiver app.
Starting the manager
Early on in your app's startup process, you need to start the FPCastManager. The Flowplayer cast manager will in turn start the Google Cast context provided by the Google Cast SDK.
Your app delegate's application:didFinishLaunchingWithOptions: is a good place to start the cast manager: