brows3r — TypeScript API
    Preparing search index...

    Function mediaRegister

    • Mint a signed session token for the given S3 object and return a loopback URL.

      The URL can be set directly as the src attribute of a <video> or <audio> element. The loopback server handles byte-range requests so video seeking works without the frontend doing anything special.

      The token expires after 1 hour or when the session ends. Use expiresAt to schedule a pre-emptive refresh before the token lapses.

      Parameters

      • profileId: string

        The profile whose credentials service the stream.

      • bucket: string

        S3 bucket containing the object.

      • key: string

        Full S3 object key.

      Returns Promise<MediaRegisterResponse>