MediaStreamSourceSampleRenderedEventArgs
MediaStreamSourceSampleRenderedEventArgs
MediaStreamSourceSampleRenderedEventArgs
MediaStreamSourceSampleRenderedEventArgs
Class
Definition
Provides data for the MediaStreamSource.SampleRendered event, which occurs when a sample from a MediaStreamSource is rendered. Use SampleLag property to determine if there is a lag in the rendering of a sample, in which case you may decide to switch to a lower-bandwidth stream.
public : sealed class MediaStreamSourceSampleRenderedEventArgs : IMediaStreamSourceSampleRenderedEventArgspublic sealed class MediaStreamSourceSampleRenderedEventArgs : IMediaStreamSourceSampleRenderedEventArgsPublic NotInheritable Class MediaStreamSourceSampleRenderedEventArgs Implements IMediaStreamSourceSampleRenderedEventArgs// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
Remarks
Get an instance of this class by handling the MediaStreamSource.SampleRendered event.
Properties
SampleLag SampleLag SampleLag SampleLag
Gets a time span representing the lag with which a sample was rendered.
public : TimeSpan SampleLag { get; }public TimeSpan SampleLag { get; }Public ReadOnly Property SampleLag As TimeSpan// You can use this property in JavaScript.
- Value
- TimeSpan TimeSpan TimeSpan TimeSpan
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.