Share via


MediaStreamSourceSwitchStreamsRequest 类

定义

表示 MediaStreamSource.SwitchStreamsRequest 事件用于向应用程序提供信息的对象。

public ref class MediaStreamSourceSwitchStreamsRequest sealed
/// [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 MediaStreamSourceSwitchStreamsRequest final
[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 MediaStreamSourceSwitchStreamsRequest
Public NotInheritable Class MediaStreamSourceSwitchStreamsRequest
继承
Object Platform::Object IInspectable MediaStreamSourceSwitchStreamsRequest
属性

Windows 要求

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

注解

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

属性

NewStreamDescriptor

获取 MediaStreamSource 现在选择的流的流描述符。

OldStreamDescriptor

获取 MediaStreamSource 不再选择的流的流描述符。

方法

GetDeferral()

延迟完成 MediaStreamSource.SwitchStreamsRequested 事件。

适用于

另请参阅