The maximum amount of encoded packets that will be added to this track. Setting this field provides the muxer with an additional signal that it can use to preallocate space in the file.
Sets descriptive metadata tags about the media file, such as title, author, date, or cover art. When called multiple times, only the metadata from the last call will be used.Can only be called before the output is started.
Starts the creation of the output file. This method should be called after all tracks have been added. Only after the output has started can media samples be added to the tracks.Returns a promise that resolves when the output has successfully started and is ready to receive media samples.
Resolves with the full MIME type of the output file, including track codecs.The returned promise will resolve only once the precise codec strings of all tracks are known.
Finalizes the output file. This method must be called after all media samples across all tracks have been added. Once the Promise returned by this method completes, the output file is ready.
Cancels the creation of the output file, releasing internal resources like encoders and preventing further samples from being added.Returns a promise that resolves once all internal resources have been released.