Can I use a custom mute/unmute button in Webflow?
Yes, you can use our postMessage API to control mute/unmute functionality. Although keep in mind that you can't unmute a video programmatically without direct user interaction within the same context where the video is playing. When a video is inside an iframe (like ours), user interactions in the parent page (like clicking an unmute button that sends a postMessage to the iframe) don't qualify as direct user interaction for the iframe content. It usually requires the user to interact with an iframe first. This security restriction in browsers applies to both unmuting audio and entering fullscreen mode, requiring direct user interaction within the specific context where the media is playing, so unmuting functionality can be tricky to implement.
Last updated