‘Mute’ attribute for native video player?
-
According to the Codex entry on [video] there are attributes for autoplay, loop, poster, etc. but not for muting the video.
I’ve used autoplaying videos in a couple sites recently and found that Chrome blocks the video from playing unless it’s muted. “Mute” is a core attribute of the HTML <video> element so it seems strange that the WordPress shortcode is missing this, unless I’m missing something…
One workaround I’ve found is to hardcode decorative videos into the theme files and use the native HTML video element set to “muted” — but that’s not ideal.
I think some plugins may be able to produce <video> elements that are muted, but I feel like this should be added to the core WordPress functionality.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘‘Mute’ attribute for native video player?’ is closed to new replies.