TimedTextSource Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a source of timed text data.
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
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
Get an instance of TimedTextSource from one of the factory methods, CreateFromStream or CreateFromUri. After obtaining an instance, you can use it to set the MediaSource.ExternalTimedTextSources property of a MediaSource object to initialize its ExternalTimedMetadataTracks collection.
For how-to guidance for working with external timed text sources, see Media items, playlists, and tracks.
For a list of supported timed text formats, see Supported codecs.
Version history
Windows version | SDK version | Value added |
---|---|---|
1703 | 15063 | CreateFromStreamWithIndex(IRandomAccessStream,IRandomAccessStream) |
1703 | 15063 | CreateFromStreamWithIndex(IRandomAccessStream,IRandomAccessStream,String) |
1703 | 15063 | CreateFromUriWithIndex(Uri,Uri) |
1703 | 15063 | CreateFromUriWithIndex(Uri,Uri,String) |
Methods
CreateFromStream(IRandomAccessStream, String) |
Creates a new instance of TimedTextSource with the specified default language from the provided stream. |
CreateFromStream(IRandomAccessStream) |
Creates a new instance of TimedTextSource from the provided stream. |
CreateFromStreamWithIndex(IRandomAccessStream, IRandomAccessStream, String) |
Creates a new instance of TimedTextSource that uses image-based subtitles from the provided image and index streams and sets the default language. |
CreateFromStreamWithIndex(IRandomAccessStream, IRandomAccessStream) |
Creates a new instance of TimedTextSource that uses image-based subtitles from the provided image and index streams. |
CreateFromUri(Uri, String) |
Creates a new instance of TimedTextSource with the specified default language from the provided URI. |
CreateFromUri(Uri) |
Creates a new instance of TimedTextSource from the provided URI. |
CreateFromUriWithIndex(Uri, Uri, String) |
Creates a new instance of TimedTextSource that uses image-based subtitles from the provided image and index URIs and sets the default language. |
CreateFromUriWithIndex(Uri, Uri) |
Creates a new instance of TimedTextSource that uses image-based subtitles from the provided image and index URIs. |
Events
Resolved |
Occurs when the TimedTextSource is resolved. |