Thursday, December 31, 2015

Android Google Cast App Development



Typical Sender app flow is 

1. Sender app starts MediaRouter device discovery.  MediaRouter.addCallback 
2. MediaRouter informs the sender app of the route that user has selected MediaRouter.Callback.onRouteSelected
3. Sender app retrieves CastDevice instance CastDevice.getFromBundle 
4. Sender app creates a GoogleApiClient GoogleApiClient.Connect
5. SDK confirms that GoogleApiClient is connected GoogleApiClient.ConnectionCallbacks.onConnected 
6. Sender App launches the receiver app Caster.castApi.launchApplication
7. SDK confirms that the receiver is connected ResultCallback 
8. Sender app creates a communication channel Cast.CastApi.sendMessageReceivedCallbacks 
9. Sender sends the message to the receiver over the communication channel. Cast.CastApi.sendMessage 

References:

No comments:

Post a Comment