270 likes | 811 Views
Smooth Streaming in Silverlight with the Silverlight Media Framework. By: Vince Bullinger Solution Design Group Iowa Code Camp VI 11/06/10. About Me. My name is Vince Bullinger Consultant with Solution Design Group Been a .Net consultant/developer since ’05 Got my MCSD in ’08
E N D
Smooth Streaming in Silverlight with the Silverlight Media Framework By: Vince Bullinger Solution Design Group Iowa Code Camp VI 11/06/10
About Me • My name is Vince Bullinger • Consultant with Solution Design Group • Been a .Net consultant/developer since ’05 • Got my MCSD in ’08 • I go to various UGs, conferences, etc. • Been in TechMasters since 11/08 • Married (2.5 yrs), live in St. Paul, WPI grad (‘04)
First Things First • Who’s never used Silverlight before? • Who knows anything about SMF?
Agenda • Is SMF right for you? • Path to SMF • What is the Silverlight Media Framework? • Background concepts, frameworks, tools • Getting Started with SMF • Demos. Lots of them
Is SMF Right for You? • Do you need a robust media player? • Do you need to play Smooth Streaming content? • Do you need to easily track media events? • Do you need an extensive, extensible media framework?
Path to SMF • Media Element • Deliver audio/video playback • Progressive download • Streaming (not Smooth Streaming) • DEMO • Silverlight Video Player: Joel Neubeck/Tim Heuer • DEMO
What is SMF? • Smooth Streaming media player • Robust • Scalable • Customizable • DVR capabilities • Framework from best practices of media player • Wimbledon • Sunday Night Football • Olympics • Open source
What Can SMF Do? • Robust media player in a simple XAML control • Deliver Smooth Streaming content • Extensive plug-in API • Support for Silverlight Analytics Framework • JavaScript API • Support for Managed Extensibility Framework
Background Concepts • Progressive download • Streaming (not Smooth Streaming) • Smooth Streaming
Progressive Download • A.k.a. “HTTP streaming” • Not streaming at all • Client plays media during download • As quickly as it can • “Buffering…” • Can not fast forward until download complete • DEMO
Regular Streaming • Multiple versions of a file w/different qualities • Can determine what quality media to send • Sends information for points in media • Allows for going back/forth w/minimal penalty • Can begin playback anywhere in media • Server can monitor what parts are played • More efficient bandwidth usage • DEMO
Smooth Streaming • Adaptive streaming of media • Feature in IIS7 (w/IIS Media Services) • Highest quality with no buffering • Delivers chunks of video at a time • Can change quality level mid-streaming • Bandwidth • CPU usage • DEMOS
Getting Started with SMF • http://smf.codeplex.com/ • Source code • Visual Studio templates • Sample projects • Install IIS Media Services to deliver Smooth Streaming • Expression Encoder to make Smooth Streaming content
Expression Encoder • Version 1: video editing • 2: VC-1 codec • 2, service pack 1: H.264, AAC encoding • 3: Zune HD, Xbox 360, iPod Touch, Facebook, YouTube, screen capture • 4: IIS live Smooth Streaming, create Smooth Streaming content • DEMO
Silverlight Analytics Framework • Extensible Web Analytics Framework for Silverlight, WPF, WP7 • Support for many analytics services • Google Analytics • Omniture • Many, many more • Boring: no demo!
Managed Extensibility Framework • Library in Silverlight 4 for building applications that can be incrementally extended • Provides standard way for host app to expose itself, consume external extensions • Discovery approaches for apps to locate, load extensions • Allows tagging extensions w/additional metadata which facilitates rich querying, filtering • Tangential: no demo!
Plugins • Logging; add UI elements; load timeline markers, chapters and captions; takeover media playback • Add completely new behavior • Load plugins deployed with an SMF application • Load external XAP files containing plugins over the network • Easily host, share plugins w/just the plugin’s URL • Boring, time consuming: no demo!
Q&A • Questions? Softballs only! • Comments? • Thanks for coming • If you liked my presentation, fill out evaluation • If you didn’t, don’t worry about the evaluation
Links • http://bit.ly/99qpDh - Zip file w/Source, PowerPoint • http://www.vincebullinger.com/ • http://techmasters-tc.com/ • http://smf.codeplex.com/ • http://www.silverlight.net/learn/videos/silverlight-media-framework/ • http://www.streamingmedia.com/Conferences/East2010/presentations/SMEast2010-Microsoft.pdf • http://msaf.codeplex.com/ • http://mef.codeplex.com/