This project has sample Chrome Extensions to help you learn how to use the Google TV Pairing Protocol and Anymote libraries in a Chrome Extension. Example extensions include:
AnymoteExample is a simple, functional extension that demonstrates Google TV communication using an NPAPI plugin. AnymoteLearningExercise is the starting point for a learning exercise. Currently AnymoteLearningExercise is non-functional. The goal is to watch the Google IO video (https://developers.google.com/events/io/sessions/gooio2012/1301/), open the LearningExerciseInstructions/instruction.html file, and implement the functionality yourself. When you finish the exercise, AnymoteLearningExercise will be the same as AnymoteExample and you’ll know a lot more about using the NPAPI library.
After you finish the learning exercise you should be able to copy the plugin folder to your own extension and start using the plugin yourself. By understanding the plugin methods you should be able to quickly get starting making extensions for Google TV.
Be warned that AnymoteExample is meant to be a simple example of the plugin methods, not a demonstration of best practice in defensive programming. In a real extension, exceptions should be handled appropriately and attempting Anymote communication should not be allowed until pairing is complete.