View laravel-hotwire on GitHub
1M
v0.91.0
Search 71 components and 72 controllers by name, category or description.
Video Embed
Server-rendered YouTube or Vimeo video from URL
YouTube with privacy mode
Render a stored video URL as a responsive player without JavaScript. privacy uses YouTube's privacy-enhanced domain; playing still connects to a third-party provider.
<hw:video-embed
url="https://www.youtube.com/watch?v=aqz-KE-bpKQ"
title="Big Buck Bunny on YouTube"
privacy
/>
Vimeo and aspect ratio
Vimeo URLs use the same component. Choose a positive ratio to match your layout and set a meaningful title for assistive technology. This player connects to Vimeo.
<hw:video-embed
url="https://vimeo.com/76979871"
title="Vimeo player example"
ratio="4/3"
/>
Other video providers
Unsupported HTTP or HTTPS providers become a normal link that opens in a new tab, rather than an empty player.
<hw:video-embed url="https://archive.org/details/BigBuckBunny_328" />