Forum Discussion
Nedim
8 months agoCommunity Member
Hide Volume Button in Video Controls
How can I hide the volume button in the video controls?
- 8 months ago
Try this:
document.querySelectorAll('.video-volume').forEach(volume => { volume.style.display = 'none'; });
Nedim
8 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
8 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.
- Nedim8 months agoCommunity Member
Try this:
document.querySelectorAll('.video-volume').forEach(volume => { volume.style.display = 'none'; });
Related Content
- 12 months ago
- 5 months ago
- 11 months ago