Fisch
Fisch

Reputation: 3815

How are messages sent back and forth between the sender and the receiver?

I am trying to build an app where I need to send data from the sender to the receiver after launching the receiver, and also sending messages from the receiver back to the sender.

I have read through the developers guide and the API documentation and looked at some of the examples on GitHub, and it looks like I need to use the ChannelFactory somehow.

I am looking for a good example and explanation on how to achieve this messaging.

Upvotes: 0

Views: 1280

Answers (3)

Fisch
Fisch

Reputation: 3815

With thanks to Nick and Les for pointing me in the right direction, I am going to leave an answer here that has code samples.

I have put together a small wrapper framework to make working with Chromecast a little easier. I hope others find this useful.

EDIT: I moved the code samples to github

Upvotes: 2

Les Vogel
Les Vogel

Reputation: 7132

The Tic-Tac-Toe sample shows how to do this using your own private protocol. The sample is for Android, we'll be providing an iOS sample shortly.

Upvotes: 1

Nick Spacek
Nick Spacek

Reputation: 4773

I don't know if it's a "good example", but some of the code here might help:

https://github.com/nickspacek/chromecast/tree/gh-pages

Upvotes: 2

Related Questions