MseStreamSource 类

定义

表示 MSE) 流源 (媒体源扩展。

public ref class MseStreamSource sealed
/// [Windows.Foundation.Metadata.Activatable(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 MseStreamSource 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(65536, "Windows.Foundation.UniversalApiContract")]
class MseStreamSource final
[Windows.Foundation.Metadata.Activatable(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 MseStreamSource
[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(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class MseStreamSource
Public NotInheritable Class MseStreamSource
继承
Object Platform::Object IInspectable MseStreamSource
属性
实现

Windows 要求

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

注解

版本历史记录

Windows 版本 SDK 版本 增值
1709 16299 LiveSeekableRange

构造函数

MseStreamSource()

实例化未初始化的 MseStreamSource 的新实例。

属性

ActiveSourceBuffers

获取媒体源扩展 (MSE) 流源上处于活动状态的源缓冲区的列表。

Duration

获取并设置流源的持续时间。

LiveSeekableRange

获取或设置媒体源扩展的可查找时间范围。

ReadyState

获取一个值,该值指定 MseStreamSource 的就绪状态。

SourceBuffers

获取流源上的源缓冲区 (MSE) 源缓冲区的媒体源扩展的列表。

方法

AddSourceBuffer(String)

将源缓冲区添加到流源。

EndOfStream(MseEndOfStreamStatus)

指定流结束时的状态。

IsContentTypeSupported(String)

指定是否支持内容类型。

RemoveSourceBuffer(MseSourceBuffer)

从流源中删除源缓冲区。

事件

Closed

关闭 MseStreamSource 时发生。

Ended

MseStreamSource 结束时发生。

Opened

在打开 MseStreamSource 时发生。

适用于

另请参阅