| import streamlit as st | |
| st.title("Hardware Livestreams") | |
| col_1, col_2 = st.columns(2) | |
| stream_links_information = [ | |
| # ("MyCobot280Pi", "https://www.youtube.com/live/fF4zEp6LSkg"), # dead livestream, but wouldn't work anyway | |
| # ("LoFi Girl", "https://www.youtube.com/live/jfKfPfyJRdk"), # doesn't work, even though it's livestreaming | |
| ("Intro to BO (pre-recorded)", "https://youtu.be/IVaWl2tL06c"), | |
| ("LoFi Girl", "https://www.youtube.com/watch?v=jfKfPfyJRdk"), # full URL | |
| ("AC Hardware Streams (channel-level livestream)", "https://www.youtube.com/embed/live_stream?channel=UCHBzCfYpGwoqygH9YNh9A6g"), # https://stackoverflow.com/a/39582176, https://support.google.com/youtube/answer/6180214?hl=en | |
| ] | |
| for idx, (title, link) in enumerate(stream_links_information): | |
| if idx % 2 == 0: | |
| col_1.subheader(title) | |
| col_1.video(link) | |
| else: | |
| col_2.header(title) | |
| col_2.video(link) | |