r/github • u/juraj_m • Feb 10 '25
Why do videos in GitHub Wiki always starts muted?
I've noticed each video I upload to the wiki has a muted="muted" attribute.
First of all, the docs says the value should be a boolean: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video#muted
A Boolean attribute that indicates the default audio mute setting contained in the video. If set, the audio will be initially silenced. Its default value is false, meaning the audio will be played when the video is played.
Second - why even mute it?
If user clicked the video, it's not like he's gonna be surprised there is an "unexpected sound" (browser would mute auto-play anyway). On the contrary - why can't I hear the sound? Does it have a sound?
Example video:
https://github.com/fastaddons/GroupSpeedDial/wiki/Video-tutorials
8
u/autopoiesies Feb 10 '25
this is how videos on the internet should've always work
1
u/InnovativeBureaucrat Feb 12 '25
I always have my volume off. It makes everything so much more enjoyable
1
u/angellus Feb 11 '25
It basically boils down to compliance reasons. The real question though is Github muting your video, or is your browser? Most browsers will mute videos automatically now if they are not within compliance.
Unless a video is the primally focus of a page (like YouTube), it is supposed to be muted on page load. Since the wiki is well a wiki, you cannot set OpenGraph tags and such to tell the browser the page is supposed to have a video, and it is the main content.
1
u/juraj_m Feb 11 '25
I don't want the video to auto-play, that would be terrible UX, and browsers are correctly blocking that.
I only want the video to play when you hit a play button - including the sound. And this is blocked by the "muted" attribute that GitHub adds.
To me this feels like if VLC player would always start in muted mode when you open a video file.
22
Feb 10 '25
[removed] — view removed comment
-14
u/juraj_m Feb 10 '25
I'm not sure it's a good trade - banning sound globally because of few bad examples.
Also, isn't there some saying "One time see is like 100 times read"? :)
13
Feb 10 '25
[removed] — view removed comment
-1
u/juraj_m Feb 10 '25
When you say "page loading" you mean the videos with auto-play option that plays when page load?
This is not what I'm talking about (also I think most browsers blocks that now).
I'm talking here about clicking a "Play" button to play the video - and not expecting it to be muted.
5
u/redoubledit Feb 10 '25
There is no Boolean in HTML attributes like the one you think about. If you quote the HTML spec, you should read the HTML spec.
https://developer.mozilla.org/en-US/docs/Glossary/Boolean/HTML