Video from YouTube doesn't work on streamlit

I used

    <iframe   width="560" height="315"  src="" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    """ , scrolling = True , height = 350)  

for first time the video work well but after that the video doesn’t work again

i have tried

    components.iframe("""""" , scrolling = True , height = 350) 

and it’s worked

1 Like