English 中文(简体)
How android remote control works with Google TV
原标题:

Any ideas on how Google TV remote app on android platform works. I just tried it today. Paired it over wi-fi and it just started to work. What s the concept behind it? It does not seem to be using Bluetooth. So then how does it work without installing any component on the TV?

最佳回答

I know this is an old question, but I figured I would add some additional details since the current answers are not very helpful. It works using IP, typically via WiFi, but not technically required. Below are some more specific details of the actual communication used for the devices to interact.

The Google TV Remote application uses Google s Anymote Protocol, which any application can use to create second screen style applications. There are several pieces to the Anymote Protocol.

The first being the discovery phase, where multicast DNS messages are used to discover any GTV based devices on the network. The mDNS messages are multicast using an IP of 224.0.0.251 port 5353. Any GTV devices who receive this message will respond with their machine name. At this point we now have a list of possible GTV devices.

The second/third phases are the identification and authentication phases, where the TV issues a challenge for the device to complete. After this pairing is established, SSL certificates are exchanged between the devices for future communication over a secure SSL/TLS channel.

The final phase involves the tablet/phone/etc device sending messages to the GTV device. There are several messages defined in the Anymote Protocol. The fling message, for instance, is translated into an Intent on the GTV device when received. This Intent can be used in any manner that a normal intent would be.

问题回答

The code to the Google TV remote has been opensourced so you can see how it works.

https://code.google.com/p/google-tv-remote/

Looking into Open source licensing info of Android TV remote app I find out that they are using google tv pairing protocol for pairing of TV with Android phone

The Google TV Pairing Protocol works in conjunction with the Anymote Protocol for communication between TV and phone:

You can look into source code for the Google TV Android Remote application(Not Android TV app) to see how Anymote protocol is used:

Unfortunately, besides this there is no more information available on internet.





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签