I think have found the solution. This โissueโ has nothing to do with the st.video or Docker but Youtube rendering. Found a stackoverflow answer
YouTube forbids embedding some videos in a localhost environment without a public domain, but your video can be embedded with no issue through a public domain/ sub-domain try the same using webhosting apps or online html tools
When I host my webapp in AWS this does not happen and works like a charm
Thanks