How to enable low-latency playback

Language: JavaScript and HTML | VB/C#/C++ and XAML
This topic has not yet been rated - Rate this topic

Setting the msRealTime attribute on a media element enables low-latency playback.

The msRealTime attribute, when set to true, 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. For more information on performance, see Audio and video performance.

The attribute must be set on the media tag explicitly, and can't be set in JavaScript.

See the Real-Time Communication Sample.

This example creates a Audio element and sets the msRealTime attribute to true.


   <audio src="GameEffect.avi" msRealtime=true 
       msAudioDeviceType="console" msAudioCatogery="soundeffects" />


Related topics

Audio and video performance
Real-Time Communication Sample

 

 

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.