MediaImage Class
An image of the artwork of a media (https://w3c.github.io/mediasession/#dictdef-mediaimage).
public sealed class MediaImageConstructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Sizes | Gets the sizes of the image, as the sizes attribute of a link element (e.g. 96x96). |
| Src | Gets the URL of the image (an absolute URL once it is in a MediaMetadata). |
| Type | Gets the MIME type of the image. |
Sizes
MediaSession.csGets 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; }Type
MediaSession.csGets the MIME type of the image.
public string Type { get; init; }