videosphere
    Preparing search index...

    Function getObjectNodeStream

    • Stream object bytes from R2 as a Node.js Readable. Prefer this for ffmpeg stdin piping; avoid converting to a Web ReadableStream first.

      Parameters

      • key: string

        R2 object key.

      • Optionaloptions: GetObjectStreamOptions

        Optional abort signal and byte range for partial reads.

      Returns Promise<{ readable: Readable; contentLength: number; contentType: string }>

      Node readable body, full object content length, and MIME type.