Share via


VideoTrackSupportInfo 类

定义

提供 VideoTrack 的支持信息。 此信息包括视频解码器的状态和与视频轨道关联的 MediaSource 的状态。

public ref class VideoTrackSupportInfo 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 VideoTrackSupportInfo 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 VideoTrackSupportInfo
Public NotInheritable Class VideoTrackSupportInfo
继承
Object Platform::Object IInspectable VideoTrackSupportInfo
属性

Windows 要求

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

注解

如果打开 VideoTrack 时发生故障,可以通过处理 OpenFailed 事件并检查作为发送方传递到事件的 VideoTrackSupportInfo 属性来获取详细的状态和失败信息。

属性

DecoderStatus

获取正在解码 VideoTrack 的视频解码器的状态,包括视频轨道的编码是完全受支持还是部分支持。

MediaSourceStatus

获取与 VideoTrack 关联的 MediaSource 的状态。

适用于