Language: JavaScript and HTML | VB/C#/C++ and XAML

How to enable low-latency playback (Windows Runtime apps using C#/VB/C++ and XAML)

Applies to Windows and Windows Phone

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;


Related topics

Roadmap for creating Windows Store apps using C#, C++, or VB
XAML media playback sample

 

 

Show:
© 2014 Microsoft. All rights reserved.