VideoTrackList Class
https://html.spec.whatwg.org/multipage/media.html#videotracklist
public sealed class VideoTrackList : EventTarget, IEnumerable<VideoTrack>, IReadOnlyCollection<VideoTrack>, IReadOnlyList<VideoTrack>, IEnumerable- Inheritance
EventTargetVideoTrackList- Implements
Properties
| Name | Description |
|---|---|
| Count | Gets the number of tracks in the list. |
| Length | Gets the number of tracks in the list. |
| OnAddTrack | Gets or sets the event handler of the addtrack event. |
| OnChange | Gets or sets the event handler of the change event. |
| OnRemoveTrack | Gets or sets the event handler of the removetrack event. |
| SelectedIndex | Gets the index of the selected track, or -1 when no track is selected. |
Count
MediaTracks.csLength
MediaTracks.csOnAddTrack
MediaTracks.csGets or sets the event handler of the addtrack event.
OnChange
MediaTracks.csGets or sets the event handler of the change event.
OnRemoveTrack
MediaTracks.csGets or sets the event handler of the removetrack event.
SelectedIndex
MediaTracks.csGets the index of the selected track, or -1 when no track is selected.
public int SelectedIndex { get; }Property value
See also
Indexers
| Name | Description |
|---|---|
| this[int] | Gets the track at the given index. |
| this[uint] | Gets the track at the given index, or null when the index is out of range. |
ItemAt overloads
this[int]
MediaTracks.csGets the track at the given index.
public VideoTrack this[int index] { get; }this[uint]
MediaTracks.csGets the track at the given index, or null when the index is out of range.
public VideoTrack? this[uint index] { get; }Methods
| Name | Description |
|---|---|
| GetEnumerator() | Returns an enumerator that iterates through the collection. |
| GetTrackById(string) | Returns the first track of the list with the given identifier, or null. |
| System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Dom.VideoTrack>.get_Item(int) | |
| System.Collections.IEnumerable.GetEnumerator() |
GetEnumerator()
MediaTracks.csReturns an enumerator that iterates through the collection.
public IEnumerator<VideoTrack> GetEnumerator()Returns
IEnumerator<VideoTrack> An enumerator that can be used to iterate through the collection.
GetTrackById(string)
MediaTracks.csReturns the first track of the list with the given identifier, or null.
public VideoTrack? GetTrackById(string id)System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Dom.VideoTrack>.get_Item(int)
VideoTrack IReadOnlyList<VideoTrack>.get_Item(int index)No documentation is available.