Share via


VideoTrack Class

Definition

Represents a video track.

public ref class VideoTrack sealed : IMediaTrack
/// [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 VideoTrack final : IMediaTrack
[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 VideoTrack : IMediaTrack
Public NotInheritable Class VideoTrack
Implements IMediaTrack
Inheritance
Object Platform::Object IInspectable VideoTrack
Attributes
Implements

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 this class by calling MediaPlaybackVideoTrackList.GetAt.

For how-to guidance for working with VideoTrack objects, see Media items, playlists, and tracks.

Version history

Windows version SDK version Value added
1607 14393 GetEncodingProperties
1607 14393 Name
1607 14393 OpenFailed
1607 14393 PlaybackItem
1607 14393 SupportInfo

Properties

Id

Gets the identifier for the video track.

Label

Gets or sets the label for the video track.

Language

Gets a string indicating the language of the video track.

Name

Gets the name of the VideoTrack.

PlaybackItem

Gets the MediaPlaybackItem containing the VideoTrack.

SupportInfo

Gets support information for the VideoTrack. This information includes the status of the video decoder and the status of the MediaSource with which the video track is associated.

TrackKind

Gets a value indicating the type of data the track contains. For VideoTrack objects, this value is always MediaTrackKind.Video.

Methods

GetEncodingProperties()

Gets the encoding properties for the VideoTrack.

Events

OpenFailed

Occurs when a VideoTrack fails to open.

Applies to

See also