mtx::common::VideoInfo struct

Video clip metadata.

Public variables

uint64_t size
The size of the video in bytes.
uint64_t duration
The duration of the video in milliseconds.
uint64_t h
The height of the video in pixels.
uint64_t w
The width of the video in pixels.
std::string mimetype
The mimetype of the video e.g. video/mp4.
std::string thumbnail_url
The URL to an image thumbnail of the video clip.
ThumbnailInfo thumbnail_info
Metadata about the image referred to in thumbnail_url.
std::optional<crypto::EncryptedFile> thumbnail_file
Encryption members. If present, they replace thumbnail_url.
std::string blurhash
experimental blurhash, see MSC2448

Friends

auto from_json(const nlohmann::json& obj, VideoInfo& info) -> void
Deserialization method needed by nlohmann::json.
auto to_json(nlohmann::json& obj, const VideoInfo& info) -> void
Serialization method needed by nlohmann::json.