The MediaPlayer class provides a player that runs media (video or audio) using Silverlight in an ASP.NET Web page. The MediaPlayer class reference documentation includes simple error handling code used with the MediaPlayer server control. This post provides a link to C# and VB source code, as well as an example you can run.
-- Erik Reitan
ASP.NET User Education
This posting is provided "AS IS" with no warranties, and confers no rights.
Give Your Feedback on the Documentation
Help us improve the developer documentation by taking the Visual Studio and .NET Framework Content Survey. This survey will give us a better understanding of the type of applications you are developing as well as how you use Help and how we can improve it. The survey takes only 10 minutes, and we appreciate your feedback.