ReaderPlaybackResource
Byte-addressable media the engine seeks through the container index, or from the start for MP3.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
container? |
"webm" | "mp4" |
Forces this container; when absent, the engine identifies the format from the bytes. |
kind |
"reader" |
- |
size |
number |
- |
Methods
Section titled “Methods”dispose()?
Section titled “dispose()?”
optionaldispose():void|Promise<void>
Returns
Section titled “Returns”void | Promise<void>
read()
Section titled “read()”read(
start,end,signal):Readable
Returns bytes start through end inclusive; signal aborts when the engine no longer needs them.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
start |
number |
end |
number |
signal |
AbortSignal |
Returns
Section titled “Returns”Readable