Share via


Microsoft.AspNetCore.Components.Web.Media Namespace

Classes

Name Description
FileDownload

A component that provides an anchor element to download the provided media source.

FileDownloadContext

Extended media context for the FileDownload component providing click invocation and filename.

Image

A component that efficiently renders images from non-HTTP sources like byte arrays.

MediaComponentBase

Base component that handles turning a media stream into an object URL plus caching and lifetime management. Subclasses implement their own rendering and provide the target attribute (e.g., src or href) used

MediaContext

Base context supplied to media component RenderFragment<TValue> custom content. Used by Image and Video, and as the base for FileDownloadContext.

MediaSource

Represents a single-use source for media data. A MediaSource corresponds to exactly one load operation. It holds a single underlying Stream that will be consumed by a media component. Reuse of an instance for multiple components or multiple loads is not supported.

Video

A component that efficiently renders video content from non-HTTP sources like byte arrays.