MediaContext Class

Definition

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

public class MediaContext
type MediaContext = class
Public Class MediaContext
Inheritance
MediaContext
Derived

Constructors

Name Description
MediaContext()

Properties

Name Description
Element

Element reference for use with @ref. Assigning this propagates the DOM element to the component.

HasError

Indicates whether the last load attempt failed.

IsLoading

Indicates whether the media is currently loading.

ObjectUrl

The object URL for the media (image/video) or null if not loaded yet (not used for FileDownload).

Applies to