问题描述:

I have been created custom receiver for my app and added in google cast developer console.But i don't know how to display the image one-by-one when user select the image from the gallery.I don't know what code i write in my Xcode for display the image by using receiver.

i found some point from the google cast site(https://developers.google.com/cast/docs/custom_receiver#initialization--readiness) but i have not understand what i do.Someone have done the task please help me.

  1. Get and hold the provided instance of the CastReceiverManager.
  2. Override/provide any event listeners on the CastReceiverManager.
  3. For media applications, identify the primary media element and connect it to a MediaManager.
  4. For media applications, override/provide any event listeners on the MediaManager.
  5. See Media, below, for more information on the default event listeners.
  6. For custom applications or media applications with custom protocol extensions (namespaces), call getCastMessageBus for the namespaces to be used.

    7.Call start on the CastReceiverManager to indicate the receiver application is ready to receive messages.

I have Searched the google and custom receiver site of google cast but i can't understand what code i write in my Xcode of the app for call the receiver.Someone help me i am beginner in google cast SDK.

Thanks in Advance

相关阅读:
Top