Hi @hrithik,
Thanks for sharing this question!
We have an upgrade in our roadmap that will address part of this but not the auto-play.
st.video and st.audio accept a boolean loop parameter to automatically seek back to the start upon reaching the end of the media playback.