SourceBufferList Class
A list of source buffers (https://w3c.github.io/media-source/#sourcebufferlist).
public sealed class SourceBufferList : EventTarget, IEnumerable<SourceBuffer>, IReadOnlyCollection<SourceBuffer>, IReadOnlyList<SourceBuffer>, IEnumerable- Inheritance
EventTargetSourceBufferList- Implements
Properties
| Name | Description |
|---|---|
| Count | Gets the number of source buffers in the list. |
| Length | Gets the number of source buffers in the list. |
| OnAddSourceBuffer | Gets or sets the event handler of the addsourcebuffer event. |
| OnRemoveSourceBuffer | Gets or sets the event handler of the removesourcebuffer event. |
Count
MediaSource.csLength
MediaSource.csGets the number of source buffers in the list.
public uint Length { get; }OnAddSourceBuffer
MediaSource.csGets or sets the event handler of the addsourcebuffer event.
Property value
See also
OnRemoveSourceBuffer
MediaSource.csGets or sets the event handler of the removesourcebuffer event.
Indexers
| Name | Description |
|---|---|
| this[int] | Gets the source buffer at the given index. |
| this[uint] | Gets the source buffer at the given index, or null when the index is out of range. |
ItemAt overloads
this[int]
MediaSource.csGets the source buffer at the given index.
public SourceBuffer this[int index] { get; }this[uint]
MediaSource.csGets the source buffer at the given index, or null when the index is out of range.
public SourceBuffer? this[uint index] { get; }Methods
| Name | Description |
|---|---|
| GetEnumerator() | Returns an enumerator that iterates through the collection. |
| System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Dom.SourceBuffer>.get_Item(int) | |
| System.Collections.IEnumerable.GetEnumerator() |
GetEnumerator()
MediaSource.csReturns an enumerator that iterates through the collection.
public IEnumerator<SourceBuffer> GetEnumerator()Returns
IEnumerator<SourceBuffer> An enumerator that can be used to iterate through the collection.
System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Dom.SourceBuffer>.get_Item(int)
SourceBuffer IReadOnlyList<SourceBuffer>.get_Item(int index)No documentation is available.