Is there a way to get audio or sound on a Background Video.
Hey Michael!
To the best of my knowledge, it is not currently possible to play the sound on a background video natively through Webflow.
I also tried crawling this forum to see if I could find a solution from another user (and there are plenty of questions like this one!). However, none of the other threads had a concrete solution either.
The closest came in this post with an answer by @PixelGeek, who provided some code that allows the sound of a background video to be unmuted through use of a button. Not sure if you can work with that, but thought I would provide it anyways
Maybe someone else will have a better answer!
Where do you place this code
Did you ever find this out?
I have the same challenge.
Thank you
Simon
The way I usually build this for clients is;
Setup;
- Host your vdeo externally, as Webflow background vids strip audio
On page load
- Autoplay, muted
Have a button etc to unmute. On click, script;
- Unmutes
- Restarts
The setup works well with an HTML vid element, should be adaptable to a number of other vdeo players an environments as well, though I do have issues with Embedly’s player.js which pauses the vdeo anytime you unmute it. Looks like their 8 year old github repo needs updating.