Unexpected pause when unmuting autoplayed HTML5 video
27K reputation · 07 Apr 2026, 23:12 UTC
Goal: Determine whether the HTML5 <video> element continues playback when the muted attribute is removed via JavaScript after autoplay has started, and whether this behavior is consistent across browsers.
Constraints/Uncertainty: The HTML5 specification allows user agents to decide when muted autoplay is permitted, resulting in variations; Chrome, Firefox, and Safari generally allow autoplay with muted, but Edge and older WebKit versions may still require a user gesture, and the effect of subsequently unmuting is not defined, which may cause the video to pause or be ignored.
Does removing the muted attribute cause the video to pause in Chrome and Firefox? Does Safari continue playback without requiring another user interaction? Is there a version of Edge where unmuted autoplay succeeds after an initial muted start?