File size: 924 Bytes
740e19c
 
3436e9a
740e19c
 
 
 
057b59b
 
 
 
7ee87a1
740e19c
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)