Open In App

What is use of the controlsList attribute in HTML ?

The controlsList attribute in <video> Tags are used to specify which controls should be displayed in the video player’s control interface. This attribute provides fine-grained control over the visibility and behavior of various controls, such as play, pause, volume, and fullscreen, allowing developers to customize the video playback experience to suit their specific requirements.

Syntax

<video controls controlsList="controls_list_values">
<source src="video.mp4" type="video/mp4">
<!-- Your browser does not support the video tag.-->
</video>

Where,

Key Point of controlsList Attribute

Key Point Description
Customization The controlsList attribute allows developers to customize the visibility and behaviour of video player controls to suit their specific requirements.
Available Controls Supported control options include "nodownload", "nofullscreen", "noremoteplayback", "nodownload noremoteplayback", and others, depending on the browser.

Features

Article Tags :