Module media

Source
Expand description

High-level media API.

Structs§

Media
A high-level API to interact with the media API.
MediaFileHandleNon-WebAssembly
A file handle that takes ownership of a media file on disk. When the handle is dropped, the file will be removed from the disk.
MediaRequestParameters
Parameters for a request for retrieve media data.
MediaRetentionPolicy
The retention policy for media content used by the EventCacheStore.
MediaThumbnailSettings
The desired settings of a media thumbnail.
PersistErrorNon-WebAssembly
Error returned when MediaFileHandle::persist fails.
PreallocatedMxcUri
A preallocated MXC URI created by Media::create_content_uri(), and to be used with Media::upload_preallocated().

Enums§

MediaError
An error that happened in the realm of media.
MediaFormat
The requested format of a media file.

Traits§

MediaEventContent
Trait for media event content.
UniqueKey
A trait to uniquely identify values of the same type.

Type Aliases§

SendUploadRequest
IntoFuture returned by Media::upload.