Bug 1654045 - part3 : porting other attributes to media controller's webidl interface. r=chunmin

We have already had these functions on `MediaController` so we just need to expose them on the media controller's webidl interface, and they can be used in testing and the future plan of supporting media hub.

Differential Revision: https://phabricator.services.mozilla.com/D85230
This commit is contained in:
alwu 2020-07-31 02:56:20 +00:00
Родитель 4f35b1bd20
Коммит 408ccb2310
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -27,7 +27,10 @@ enum MediaControlKey {
*/
[Exposed=Window, ChromeOnly]
interface MediaController : EventTarget {
readonly attribute unsigned long long id;
readonly attribute boolean isActive;
readonly attribute boolean isAudible;
readonly attribute boolean isPlaying;
[Frozen, Cached, Pure]
readonly attribute sequence<MediaControlKey> supportedKeys;