This ties into my previous post, where I spoke about how to get your game or app on Xbox One.
Microsoft unveiled quiet a bit of information regarding SmartGlass during BUILD 2012, and much of it is available via this Power Point presentation. Ignore most of the C++ in there; I never had to touch any of that. All of my work was done via JavaScript and it worked fine.
I also spoke about SmartGlass development on this week’s Hanselminutes podcast.
Xbox SmartGlass SDK
The SDK exposes a number of APIs and native device controls via JavaScript. For example, I could tie into the mobile device’s accelerometer or gyro, which then sends the information back to the Xbox via JSON.
Application-level APIs
Device capabilities
WebSockets
Here is a Windows 8.1 sample on how to connect devices via WebSockets. I learned this on my own in two days, without any prior WebSockets knowledge. If I can do it, then you surely can.
What it comes down to is this: You want to pass a JSON object back and forth between one device and another. The device that receives the JSON object can then parse it, and extract any information relative to it, whether it is info about a character, a button press, or pointing the second screen towards a URL so that it can play a movie. I would suggest using the JavaScript sample though, as SmartGlass is written in JavaScript as well.
Practical Example
For a practical example on how to take advantage of a second screen experience, take a look at how the devs at in8bit integrated a second screen for their upcoming Unity title, Super Truckin’.
How to get started
Don’t have any hardware? Not a problem. If you’re in the US, I can pair you up with another Tech Evangelist in your area who can get you hardware (tablets or phones) and perhaps even some software to get you started. This site can help pair you up as well. Reach out to them!
Use WebSockets to have your second screen device communicate with your Windows 8 machine. Nearly everything you can do with SmartGlass, you can do on Win8 with WebSockets!
-----------------------@DaveVoyles

