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 ]
Roadmap: How does this topic relate to others? See:
- Roadmap for Windows Runtime apps using C# or Visual Basic
- Roadmap for Windows Runtime apps using C++
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.
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.
MediaElement media = new MediaElement(); media.RealTimePlayback = true;