次の方法で共有


By Example: Error Handling with the ASP.NET MediaPlayer for Silverlight

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.

The OnPluginError attribute and the OnClientMediaFailed attribute of the MediaPlayer server control can be used to process client error events using JavaScript functions.

For code examples and more information, see MediaPlayer Class reference in the MSDN Library.

Additional Information

ASP.NET Controls for Silverlight

System.Web.UI.SilverlightControls Namespace

Sys.UI.Silverlight (client) Namespace

Silverlight Resources

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

Comments