How to show volume controls in a video tag?

volume control for html5 video audio tag
html video volume
html audio volume slider
jquery volume control
volume video javascript
html video volume javascript
audio js volume control
how to increase and decrease volume in javascript

code :

<video controls playsinline>
  <source src="url.mp4" type="video/mp4">
</video>

Before Chrome 67, there was a volume control so the user could move up or move down the volume:

And since Chrome 67, the user is only able to mute or unmute the volume :

I need it because it is for use on big touch screen where physical volume buttons are not available...

It could have been on controlslist, but the only available values are nofullscreen nodownload noremoteplayback, there isn't a volumeslider

So how to bring back the volume control that was in Chrome 66? Maybe some CSS, JS or HTML5 could help me?


Sadly enough, the best solution I found is using something like Plyr https://github.com/sampotts/plyr.

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/plyr/3.3.23/plyr.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/plyr/3.3.23/plyr.polyfilled.min.js"></script>

<video class="presentation_video_src" id="player2"  playsinline controls>
    <source src="/static/videos/intro2.webm" type="video/webm">
</video>

Currently the only major browser suffering from this self-inflicted bug is Chrome, so you could also add this check in javascript !!window.chrome && !!window.chrome.webstore and insert the script & css dynamically only if it resolves to true.

How to hide HTML5 video controls completely, Specifies the image to be shown while the video is downloading. Specifies the current volume of the audio/video. Must be a number between 0.0 and 1.0. Example values: 1.0 is highest volume (100%. This is default) 0.5 is half volume (50%) 0.0 is silent (same as mute)


This can be achieved by changing the browser settings. which can be accessed using chrome://flags/#enable-modern-media-controls.

HTML - <video> Tag, Specifies what author thinks will lead to user experience at its best. The controls attribute is a boolean attribute. When present, it specifies that video controls should be displayed. Video controls should include: Play; Pause; Seeking; Volume; Fullscreen toggle; Captions/Subtitles (when available) Track (when available)


Tentatively, you can back old UI.

Access to chrome://flags/#enable-modern-media-controls. and disabled "New Media Controls" and restart Chrome.

html5 - How to show volume controls in a video tag?, Sadly enough, the best solution I found is using something like Plyr https://github.​com/sampotts/plyr. <link rel="stylesheet"  Attribute of New Audio HTML Element: Master It Out Now With Our Code Example What does Audio Volume: Quick & Easy HTML Guide For Setting Initial Volume do? Specifies the initial volume setting of the audio element, in a range from 0.0 to 1.0.


HTML Audio/Video DOM volume Property, Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java  If this attribute is present, the browser will offer controls to allow the user to control video playback, including volume, seeking, and pause/resume playback. controlslist The controlslist attribute, when specified, helps the browser select what controls to show on the media element whenever the browser shows its own set of controls (e.g. when the controls attribute is specified).


HTML video controls Attribute, HTML <video> tag. Example. A <video> element with browser default controls: When present, it specifies that video controls should be displayed. Play; Pause; Seeking; Volume; Fullscreen toggle; Captions/Subtitles (when available)  The controls attribute can be used to display the standard audio controls (such as play, pause, volume etc). Any content between the opening and closing <audio> tags is fallback content. This content is displayed only by browsers that don't support the <audio> tag. The <audio> tag was introduced in HTML 5.


HTML5 Video Tag, Learn to add JavaScript volume control and a progress bar to HTML5 videos. Category Duration: 9:47 Posted: 6 Aug 2017 In order to have a consistent HTML5 video controls across all browsers, we have to integrate own custom HTML5 video controls rather than using default controls. Actually, it is not hard to have custom HTML5 video controls. In this post I’m going to show you the way to build your own custom HTML5 video controls using jQuery.