O'Reilly logo

MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide by Johnny Tordgeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Playing media files

The final subject we will discuss in this chapter is the media capabilities of Silverlight. As it was first introduced, Silverlight was always a media-focused framework. Silverlight has the ability to play audio and video files (HD content), stream media, and use Digital Rights Management (DRM) to protect the displayed media. The heart of all of these is the MediaElement control.

The MediaElement control

The MediaElement control is a rectangular control that can contain audio or video as its content. Silverlight supports many codes for audio and video and a full list of supported codecs can be found on the MSDN website—http://msdn.microsoft.com/en-us/library/cc189080%28v=vs.95%29.aspx.

Using the MediaElement control is quite ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required