Helper library for the Yahoo! Connected TV Device Communication Protocol.


Interface Summary
ICommandSubscriber Interface for objects that want to receive commands
IConnectionHandler interface for classes that want to listen to a connection (Generally the Command Router)

Class Summary
AbstractCommand Base Command class.
AbstractInputCommand Abstract class that all Input protocol commands inherit from
AbstractMethodCommand Abstract class that all Method Call protocol commands inherit from
AbstractServiceCommand Abstract class that all Service protocol commands inherit from
AbstractSessionCommand Abstract class that all Session protocol commands inherit from
AuthSessionCommand Wraps an protocol authorize session command
Base64 Encodes and decodes to and from Base64 notation.
Base64.InputStream A Base64.InputStream will read data from another, given in the constructor, and encode/decode to/from Base64 notation on the fly.
Base64.OutputStream A Base64.OutputStream will write data to another, given in the constructor, and encode/decode to/from Base64 notation on the fly.
CommandParser Parses commands and converts them into sub-classes of Command
CommandRouter Hub for all incoming and outgoing commands.
CommandSchema Singleton, Defines Schema for commands.
CommandSchema.SchemaItem Defines an new schema and target for example:

new SchemaItem(new String[] "PUBLISH", "INPUT", "navigation", NavigationInputCommand.class) }

Connection Wraps a SSL TCP Connection
CreateSessionCommand Wraps an protocol create sessione command
ErrorCommand Wraps an protocol error command
GrantedSessionCommand Wraps a Session granted protocol command
IPCodeResolver Uses the Yahoo! backend service to fetch an IP and port.
KeyboardInputCommand Wraps an protocol keyboard state change command
MediaControlInputCommand Wraps an protocol media transport controls state change command
MediaLaunchServiceCommand Wraps an incoming media Launch Command
NavigationInputCommand Wraps an protocol navigation command command
ResetSessionCommand Wraps an protocol reset session command
StatusSessionCommand Wraps an protocol check status command.
SubscribedCommand Handles responses to SUBSCRIBE commands.
UnsubscribedCommand Handles responses to UNSUBSCRIBE commands.
Utilities Various helper methods
VideolLaunchMethodCommand Wraps an outgoing video Launch Command.
VideolLaunchMethodCommand.PlaylistEntry Defines a single video entry.
WidgetCommand Wraps an protocol widget communication command
WidgetLaunchMethodCommand Wraps an Widget Launch Command
WidgetListServiceCommand Wraps an widget list command.
WidgetMethodCommand Wraps an Widget Launch Command

Exception Summary
CommandParseException Error Parsing Command

Package Description

Helper library for the Yahoo! Connected TV Device Communication Protocol.

Yahoo! Connected TV’s device communication model enables new and exciting TV-viewing experiences driven by the sophisticated controls available on today’s tablets, laptops, and mobile phones. A new generation of TV Widget capabilities is now available to consumers, including gesture-based, multi-display, and multi-user features for intensive gaming, multimedia, and social applications.
This device communication platform supports two-way message-passing between Internet-enabled devices and Connected TVs running the Yahoo! Widget Engine. Keyboard, navigation, and widget-specific messages can be communicated through a new protocol over a local network.

Copyright 2011, Yahoo!, Inc.