Skip to content

ReaderPlaybackResource

Byte-addressable media the engine seeks through the container index, or from the start for MP3.

Property Type Description
container? "webm" | "mp4" Forces this container; when absent, the engine identifies the format from the bytes.
kind "reader" -
size number -

optional dispose(): void | Promise<void>

void | Promise<void>


read(start, end, signal): Readable

Returns bytes start through end inclusive; signal aborts when the engine no longer needs them.

Parameter Type
start number
end number
signal AbortSignal

Readable