Interface VideoInfo

Information on media attachments of msgtype m.video

Used within m.room.message events that reference video files.

interface VideoInfo {
    duration?: number;
    h?: number;
    mimetype?: string;
    size?: number;
    thumbnail_file?: EncryptedFile;
    thumbnail_info?: ThumbnailInfo;
    thumbnail_url?: string;
    w?: number;
}

Hierarchy (view full)

Properties

duration?: number

The duration of the video in milliseconds.

h?: number

The intended display height of the image in pixels. This may differ from the intrinsic dimensions of the image file.

mimetype?: string

The mimetype of the image, e.g. image/jpeg.

size?: number

Size of the image in bytes.

thumbnail_file?: EncryptedFile

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

thumbnail_info?: ThumbnailInfo

Metadata about the image referred to in thumbnail_url.

thumbnail_url?: string

The URL to the thumbnail of the file. Only present if the thumbnail is unencrypted.

w?: number

The intended display width of the image in pixels. This may differ from the intrinsic dimensions of the image file.