16.3. Displaying Rich Media with the MediaPlayer Control
The ASP.NET Extensions MediaPlayer control (see Figure 16-4) is the fastest way to present Windows Media on an ASP.NET page. I use the word present because the MediaPlayer control frames the content (using Silverlight) into a skinned scene complete with Start, Stop, Pause, Volume, and Full Screen mode buttons.
Figure 16-4. The ASP.NET MediaPlayer control includes Stop, Start, and Pause buttons.
Unlike the Silverlight control, you don't need to provide the MediaPlayer control with a .xaml file. Point it to the .wmv location, and you're done. Follow these steps to display a Windows Media file by using the MediaPlayer control:
Add an AJAX Web form named mediacntrl.aspx to your project.
The MediaPlayer control requires the ScriptManager control that's included in the AJAX Web Form template.
From the Toolbox, in Design view, drop an ASP.NET MediaPlayer control on the page.
Using the MediaPlayer control's Properties window (F4), set the MediaSkin property to Professional and the MediaSource property to the location of a .wmv file (for example, http://www.kencox.ca/media_control.wmv).
|
