Adding a Youtube Live Stream
  • 1 Minute to read
  • Dark
    Light

Adding a Youtube Live Stream

  • Dark
    Light

Article summary

How to add a Youtube Live Stream to your app

A live stream is a very popular mechanism for broadcasting meetings and events, but there is a challenge for repeating events, that is to determine a static link to connect your users to rather than having to send out a new link each time you run the event.

There is an article available here from TechSwift which provides the instructions on how to do it:
​​https://techswift.org/2020/09/30/how-to-get-a-permanent-link-for-a-youtube-livestream/

Essentially, you need to get your Channel ID.

You can then add that channel ID into this link
For instance, with a channel ID of UCC3kjpFOUh64-0Og52YLzAQ

You will have a link like this:

https://www.youtube.com/channel/UCC3kjpFOUh64-0Og52YLzAQ/live

Note the /live on the end.

This link will take you to the whole youtube page for your live link, including the comments etc. This isnt an ideal experience when using a phone for livestreaming, you just want the video.

So you can use this instead:
https://www.youtube.com/embed/live_stream?channel=UCC3kjpFOUh64-0Og52YLzAQ

This is just the video stream.

Once the stream has started, the user can watch and listen, pause,etc. They can also cast it to an Apple AirPlay if available.


Was this article helpful?