Skip to content
Abstract class

MediaSource

Base class for media sources. Media sources are used to add media samples to an output file.

Subclasses

Used by

Methods

close()

ts
close(): void;

Closes this source. This prevents future samples from being added and signals to the output file that no further samples will come in for this track. Calling .close() is optional but recommended after adding the last sample - for improved performance and reduced memory usage.

Released under the Mozilla Public License 2.0.