Member Junction
    Preparing search index...

    Result of FileResolver.CreateMediaAccessToken — a short-lived signed token plus the authenticated streaming URL the browser hands to a <audio>/<video> element. The token is minted only after a per-user permission check on the MJ: Files row; the /media/:fileId route re-verifies it (signature + expiry + file match) on each Range request.

    Index

    Constructors

    Properties

    ErrorMessage?: string
    ExpiresAt?: Date
    MimeType?: string

    The file's MIME type (from the already-loaded MJ: Files row). Lets the wrapper choose <audio> vs <video> WITHOUT re-downloading any bytes; the stream itself sets Content-Type.

    Peaks?: number[]

    Optional precomputed waveform peaks (normalized 0..1, one per rendered bar) read from a peaks.json sidecar that sits beside the file in storage. When present, the player renders the real waveform instantly with NO client-side fetch/decode of the audio. Best-effort: a missing or malformed sidecar simply omits this field — it never blocks token minting or fails the mutation.

    Success: boolean
    Token?: string
    Url?: string