blob: 64a0211083e6ec185fb6a71ce94f8c636292cf59 [file] [log] [blame]
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://wicg.github.io/mediasession/#the-mediametadata-interface
[
Exposed=Window,
RuntimeEnabled=MediaSession
] interface MediaMetadata {
[CallWith=ScriptState, RaisesException] constructor(optional MediaMetadataInit init = {});
attribute DOMString title;
attribute DOMString artist;
attribute DOMString album;
[CallWith=ScriptState, RaisesException=Setter] attribute FrozenArray<MediaImage> artwork;
[RuntimeEnabled=MediaSessionChapterInformation, CallWith=ScriptState, RaisesException=Setter, SameObject] readonly attribute FrozenArray<ChapterInformation> chapterInfo;
};