Member Junction
    Preparing search index...

    Function ReadRealtimeRecordingFile

    • Reads a stored recording's bytes back through authenticated MJStorage (server-side GetObject on the file's own provider/account) — NOT a public pre-signed link. Used to stream a recording to an authorized browser securely. Never throws.

      Gated for contextUser twice over: the MJ: Files row is loaded as the caller, and the storage gate (FileStorageEngine.ResolveFileObject) then requires Read on the account the row's provider resolves to and refuses an object another row tracks when the caller cannot read that row. A refusal is logged and returns null.

      Parameters

      Returns Promise<{ Bytes: Buffer; MimeType: string }>

      { Bytes, MimeType } or null when the file/account/object can't be resolved or the caller is refused.