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.
Download the SDK
You can download the SDK in one of the following 2 ways.
Add FlowplayerChromecast together with its dependencies in your Podfile:
pod 'Flowplayer' # required
Execute pod install and you're ready to go.
Download the XC framework of Flowplayer Chromecast iOS SDK from here.
Add Google Cast to your project
!!! Important !!!
Make sure to use Cast iOS SDK version >=4.6.0.
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: