Why does the video element in Webflow show an "Invalid embed type: link" error when trying to set a public video URL from S3?

TL;DR
  • Use Webflow’s HTML Embed element with a third-party player and set up video access through CORS, or opt for YouTube/Vimeo for smooth integration.
  • Include necessary JS/CSS libraries for third-party players like Video.js or Plyr in Webflow’s custom code section.

The "Invalid embed type: link" error occurs when attempting to use a public video URL from an S3 bucket in the Webflow video element. This usually happens because Webflow's video element is designed to work with video hosting platforms like YouTube or Vimeo, requiring specific embed formats.

1. Understanding Webflow’s Video Element

  • Video Hosting Support: Webflow's video element supports YouTube and Vimeo natively. It requires URLs that can provide an embeddable player.
  • File Storage Services: S3 is a file storage service and doesn't provide a direct video player for embedding like YouTube or Vimeo.

2. Alternatives to S3 Links

  • Third-Party Services: Consider using video hosting platforms like YouTube, Vimeo, or Wistia for direct embedding.
  • Webflow’s HTML Embed Element: If S3 must be used, consider a custom player approach:
  • Upload the video to S3 and ensure CORS (Cross-Origin Resource Sharing) settings allow access.
  • Use Webflow’s HTML Embed Element to manually configure a third-party video player (e.g., Video.js or Plyr) that can play the video file.

3. Configuring a Third-Party Player

  • Choose a Player: Select a player like Video.js or Plyr.
  • Script and CSS: Include necessary JS/CSS libraries in Webflow’s Project Settings, typically in the Custom Code section.
  • Embed Custom Code: Use the HTML Embed element to insert the player configuration alongside the S3 file URL.

Summary

The "Invalid embed type: link" error is due to Webflow's video element not supporting direct S3 URLs. To resolve it, consider using video hosting services like YouTube/Vimeo or manually configuring a third-party HTML player with the HTML Embed element.

Rate this answer

Other Webflow Questions