Stream to your own website
Wish you could to live stream to your own website? You can with StreamYard!
There are number of ways to accomplish this – in this tutorial we’re going to use YouTube. If you’re looking for something more advanced, check out our blog post that explains how to make your own streaming server.
You have two options for YouTube, let’s walk through both of them.
Option #1 - Temporary YouTube link
Use this if you’d like to embed a single live stream on your website. This is the simplest and most common option.
- Add your YouTube channel on StreamYard. You can do this from your dashboard.
- Create a broadcast. Then on the broadcast, click on “More”, then “View on YouTube”.
- On YouTube, right click on the video section and click “Copy embed code”.
- Paste the embed code onto your website. Your viewers will see the stream on your website when you go live on StreamYard! Note that the embed code will be different for each broadcast.
Option #2 - Permanent YouTube link
Use this if you’d like to broadcast to your website multiple times without having to change the embed code.
Note that this option requires using a StreamYard RTMP server destination instead of directly integrating with YouTube. This means you won’t able to show YouTube comments in the stream.
Locate your RTMP server URL and stream key on your YouTube live dashboard. Look for this section:
Add an RTMP Server destination on StreamYard using the server URL and stream key from above.
Navigate to your YouTube advanced settings. You should see a section called “Account information”. Copy your YouTube Channel ID to your clipboard.
On your website, create an embeddable link with the following format:
1 2 3 4 5
<iframe width="640" height="360" src="https://www.youtube.com/embed/live_stream?channel=INSERT_YOUR_CHANNEL_ID_HERE"> </iframe>
INSERT_YOUR_CHANNEL_ID_HEREpart with your actual channel ID and paste the code on your website. Now your live streams will appear on your website every time you go live!