Silverlight for Windows Phone 7 Development Series (3): Multimedia development

Source: Internet
Author: User
Tags silverlight

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.