MediaStreamSourceSampleRenderedEventArgs 类

定义

MediaStreamSource.SampleRendered 事件提供数据,该事件在呈现 来自 MediaStreamSource 的示例时发生。 使用 SampleLag 属性可确定在呈现样本时是否存在延迟,在这种情况下,可以决定切换到低带宽流。

public ref class MediaStreamSourceSampleRenderedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaStreamSourceSampleRenderedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaStreamSourceSampleRenderedEventArgs
Public NotInheritable Class MediaStreamSourceSampleRenderedEventArgs
继承
Object Platform::Object IInspectable MediaStreamSourceSampleRenderedEventArgs
属性

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

注解

通过处理 MediaStreamSource.SampleRendered 事件获取此类的实例。

属性

SampleLag

获取一个时间跨度,该时间跨度表示呈现样本时所用的滞后时间。

适用于