Class ChapterInformation
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalChapterInformation interface of the {{domxref("Media Session API", "", "", "nocode")}} represents the metadata for an individual chapter of a media resource (i.e., a video or audio file).
[Value("ChapterInformation")]
public class ChapterInformation
- Inheritance
-
ChapterInformation
- Inherited Members
Remarks
The chapter information for a given media resource is set when it is first created, via the chapterInfo property of the MediaMetadata(MediaMetadataInit) constructor's initialization object. The property takes an array of ChapterInformation objects as its value.
You can access the chapter information for an existing MediaMetadata object via its ChapterInfo property. This returns an array of ChapterInformation objects.
Constructors
ChapterInformation()
public ChapterInformation()
Properties
Artwork
NOTE
Experimentalartwork read-only property of theChapterInformation interface returns an {{jsxref("Array")}} of objects representing images associated with the chapter.
[Value("artwork")]
public MediaImage[] Artwork { get; }
Property Value
- MediaImage[]
An Array of objects. Each object contains the following properties:
Remarks
StartTime
NOTE
ExperimentalstartTime read-only property of theChapterInformation interface returns a number representing the start time of the chapter in seconds.
[Value("startTime")]
public Number StartTime { get; }
Property Value
- Number
A number.
Remarks
Title
NOTE
Experimentaltitle read-only property of theChapterInformation interface returns a string representing the title of the chapter.
[Value("title")]
public string Title { get; }
Property Value
- string
A string.