RTCForge API Reference v1.1.1
    Preparing search index...

    FileSource backed by a browser Blob or File.

    Chunks are read lazily via Blob.slice(...).arrayBuffer(), so large files are not buffered up front. Ideal for files chosen through an <input type="file">.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    mimeType: string

    MIME type from the blob's type, or application/octet-stream if empty.

    name: string

    File name; taken from the explicit argument, else the File.name, else 'file'.

    size: number

    Total size of the blob in bytes.

    Methods

    • Read length bytes starting at offset by slicing the underlying blob.

      Parameters

      • offset: number

        Byte offset at which to start reading.

      • length: number

        Number of bytes to read; the result is clamped at end-of-blob.

      Returns Promise<ArrayBuffer>

      The requested bytes.