Class MediaMetadata
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The MediaMetadata interface of the {{domxref("Media Session API", "", "", "nocode")}} allows a web page to provide rich media metadata for display in a platform UI.
[Value("MediaMetadata")]
public class MediaMetadata
- Inheritance
-
MediaMetadata
- Inherited Members
Remarks
Constructors
MediaMetadata()
public MediaMetadata()
MediaMetadata(MediaMetadataInit)
The MediaMetadata() constructor creates a new
MediaMetadata object.
public MediaMetadata(MediaMetadataInit init = null)
Parameters
initMediaMetadataInit
Remarks
Properties
Album
The album property of the
MediaMetadata interface returns or sets the name of the album or
collection containing the media to be played.
[Value("album")]
public string Album { get; set; }
Property Value
Remarks
Artist
The artist property of the
MediaMetadata interface returns or sets the name of the artist, group,
creator, etc., of the media to be played.
[Value("artist")]
public string Artist { get; set; }
Property Value
Remarks
Artwork
The artwork property of the
MediaMetadata interface returns or sets an array of
objects representing images associated with playing
media.
[Value("artwork")]
public Object[] Artwork { get; set; }
Property Value
Remarks
ChapterInfo
NOTE
ExperimentalchapterInfo read-only property of the MediaMetadata interface returns an array of chapter information metadata associated with playing media, represented by ChapterInformation object instances.
[Value("chapterInfo")]
public ChapterInformation[] ChapterInfo { get; }
Property Value
- ChapterInformation[]
An array of ChapterInformation object instances.
Remarks
The chapterInfo for a given media resource is set when it is first created, via the chapterInfo property of the MediaMetadata(MediaMetadataInit) constructor's initialization object.
Title
The title property of the
MediaMetadata interface returns or sets the title of the media to be
played.
[Value("title")]
public string Title { get; set; }