W3cubDocs

/Web APIs

HTMLMediaElement: controlsList property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

The controlsList property of the HTMLMediaElement interface returns a DOMTokenList that helps the user agent select what controls to show on the media element whenever the user agent shows its own set of controls. The DOMTokenList takes one or more of three possible values: nodownload, nofullscreen, and noremoteplayback.

Value

A DOMTokenList.

The value of controlsList can be set by passing a string representing the DOMTokenList's value property.

Examples

>

Getting the controlsList property

The controlsList property returns a DOMTokenList object containing the current set value.

const video = document.createElement("video");
console.log(video.controlsList.value); // ""

video.controlsList.add("noremoteplayback");
console.log(video.controlsList.value); // "noremoteplayback"

Setting the controlsList property

You can also modify controlsList by directly setting it to a string containing the new value.

const audio = document.createElement("audio");
audio.controlsList = "nodownload";

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
controlsList 58 79 No 45 No 58 No 43 No 7.0 58 No

See also

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/controlsList