Language: JavaScript and HTML | VB/C#/C++ and XAML
1 out of 1 rated this helpful - Rate this topic

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

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 Store app built for Windows 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

 

 

Build date: 11/29/2012

© 2013 Microsoft. All rights reserved.