Interface AudioContent

Content format of media events with msgtype m.audio

interface AudioContent {
    body: string;
    file?: EncryptedFile;
    info?: AudioInfo;
    msgtype: Audio;
    url?: string;
}

Hierarchy (view full)

Properties

body: string

A description of the audio e.g. ‘Bee Gees - Stayin’ Alive’, or some kind of content description for accessibility e.g. ‘audio attachment’.

Required if the file is encrypted. Information on the encrypted file, as specified in End-to-end encryption.

info?: AudioInfo

Metadata for the audio clip referred to in url.

msgtype: Audio

One of: [m.audio].

url?: string

Required if the file is unencrypted. The URL (typically mxc:// URI) to the file.

""