190 likes | 526 Views
Develop apps for your Living Room using the Media Center SDK. casey chesnut brains-N-brawn.com Madison .NET October 2007. Source. Hosted HTML and MCML - http://www.brains-n-brawn.com/artifacts/ugMceDev.zip Background MCML – http://www.brains-N-brawn.com/mceSapi/
E N D
Develop apps for your Living Room using the Media Center SDK casey chesnut brains-N-brawn.com Madison .NET October 2007
Source • Hosted HTML and MCML - http://www.brains-n-brawn.com/artifacts/ugMceDev.zip • Background MCML – http://www.brains-N-brawn.com/mceSapi/ • Guide data – http://www.brains-N-brawn.com/umpcFrame/ (GuideSimple) • XBAP – http://www.brains-N-brawn.com/mceZipPicWpf/
brains-N-brawn.com • Pervasive Computing • Tablet PC (MVP 03) • Compact Framework (MVP 04) • Advanced Web Services (MVP 05) • Media Center (MVP 06) • Speech / Office Communication Server (MVP 07) • Location Based Services • Artificial Intelligence • 3D • Image Processing • Augmented Reality
Outline • Introduction to MCE • Hosted HTML • Background App • XBAP • MCML • Other APIs
DEMO Intro MCE • Pictures, Music, Video, Radio, TV, Internet TV, DVD Library • Program Library • Online Spotlight
Remote Control • 10 feet away = large fonts • Simplify UI • 6 preferred buttons • Text input is hard • Keyboard commands
DEMO Extenders • Multiple extenders to 1 MCE PC • Remoted UI • Media streamed separately • Security limitations • No DVD Library • Codec support • UPnP support is Media Player NOT MCE
Getting Started • Vista Home Premium or Vista Ultimate • Visual Studio 2005 / Visual C# 2005 Express Edition • Media Center SDK 5.2 • (discuss.)mediaCenterSandbox.com • microsoft.public.windows.developer.mediacenter • theGreenButton.com
DEMO Hosted HTML • MCE 2005 and MCE Vista • Remoted to extender (~5 fps) • C:\Program Files\Microsoft SDKs\Windows Media Center\v5.0\Samples\Hosted HTML Samples • Scriptable object model • Can be hosted remotely (or locally with Cassini) • ActiveX (86/64), Flash … Silverlight • MCE does not have an open web browser built-in
Examples • WebGuide • MceWeather • MceBrowser
DEMO Background Add-In • MCE 2005 and MCE Vista • Only UI is Dialog boxes • Run once or keep running • http://blog.mediacentersandbox.com/CreatingABackgroundApplicationFromTheTemplate.aspx
Examples • OneVoice • Conversion tools • /mceXInput • /umpcFrame
DEMO Managed Object Model • Navigation • PlayMedia • TV Recording(s) • DVD Changer • Parental Controls • MediaMetadata • Limited EPG • …
DEMO XBAP UI • MCE Vista • VS 2005 Project Template • Remoted to extender (~5 fps) • Partial trust over the web, or Full trust locally • Lots of tools • Large community • Haven’t been able to debug since VS 2005 SP1
DEMO MCML UI • MCE Vista • Custom markup language for MCE • Native on extender (~30 fps) • Markup only over the web or Markup and code locally • What MCE is built with (pre XAML) • Limited tool support • Small community • Debug by attaching to process (registry)
Other App Models • CD DVD Burning • Media State Aggregation Service • ListMaker • ClickToRecord • Launch external apps • DirectShow
Gotchas • Debugging • UAC • Extender model • Cannot open a window handle • Long running operations • DirectXExclusive • Plugins running in their own process
Future • CableCards rolling out now • Internet TV last week • V2 extenders this holiday (DivX/XviD) • V2 Zunes • Xbox 360 fall update • Windows Home Server integration? • Live Anywhere on PCs? • Vista MCE will get a refresh next year • MediaRoom (ITV) is coming