VideoTrack VideoTrack VideoTrack VideoTrack VideoTrack Class

Definition

Represents a video track.

public : sealed class VideoTrack : IMediaTrack
struct winrt::Windows::Media::Core::VideoTrack : IMediaTrack
public sealed class VideoTrack : IMediaTrack
Public NotInheritable Class VideoTrack Implements IMediaTrack
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 Id Id Id Id

Gets or sets the identifier for the video track.

Label Label Label Label Label

Gets or sets the label for the video track.

Language Language Language Language Language

Gets or sets a string indicating the language of the video track.

Name Name Name Name Name

Gets the name of the VideoTrack.

PlaybackItem PlaybackItem PlaybackItem PlaybackItem PlaybackItem

Gets the MediaPlaybackItem containing the VideoTrack.

SupportInfo SupportInfo SupportInfo SupportInfo SupportInfo

Gets support information for the VideoTrack. This information includes the status of the video decoder, information about any audio degradation applied by the decoder, and the status of the MediaSource with which the video track is associated.

TrackKind TrackKind TrackKind TrackKind TrackKind

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

Methods

GetEncodingProperties() GetEncodingProperties() GetEncodingProperties() GetEncodingProperties() GetEncodingProperties()

Gets the encoding properties for the VideoTrack.

Events

OpenFailed OpenFailed OpenFailed OpenFailed OpenFailed

Occurs when a VideoTrack fails to open.

See also