Objective
This article describes how to create a new Silverlight for Windows Phone application in the previous article, which describes how to develop multimedia applications on Windows Phone. Also describes the media file formats supported by the current beta version of Windows Phone, as well as some of the limitations and points of attention for Windows Phone Multimedia development.
Use of MediaElement controls
Using Silverlight to develop generic multimedia applications, using MediaElement controls is sufficient, MediaElement controls support audio and video files, local and network files, and decoders (codec) that support multiple multimedia files. Greatly simplifies the difficulty of developing multimedia applications.
New MediaElement Control
The example below continues to describe how to use the MediaElement control
You need to add a MediaElement control, there are three ways: method to drag the MediaElement control on the Toolbox onto the design page; In the XAML file, click the location where you want to store the MediaElement control. Then double-click MediaElement in Toolbox to add the MediaElement control directly to the XAML file by writing code manually. All three methods are equivalent.
In the example, I also added three buttons for switching radio and playback, and later articles in this series will show you how to use Expression Blend to beautify the buttons, and now use text to describe them. The effect of the following figure: