Table of Contents

Class ChapterInformation

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The ChapterInformation 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.

-MediaMetadata

See also on MDN

Constructors

ChapterInformation()

public ChapterInformation()

Properties

Artwork

NOTE
Experimental
The artwork read-only property of the
ChapterInformation 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
Experimental
The startTime read-only property of the
ChapterInformation 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
Experimental
The title read-only property of the
ChapterInformation interface returns a string representing the title of the chapter.
[Value("title")]
public string Title { get; }

Property Value

string

A string.

Remarks