VideoTrack Class
https://html.spec.whatwg.org/multipage/media.html#videotrack
public sealed class VideoTrackProperties
| Name | Description |
|---|---|
| Id | Gets the identifier of the track, or an empty string. |
| Kind | Gets the category of the track (e.g. main), or an empty string. |
| Label | Gets the label of the track, or an empty string. |
| Language | Gets the BCP 47 language tag of the track, or an empty string. |
| Selected | 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. |
| SourceBuffer | 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. |
Gets the identifier of the track, or an empty string.
public string Id { get; }Kind
MediaTracks.csGets the category of the track (e.g. main), or an empty string.
public string Kind { get; }Label
MediaTracks.csGets the label of the track, or an empty string.
public string Label { get; }Language
MediaTracks.csGets the BCP 47 language tag of the track, or an empty string.
public string Language { get; }Property value
See also
Selected
MediaTracks.csGets 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.csGets 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; }