How can I synchronize the video playback on the webpage?

I want a loop of the playlist (.mp4)played on my webpage, I tried using NodeJS at first but did not get success. I have a suggestion to use Amazon S3 and then a kind of node video to display in an rtp stream to my website, but I’m not sure if that will maintain the viewers’ video in sync.