VideoStreamDescriptor 类

定义

表示视频媒体流的说明。

public ref class VideoStreamDescriptor sealed
public ref class VideoStreamDescriptor sealed : IMediaStreamDescriptor2
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Core.IVideoStreamDescriptorFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class VideoStreamDescriptor final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Core.IVideoStreamDescriptorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VideoStreamDescriptor final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Core.IVideoStreamDescriptorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VideoStreamDescriptor final : IMediaStreamDescriptor2
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Core.IVideoStreamDescriptorFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class VideoStreamDescriptor
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Core.IVideoStreamDescriptorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VideoStreamDescriptor
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Core.IVideoStreamDescriptorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VideoStreamDescriptor : IMediaStreamDescriptor2
function VideoStreamDescriptor(encodingProperties)
Public NotInheritable Class VideoStreamDescriptor
Public NotInheritable Class VideoStreamDescriptor
Implements IMediaStreamDescriptor2
继承
Object Platform::Object IInspectable VideoStreamDescriptor
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

创建 MediaEncodingProfile 时,请调用 SetVideoTracks,传入一个或多个 VideoStreamDescriptor 对象,以提供有关要编码的视频轨道的信息。

有关在 UWP 应用中使用媒体流源的示例,请参阅 MediaStreamSource 示例

版本历史记录

Windows 版本 SDK 版本 已添加值
1709 16299 Label
1803 17134 复制

构造函数

VideoStreamDescriptor(VideoEncodingProperties)

使用指定的 VideoEncodingProperties 创建 VideoStreamDescriptor 类的实例。

属性

EncodingProperties

获取描述视频流的编码属性的 对象。 这些属性包括视频的分辨率和帧速率。

IsSelected

获取一个值,该值指示流当前是否由 MediaStreamSource 使用。

Label

获取或设置一个应用定义的标签,该标签标识包含多个流的 MediaEncodingProfile 中的视频流。

Language

获取或设置流的 RFC-1766 语言代码。

Name

获取或设置流的名称。

方法

Copy()

创建 Windows.Media.Core.VideoStreamDescriptor 的副本。

适用于

另请参阅