SourceBufferList Class

A list of source buffers (https://w3c.github.io/media-source/#sourcebufferlist).

Inheritance
EventTarget SourceBufferList
Implements

Properties

NameDescription
CountGets the number of source buffers in the list.
LengthGets the number of source buffers in the list.
OnAddSourceBufferGets or sets the event handler of the addsourcebuffer event.
OnRemoveSourceBufferGets or sets the event handler of the removesourcebuffer event.

Gets the number of source buffers in the list.

public int Count { get; }

Property value

int

Gets the number of source buffers in the list.

public uint Length { get; }

OnAddSourceBuffer

MediaSource.cs

Gets or sets the event handler of the addsourcebuffer event.

public Action<Event>? OnAddSourceBuffer { get; set; }

OnRemoveSourceBuffer

MediaSource.cs

Gets or sets the event handler of the removesourcebuffer event.

public Action<Event>? OnRemoveSourceBuffer { get; set; }

Indexers

NameDescription
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

Gets the source buffer at the given index.

public SourceBuffer this[int index] { get; }
Parameters
index int
Property value

SourceBuffer

this[uint]

MediaSource.cs

Gets the source buffer at the given index, or null when the index is out of range.

public SourceBuffer? this[uint index] { get; }

Methods

NameDescription
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.cs

Returns 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)

Parameters

index int

Returns

SourceBuffer

No documentation is available.

System.Collections.IEnumerable.GetEnumerator()

MediaSource.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.