MediaImage Class

An image of the artwork of a media (https://w3c.github.io/mediasession/#dictdef-mediaimage).

public sealed class MediaImage

Constructors

NameDescription
MediaImage()

MediaImage()

MediaSession.cs
  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public MediaImage()

No documentation is available.

Properties

NameDescription
SizesGets the sizes of the image, as the sizes attribute of a link element (e.g. 96x96).
SrcGets the URL of the image (an absolute URL once it is in a MediaMetadata).
TypeGets the MIME type of the image.

Gets the sizes of the image, as the sizes attribute of a link element (e.g. 96x96).

public string Sizes { get; init; }

Gets the URL of the image (an absolute URL once it is in a MediaMetadata).

public required string Src { get; init; }

Gets the MIME type of the image.

public string Type { get; init; }