The Media Session API's MediaImage dictionary describes the images associated with the media resource MediaMetadata . Its contents can be displayed by the 用户代理 in appropriate contexts, like player interface to show the current playing video or audio track.

特性

src

The URL from which user agent can fetch the image's data.

sizes

Specifies the resource in multiple sizes so that user agent does not have to scale a single image.

type
MIME 类型 hint for the user agant. Note that it is just a hint so that user agent may ignore images of types it does not support; user agent still may use mime type sniffing after downloading the image to determine its type.

规范

规范 状态 注释
Media Session Standard
The definition of 'MediaImage' in that specification.
草案 初始定义。

浏览器兼容性

No compatibility data found. Please contribute data for "api.MediaImage" (depth: 1) to the MDN 兼容性数据存储库 .

另请参阅

元数据

  • 最后修改:
  1. 媒体会话 API
  2. MediaImage
  3. Related pages for Media Session API
    1. MediaMetadata
    2. MediaSession