AudioTrackList Class
https://html.spec.whatwg.org/multipage/media.html#audiotracklist
public sealed class AudioTrackList : EventTarget, IEnumerable<AudioTrack>, IReadOnlyCollection<AudioTrack>, IReadOnlyList<AudioTrack>, IEnumerable- Inheritance
EventTargetAudioTrackList- 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. |
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.
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 AudioTrack this[int index] { get; }this[uint]
MediaTracks.csGets the track at the given index, or null when the index is out of range.
public AudioTrack? 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.AudioTrack>.get_Item(int) | |
| System.Collections.IEnumerable.GetEnumerator() |
GetEnumerator()
MediaTracks.csReturns an enumerator that iterates through the collection.
public IEnumerator<AudioTrack> GetEnumerator()Returns
IEnumerator<AudioTrack> 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 AudioTrack? GetTrackById(string id)System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Dom.AudioTrack>.get_Item(int)
AudioTrack IReadOnlyList<AudioTrack>.get_Item(int index)No documentation is available.