Share via


TimedTextSource 类

定义

表示计时文本数据的源。

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

Windows 要求

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

注解

从工厂方法之一 CreateFromStream 或 CreateFromUri 获取 TimedTextSource 的实例。 获取实例后,可以使用它设置 MediaSource 对象的 MediaSource.ExternalTimedTextSources 属性,以初始化其 ExternalTimedMetadataTracks 集合。

有关使用外部计时文本源的操作指南,请参阅 媒体项、播放列表和曲目

有关支持的计时文本格式的列表,请参阅 支持的编解码器

版本历史记录

Windows 版本 SDK 版本 增值
1703 15063 CreateFromStreamWithIndex (IRandomAccessStream,IRandomAccessStream)
1703 15063 CreateFromStreamWithIndex (IRandomAccessStream,IRandomAccessStream,String)
1703 15063 CreateFromUriWithIndex (Uri,Uri)
1703 15063 CreateFromUriWithIndex (Uri,Uri,String)

方法

CreateFromStream(IRandomAccessStream)

从提供的流创建 TimedTextSource 的新实例。

CreateFromStream(IRandomAccessStream, String)

使用提供的流中的指定默认语言创建 TimedTextSource 的新实例。

CreateFromStreamWithIndex(IRandomAccessStream, IRandomAccessStream)

创建 TimedTextSource 的新实例,该实例使用所提供的图像和索引流中的基于图像的字幕。

CreateFromStreamWithIndex(IRandomAccessStream, IRandomAccessStream, String)

创建 TimedTextSource 的新实例,该实例使用所提供的图像和索引流中的基于图像的字幕并设置默认语言。

CreateFromUri(Uri)

从提供的 URI 创建 TimedTextSource 的新实例。

CreateFromUri(Uri, String)

使用提供的 URI 中的指定默认语言创建 TimedTextSource 的新实例。

CreateFromUriWithIndex(Uri, Uri)

创建 TimedTextSource 的新实例,该实例使用所提供的图像和索引 URI 中的基于图像的字幕。

CreateFromUriWithIndex(Uri, Uri, String)

创建 TimedTextSource 的新实例,该实例使用所提供的图像和索引 URI 中的基于图像的字幕并设置默认语言。

事件

Resolved

在解析 TimedTextSource 时发生。

适用于

另请参阅