api home

api: home
script your digital media
Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet
Web site references, may change without notice. You bear the risk of using it. This document does not provide you with any legal rights
to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. ©
2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and Windows Live are trademarks of the Microsoft group of
companies. All other trademarks are property of their respective owners.
touchdevelop api
digital living room
o
media servers provide music, video and
pictures
o
media players can display those assets
o
all connected through the home Wi-Fi
o
touchdevelop acts as a controller
touchdevelop api
apis
o
o
Media Player→play home
media
Plays a media from the home
network.
Player→play home media
Plays an audio/video file from
the home network
o
o
o
o
o
o
Home→printers
Gets the printers on the
current wireless network
Home→players
Gets the media players on
the current wireless
network
Home→servers
Gets the media servers on
the home network
Home→choose printer
Choose a printer on the
current wireless network
Home→choose player
Choose a media player on
the current wireless
network
Home→choose server
Choose a media server on
the current wireless
network
touchdevelop api
server → phone
action my random video on phone
var server := home→choose server
var video := server→choose video
player→play home media(video)
touchdevelop api
server → phone → player
action my random video
var server := home→choose server
var video := server→choose video
home→choose player→play home media(video)
touchdevelop api
server → phone or player
action my random video
var server := home→choose server
var video := server→choose video
video→post to wall
touchdevelop api
web → phone → player
action channel 9 videos
get the latest video from an RSS stream
var link := web→rss(“http://channel9/rss”)→at(0)
var pr := home→choose player
play it!
pr→play media(link→address)
touchdevelop api
touchdevelop api