Hello everybody!
I’m trying to automate the process of publishing a video on Youtube and automatically added to my Webflow’s CMS collection. That works fine. But when I check the live site, the video is not visible. I check the item URL and when I cut and paste it manually works fine. But the problem is that the idea of automation is not happening. Going to every collection list and make that change is nonsense.
Hey @Guaby
This is a known issue when links are automated into a video field. In order for the video link to process, click in at the end of the url, add a space, delete the space, and then press tab.
If that sounds tedious then I suggest using my preferred method of relying on the Youtube ID. I’ll still import the video field url as a reference too.
Then in the Designer use an embed instead of the video element. Here I am pulling in the Youtube ID dynamically for each video. This also gives you more control over the embed if you want to use some of the customization options provided by YT.
Yes that was never fixed and I don’t think it is a YouTube issue.
I ended up using html embed , pasted youtube iframe into it and pulling video id dynamically from the collection, this works fine for me.
Hey guys. Is there any update on this? I don’t think it’s a YouTube issue either @radmitry. I know there’s a workaround, but the adding a space and removing to make the video link populate properly makes me think this should have been fixed by now. The Zapier bridge between YouTube and Webflow can be so powerful, but this little bug has a HUGE negative impact on the whole thing.
Yes, for the dynamic list I added a link block inside a dynamic item, then inserted this html embed in it, using HQ Thumbnail from Zapier to standard Webflow link in the CMS
I also added some CSS to this HTML embed in webflow
Width:100%
and then different height in pixels based on the breakpoint, I’m sure there is a smarter way to do it.
And then this is the html embed in the Video template page, video id from Zapier linked to a simple text field in Webflow
Also, for the Tablet breakpoint and below I am using this CSS in webflow applied to the HTML embed to make the video automatically adjust the height based on the width, to avoid black frames:
Padding bottom: 56.25%
Height: Auto
Position: Relative
I am also using this bit of code on the Video template page to make any links in the video description active
Thank you this has been really helpful. However, I copied the code you put for the embed but the video is coming up as blank I am not sure what I have done wrong.
Are you using the lazy youtube method and have the script installed? I don’t see the script in your page settings and can’t verify your site settings. Also, scripts only run on published pages are not visible in the Designer read-only link. Follow these instructions if you do want to lazy load the videos.
The other method is to just use the Youtube embed code and use the IDs from CMS. If that will work copy and paste the code below. Adjust the width and height as needed but sticking with 100% will let you use the size setting on the class to adjust the size rather than in the code. Hope that helps!
Hey @BoxActual are you referring to to the CMS validating and recognizing video links added via the API or Zapier? If so that is fixed and should be working without the need to manually edit and save the video link field in the CMS editor.