1 / 25

Coding4Fun Windows Presentation Foundation Animation, YouTube, iTunes, Twitter, and Nintendo's Wiimote

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

meriel
Télécharger la présentation

Coding4Fun Windows Presentation Foundation Animation, YouTube, iTunes, Twitter, and Nintendo's Wiimote

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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

  3. Agenda • WiiEarthVR • InnerTube • BabySmash • TwitterVote • Vote for your favorite

  4. 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

  5. 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

  6. demo WiiEarthVR In Action  Brian Peek Senior Developer ASPSOFT Inc

  7. 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

  8. 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”

  9. 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

  10. demo InnerTubeIn Action  Dan Fernandez Evangelism Manager Microsoft

  11. 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

  12. 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

  13. demo BabySmash In Action  Scott Hanselman Program Manager Microsoft Corporation

  14. 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

  15. 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

  16. demo TwitterVote In Action  Clint Rutkas Academic Developer Evangelist Microsoft Corporation

  17. vote now

  18. 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

  19. DEVLABShttp://msdn.microsoft.com/devlabs

  20. 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

  21. Evals & Recordings Please fill out your evaluation for this session at: This session will be available as a recording at: www.microsoftpdc.com

  22. Q&A Please use the microphones provided

  23. © 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.

More Related