Hi everyone,
I am currently trying to use streamlit-player to embed twitch videos and lives on my app. Using this package allowed me to do so, but only on my local version. Everything is working fine on local, but I get a message error from Twitch once I deploy the app (“player.twitch.tv doesn’t allow the connection”)
I get from the documentation that I need a SSL connection. When I add “&parent=mywebsite.streamlit.io”, I get a black screen in the player, but no error.
Is there a way to embed Twitch in streamlit?
Thanks !
ps: here’s the code that works on local :
link = st.text_input(label= "Link of the video")
play = st.button("play the video")
if play:
st_player(f"{link}&parent=share.streamlit.io&parent=mywebsite.streamlit.io")