| // 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; |
| }; |