A media proxy class intended for bridges which share media to the public internet.

Constructors

  • Parameters

    • opts: Opts
    • matrixClient: MatrixClient

    Returns MediaProxy

Accessors

  • get router(): Router
  • Get the express router used for handling calls.

    Returns Router

Methods

  • Returns Promise<void>

  • Parameters

    • mxc: string

    Returns Promise<URL>

  • Parameters

    • metadata: MediaMetadata

    Returns Promise<string>

  • Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
    • res: Response<any, Record<string, any>>

    Returns Promise<void>

  • Parameters

    • port: number
    • hostname: string = "0.0.0.0"
    • backlog: number = 10

    Returns Promise<void>

  • Parameters

    • token: string

    Returns Promise<MediaMetadata>

Generated using TypeDoc