Microsoft ASP.NET Futures (July 2007): Using the Media Control

This sample shows:

  1. The Media control and the client playlist (ASX).

To run this sample, your browser requires the latest release of Silverlight. If the browser does not have the correct version of Silverlight, the Xaml control automatically renders placeholder UI that the user can click to install Silverlight.

Example 1: Using the Media control and referencing a client playlist

In this example, the Media control refers to a client playlist (an ASX file). The playlist contains three entries:

Because the second movie is non-skippable, the player controls become diabled automatically when the movie transitions from the first movie to the second movie. Therefore the Next and Previous buttons and the Slider control do not respond to mouse clicks. The first clip is limited in length, so if you try to seek beyond the clip or click a chapter beyond the clip length, the second movie starts.

Note  Time values represent the play time at the point that the method is called.

Media Url:  

Player State:  


Marker Type:  

Marker text:  


Play Time:  


Duration Time: