Forum Discussion
Nedim
2 months agoCommunity Member
Hide Volume Button in Video Controls
How can I hide the volume button in the video controls?
- 2 months ago
Try this:
document.querySelectorAll('.video-volume').forEach(volume => { volume.style.display = 'none'; });
Nedim
2 months agoCommunity Member
To hide the volume button in the video controls execute the following JavaScript when the timeline starts:
document.querySelector('.video-volume').style.display = 'none';
MichaelGallaghe
2 months agoCommunity Member
Thanks Nedim! That works. I have two videos on the screen and it only works on the first video. Can you tell me what I need to do to have both videos hide the "Volume" button.
- Nedim2 months agoCommunity Member
Try this:
document.querySelectorAll('.video-volume').forEach(volume => { volume.style.display = 'none'; });