Free tool

Live Stream Embed Code Generator

YouTube, Facebook or Twitch: paste a link, get embed code that works. Responsive by default, with a live preview.

Twitch only plays on the domains you list here (the parent). Separate several with commas.

Options

This code is the manual version. It points at one video, or shows an error when you are offline.

EmbedVidio watches your channel and swaps the live stream onto your site the moment you go live, then shows your latest video or a schedule when you are not. No code to change on Sunday morning.

How to embed a live stream on your website

Every platform gives you an iframe: a small box of HTML that loads its player inside your page. Pick the platform above, paste the link, and the generator writes that iframe for you with the right player URL, a responsive wrapper so it fits phones and desktops, and the options you chose. Paste the result into an HTML block on your site.

How to embed a YouTube live stream

For a single video, YouTube's player URL is youtube.com/embed/VIDEO_ID. For a channel's live stream there is a special player, youtube.com/embed/live_stream?channel=CHANNEL_ID, which plays whatever the channel is broadcasting right now. The catch: when the channel is offline that player shows a "video unavailable" error, which is what most visitors see on a church website between Sundays. Choose "The channel's live stream" above and paste a channel URL, @handle or ID to get that code.

How to embed a Facebook video or Facebook Live

Facebook's video plugin takes the full URL of a public video: facebook.com/plugins/video.php?href=…. The video has to be set to Public; anything shared with followers only, or inside a group, refuses to load. Paste the URL from your Page's video, a /watch/?v= link, a reel, or an fb.watch short link and the generator resolves it to the right form.

How to embed a Twitch stream (and fix the "parent" error)

Twitch's player is player.twitch.tv/?channel=NAME, but it refuses to load unless the URL also names the domain of the page it sits on: &parent=mychurch.org. Forget it, or list the wrong domain, and the player stays black. If your site answers on both www.mychurch.org and mychurch.org, list both. The chat embed uses the same rule. Type your domain above and the code comes out with the parents filled in.

Responsive or fixed size?

Responsive (the default) wraps the iframe in a box with a 16:9 padding ratio, so the player fills whatever column it lands in and shrinks on phones. Choose a fixed size only when your page builder cannot handle a fluid block.

Frequently asked questions

Why does my Facebook embed say the video is unavailable?
The video is not Public. Facebook only embeds videos whose privacy is set to Public, which also means it has to be posted on a Page or a public profile, not inside a group.
What is the Twitch "parent" parameter?
The domain of the page that hosts the player. Twitch checks it and refuses to render when it is missing or wrong. List every domain the page is served from, for example mychurch.org and www.mychurch.org.
Why does the YouTube live embed show an error when I am not streaming?
The live_stream player only has something to play while the channel is live or has a scheduled stream. Offline, it shows "video unavailable". EmbedVidio exists to fill that gap with your latest video or a schedule.
Can the player autoplay with sound?
Browsers block autoplay with sound until the visitor interacts with the page. Tick both Autoplay and Start muted if you want the player to start by itself; the visitor can unmute.
Where do I paste the code in WordPress, Wix or Squarespace?
WordPress: a Custom HTML block. Wix: Embed, then Embed a widget (HTML iframe). Squarespace: a Code block. Shopify: a Custom Liquid section. Weebly: the Embed Code element.
Is this tool free, and do I need an account?
Completely free, no account, no API key. The code it produces is plain HTML you own.