Function: fromWebFile()
ts
function fromWebFile(file: Blob): MediaReader;Constructs a @nhtio/adk!MediaReader backed by a browser File or Blob.
Parameters
| Parameter | Type | Description |
|---|---|---|
file | Blob | The browser File or Blob to stream. |
Returns
A @nhtio/adk!MediaReader that re-streams file on every call.
Remarks
Each stream() call re-streams the underlying File via File.stream(). byteLength() resolves from file.size.