Video Controls

 width=

One of the most exciting features of HTML5 is the ability to create video controls. Before this, there was no way to control or interact with a video player unless you made your own or used a third-party one. Now, HTML5 allows you to add the controls attribute on any element and specify what type of controls should appear on top of it.

video controls

What Is the Controls Attribute in HTML5?

Within the video element in HTML5, there are two attributes that add controls to the included basic video player. Video controls are essentially buttons and a playback bar that allow viewers to control video playback. They can encompass features like Play, Pause, Seek, Track, and Volume. If you wish to hide these controls, simply avoid adding the controls attribute to the video element. Additionally, users have the option to view the controls section by right-clicking on the video and selecting the “show controls” option.

These two attributes are:

  • controls – This is a boolean attribute that, when included, will add typical media controls to the video player. These include Play, Pause, Seeking, Volume, and Fullscreen.
  • controlslist – The second possible attribute allows you to remove some options that come along with controls. Mainly, it will enable you to disable downloading, fullscreen, and remote playback. However, this is currently not supported fully by all browsers.

Why Would I Need Video Controls?

Giving (or taking away) video controls can help improve your overall user experience. Not only do they allow your customers to view your media how they want to, but you can also ensure they experience it how you want them to. Sometimes, you may want to limit what they can do to preserve bandwidth.

For users who wish to have more control over video playback speed, the Video Speed Controller extension for Chrome is a handy tool. Once installed, navigating to any page that offers HTML5 video will display a speed indicator in the top left corner of the video player. Hovering over this indicator reveals controls that allow users to accelerate, slow down, or rewind the video, offering a more tailored viewing experience.

Custom Video Controls with Cloudinary

The controls attribute is a great way to control your video and make it more accessible. It allows users to play, pause and stop videos without opening them in another app. This can be especially helpful for those with disabilities who may not have access to or the ability to use their hands.

And Cloudinary can help you bring these to your brand with ease. Our HTML5 video player is easy to set up on any website, and we offer custom controls. And the best part? You can get started with Cloudinary for free!

Last updated: Oct 27, 2023