Adding multimedia (XAML)

[ This article is for Windows 8.x and Windows Phone 8.x developers writing Windows Runtime apps. If you’re developing for Windows 10, see the latest documentation ]

Purpose

This section contains information on how to use audio and video in your app.

It covers how to capture multimedia, play audio and video, process image files, share or stream media with Play To, and transcode multimedia.

The controls to capture, play, and render media are CaptureElement, MediaElement, and Image. These are defined in the Windows.UI.Xaml.Controls namespace.

For performance guidance on using audio and video, see Optimize media resources.

For samples that demonstrate using audio and video, see the Samples section in the Related topics below.

In this section

Topic Description

Capturing or rendering audio, video, and images

This section contains information on how to capture photos and videos from a capture device, such as a webcam, and how to render audio streams in an app.

Playing and previewing audio and video

This section contains topics on playing audio and video in your Windows Runtime app using C++, C#, or Visual Basic.

Processing image files

The Windows.Graphics.Imaging namespace lets you decode images and then edit the pixels and metadata. Then you can encode the result in various formats.

Transcoding

This section describes how to use the Windows.Media.Transcoding API to transcode audio and video files in your Windows Runtime app using C++, C#, or Visual Basic.

 

Roadmaps

Roadmap for Windows Runtime apps using C# and Visual Basic

Roadmap for Windows Runtime apps using C++

Designing UX for apps

Samples

XAML media playback sample

Transcoding media sample

Media capture sample

Camera capture UI sample

Camera options UI sample

Device enumeration sample

Media extension sample

Real-Time communication sample

Media Play To sample

PlayToReceiver sample

Playback manager sample

Effects discovery sample

MediaStreamSource streaming sample

System media transport controls sample

Reference

Windows.Media

Windows.Media.Capture

Windows.Media.Devices

Windows.Media.MediaProperties

Windows.Media.Playlists

Windows.Media.PlayTo

Windows.Media.Protection

Windows.Media.Transcoding

Windows.Graphics.Imaging

Other resources

Supported audio and video formats

Optimize media resources