VideoTrack Class

https://html.spec.whatwg.org/multipage/media.html#videotrack

public sealed class VideoTrack

Properties

NameDescription
IdGets the identifier of the track, or an empty string.
KindGets the category of the track (e.g. main), or an empty string.
LabelGets the label of the track, or an empty string.
LanguageGets the BCP 47 language tag of the track, or an empty string.
SelectedGets or sets a value indicating whether the track is selected (https://html.spec.whatwg.org/multipage/media.html#dom-videotrack-selected). Selecting a track unselects the other tracks of its list; a change event is fired at the list when a track is selected, or when the selected track is unselected.
SourceBufferGets the source buffer that created the track (https://w3c.github.io/media-source/#dom-videotrack-sourcebuffer), or null: the track was not created by a source buffer, the source buffer was removed from its media source, or the media source was constructed in a dedicated worker.

Gets the identifier of the track, or an empty string.

public string Id { get; }

Gets the category of the track (e.g. main), or an empty string.

public string Kind { get; }

Gets the label of the track, or an empty string.

public string Label { get; }

Gets the BCP 47 language tag of the track, or an empty string.

public string Language { get; }

Gets or sets a value indicating whether the track is selected (https://html.spec.whatwg.org/multipage/media.html#dom-videotrack-selected). Selecting a track unselects the other tracks of its list; a change event is fired at the list when a track is selected, or when the selected track is unselected.

public bool Selected { get; set; }

SourceBuffer

MediaTracks.cs

Gets the source buffer that created the track (https://w3c.github.io/media-source/#dom-videotrack-sourcebuffer), or null: the track was not created by a source buffer, the source buffer was removed from its media source, or the media source was constructed in a dedicated worker.

public SourceBuffer? SourceBuffer { get; }