MediaStreamSourceSampleRenderedEventArgs.SampleLag Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a time span representing the lag with which a sample was rendered.
public:
property TimeSpan SampleLag { TimeSpan get(); };
TimeSpan SampleLag();
public System.TimeSpan SampleLag { get; }
var timeSpan = mediaStreamSourceSampleRenderedEventArgs.sampleLag;
Public ReadOnly Property SampleLag As TimeSpan
Property Value
The lag with which a sample was rendered.
Remarks
If the value of this property is greater than 0, then the sample was rendered late. In this case, depending on the size of the lag, you may choose to switch to a lower bandwidth stream in order to reduce lag.