Dela via


TimedMetadataStreamDescriptor Class

Definition

Represents a description a timed metada media stream.

public ref class TimedMetadataStreamDescriptor sealed : IMediaStreamDescriptor2
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Core.ITimedMetadataStreamDescriptorFactory, 393216, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TimedMetadataStreamDescriptor final : IMediaStreamDescriptor2
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Core.ITimedMetadataStreamDescriptorFactory), 393216, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TimedMetadataStreamDescriptor : IMediaStreamDescriptor2
function TimedMetadataStreamDescriptor(encodingProperties)
Public NotInheritable Class TimedMetadataStreamDescriptor
Implements IMediaStreamDescriptor2
Inheritance
Object Platform::Object IInspectable TimedMetadataStreamDescriptor
Attributes
Implements

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

This object is the parallel to VideoStreamDescriptor and AudioStreamDescriptor, but is used for streams that contain arbitrary data. An example usage of this type of stream would be to encode a stream of GPS coordinates that are captured simulataneously with a video stream.

When creating a MediaEncodingProfile, call SetVideoTracks, passing in one or more VideoStreamDescriptor objects to provide information about the video tracks to be encoded.

Constructors

TimedMetadataStreamDescriptor(TimedMetadataEncodingProperties)

Creates an instance of the TimedMetadataStreamDescriptor class using the specified TimedMetadataEncodingProperties.

Properties

EncodingProperties

Gets an object describing the encoding properties for the timed metadata stream.

IsSelected

Gets a value indicating whether the stream is currently in use by a MediaStreamSource.

Label

Gets or sets an app-defined label that identifies a timed metadata stream in a MediaEncodingProfile that contains multiple streams.

Language

Gets or sets the RFC-1766 language code for the stream.

Name

Gets or sets the name of the stream.

Methods

Copy()

Creates a copy of the TimedMetadataStreamDescriptor.

Applies to