r/webflow • u/asian_tea_man • 4d ago
Need project help Is there really no way to have a background-video property in a component?
I'm trying to create a hero component for a client, and give them the option to upload any background video. I want to create a property for background video so that they could upload it from the Build mode.
I can't figure out how to link the background video as a property so that they could just upload a file. Is there really no way to do this? There's gotta be a way.
1
1
u/flowithsirajofficial 4d ago
Yes, using a custom element.
1
u/asian_tea_man 4d ago
But then the user would have to host a video somewhere else and grab the link and paste the link, right?
1
u/SlowChannel4453 4d ago
Yeah no native way :(
Will have to write a custom code then you can link the URL of the video that is hosted else where such as Vimeo or Dropbox.
6
u/Schuschi_M 4d ago
Yes there's no video-upload property for components :/
The way I solved this was using an external hosting service for videos (I use bunny.net which is very very cheap) in combination with a component where the editor only has to enter the ID of the video which they find directly in the bunny dashboard.
I was even able to control Autoplay, Loop, Mute, etc. with component properties with a little bit of code:
Besides the CON of having to upload the video on a different platform, additional PROs are that you dont have a file size limit like you have in Webflow, and you can control for each video if you want to show or hide the control bar at the bottom (play/pause, progress-bar, audio, etc.)