How to enable low-latency playback (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 ]

Setting the RealTimePlayback property on a MediaElement enables low-latency playback.

Roadmap: How does this topic relate to others? See:

Prerequisites

This topic assumes that you can create a basic Windows Runtime app using C++, C#, or Visual Basic. For help creating your first app, see Create your first Windows Store app using C# or Visual Basic.

Instructions

Step 1: Enabling real time playback

The RealTimePlayback enables the media element to reduce the initial latency for playback. This is critical for two-way communications apps. And can be applicable to some gaming scenarios. Be aware that this mode is more resource intensive and is less power-efficient.

This example creates a MediaElement and sets RealTimePlayback to true.

MediaElement media = new MediaElement();
media.RealTimePlayback = true;

Roadmap for creating Windows Store apps using C#, C++, or VB

XAML media playback sample