250 likes | 474 Views
Coding4Fun Windows Presentation Foundation Animation, YouTube, iTunes, Twitter, and Nintendo's Wiimote. Dan Fernandez Evangelism Manager Microsoft Corporation. Scott Hanselman Program Manager Microsoft Corporation. Brian Peek Senior Developer ASPSOFT. Clint Rutkas
E N D
Coding4Fun Windows Presentation Foundation Animation, YouTube, iTunes, Twitter, and Nintendo's Wiimote Dan Fernandez Evangelism Manager Microsoft Corporation Scott Hanselman Program Manager Microsoft Corporation Brian Peek Senior Developer ASPSOFT Clint Rutkas Academic Evangelist Microsoft Corporation
Coding4FunWhat to expect • Whet your appetite and have fun • Lots of content, very little time (45 minutes) • ~ 10 minutes per project • We will whip through (most) slides • Resources at the end, slides available online • All questions will be answered afterwards • Sit back, relax, and enjoy
Agenda • WiiEarthVR • InnerTube • BabySmash • TwitterVote • Vote for your favorite
WiiEarthVR – Components • Virtual Earth 3D • Reflector is your friend • As is http://blogs.msdn.com/VirtualEarth3D/ • Wiimote • WiimoteLib, my .NET Wiimote API • Connects to Wiimote and Balance Board • Vuzix VR920 Glasses • Twin 640x480 LCD displays that support stereoscopic 3D • Sensors to determine roll, pitch, yaw in any position • Easy to use SDK • P/Invoke to 3 methods for head tracking, 4 methods for stereoscopic imagery
WiiEarthVR – Putting It Together • VE3D GlobeControl on a WinForm • Use center of gravity on Balance Board to move user through environment • Use Nunchuk to change user’s altitude • Set VE3D camera’s roll/pitch/yaw to VR920 sensor values • Every other frame, move camera left/right several “units” and pass alternate frames to left/right eye of VR920 • The final effect is a fully-immersive flying glider experience through Virtual Earth 3D
demo WiiEarthVR In Action Brian Peek Senior Developer ASPSOFT Inc
Programming iTunes • iTunes • Apple publishes COM SDK • Includes VB, C# examples • Copy of Music Library in XML • iTunes Playback • QuickTime COM control • MediaElement control only plays back WMA, WMV, MP3, MP4 Audio
Programming YouTube Video • YouTube’s API • URL-Based, XML/REST API • Search, Subscriptions, Upload, Favorites, Comments, Common Feeds • Auth only required for upload • FFMPEG • Swiss-army knife of video conversion (59+ formats) • FLV, MP3, MP4, WMA, WMV • Resizing, re-sampling of data ffmpeg.exe –i “foo.wmv” foo.mp4”
InnerTube Download, convert, and sync YouTube videos • Pulls a list of videos and images using the YouTube API • Downloads each video • Converts each video to MP4 & WMV • Syncs to iTunes and/or Zune • Updates master list on UI thread • 2 Feeds: (1) Top-Rated videos, (2)Dan’s Favorite 2 RSS, 50 images 50 x 10 MB = 500MB 50-100 conversions 30 seconds per video
demo InnerTubeIn Action Dan Fernandez Evangelism Manager Microsoft
BabySmashService BabySmash Client BabySmash Web Reporting Site w/Charts BabySmash Mobile JIST: Babies smash, metrics are sent up to the server and the reporting site shows a nice histogram bell curve of what keys are being smashed. Then we take the babies’ money. PayPal FTW! BabySmash “Big Ass Table”? DB
Today BabySmash ADO.NET Data Service BabySmash WPF BabySmash Silverlight Reporting Site ASP.NET MVC BabySmashWindows Mobile JIST: Babies smash, metrics are sent up to the server and the reporting site shows a nice histogram bell curve of what keys are being smashed. Then we take the babies’ money. PayPal FTW! BabySmash Surface SQL 2008
demo BabySmash In Action Scott Hanselman Program Manager Microsoft Corporation
TwitterVote • Uses Twitter Replies for votes • Currently supports two different types of polls • Comma delimited • poll c#,vb,f#,c++ • Number range • poll 1-10
TwitterVote • Simple page execution • TwitterService calls REST twitter URLs Example: http://twitter.com/ statuses/user_timeline/ coding4fun.xml • Popfly and Silverlight powers the User Interface • Pipe delimited list sent to a graph Default.aspx Poll TwitterService
demo TwitterVote In Action Clint Rutkas Academic Developer Evangelist Microsoft Corporation
Coding4Fun BookPre-order now, shipping November 15th • Alien Attack • LEGO Soldier • Warcraft RSS Reader • PeerCast • InnerTube • TwitterVote • Wiimote R/C Car • Wiimote Whiteboard • Holiday Lights • Home Server Mail
Coding4Fun Resourcesblogs.msdn.com/coding4fun/ • WiiEarthVR • Wiimote Library – codeplex.com/wiimotelib • Project source: Coming soon • InnerTube • iTunes SDK - http://tinyurl.com/6zfyfu • YouTube API - http://tinyurl.com/2afz7q • Project – codeplex.com/innertube • BabySmash • Project: codeplex.com/babysmash • TwitterVote • Twitter API: http://apiwiki.twitter.com • Project: codeplex.com/twittervote
Evals & Recordings Please fill out your evaluation for this session at: This session will be available as a recording at: www.microsoftpdc.com
Q&A Please use the microphones provided
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.