During the recent Google Glasses demonstration at SXSW this week, Google’s Timothy Jordan explained a little more about the way Google Glasses Mirror API would rely on RESTful data transport.
The Google Glasses API has been mentioned before but in the presentation Google revealed a little more about the technology and that the Google Glasses interface is built around the concept of a timeline.
Enabling Google Glasses users to swipe backwards and forwards using the touchpad on the Google Glasses frame. A timeline card, can be used to contain an image, text, audio or video, can be placed in the Google Glasses user timeline with the use of a HTTP Post command, and Get and Update (Put) actions are also supported within the Google Glasses interface. The Infromation Week website, explains:
“Message encoding is done using JSON. In code, a sample text message would be sent to Google in the form { "text" : "Your ad here"}
, preceded by the appropriate HTTP header. HTML markup can be sent as well, to provide more a visually appealing design.
Timeline cards support a few parameters that affect the mode of presentation. Formatted thus — { "text" : "Your ad here", "cardOptions" : [{ "action" : "READ_ALOUD" }] }
— a Glass user would hear the message read back using a text-to-speech voice. If nothing else, Project Glass has a bright future as an accessory for guided museum tours.”
Source: Information Week
Latest Geeky Gadgets Deals
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.