I would like to create a multiplayer game (players are in the same room) where each player has an Android smartphone and they are all connected to a Cast device (such as chromecast) which is connected to a TV (where the game is screened). Each smartphone acts as a remote controller and the TV acts as the screen for every player.
Below I present two (im)possible solutions. Please let me know if the first solution is possible (and how to implement it) and if you know the answer to the second question.
1) Scenario 1:
Is it possible to run the game on one smartphone and render the image to a Cast device, while having the other players (on other smartphones) connected to the first smartphone (giving inputs to the game)? Is there a way to synchronize the players (such as the GameManager API) in this Remote Display App scenario? (Similar question)
2) Scenario 2:
If the first solution is not possible, please let me know your thoughts on the following scenario. The game is running as a Receiver Application (hosted on Google's server and being accessed by the Cast device) and it is possible to use the GameManager API. Each smartphone is a Sender Application that sends game actions and other messages. This is the situation presented in Google examples. In this situation, does the game have to be written in JavaScript, such as SpellCast in the latter link?
Thank you for any help!