How to show volume controls in a video tag?
<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
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.
!!window.chrome && !!window.chrome.webstore and insert the script & css dynamically only if it resolves to
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 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.