F
F
foglake2021-05-17 18:35:16
Python
foglake, 2021-05-17 18:35:16

How to implement synchronized video preview?

Good day to all. On the Internet, there are sites where you can watch videos together with friends. It works as follows: a room is created, a movie is selected, then you and your friends watch the movie, while the viewing is synchronized, you see the timeline of each participant in the room and, in which case, you can synchronize the time by pressing the button. In Runet, these are sites such as notalon or together-tv (I can’t provide links, since advertising elements are prohibited in the rules)

Actually, for the sake of interest, I became interested in how this function is implemented. I have little experience in the backend (python, django, flask), so as a self-study I wanted to implement something similar. But there are absolutely no ideas how it can work. Maybe someone knows which way to dig in order to understand the issue? What libraries or frameworks (python) can help? I understand that something asynchronous is needed here. In general, I would like to hear ideas on how this can work and what technologies should be studied for this. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2021-05-17
@foglake

https://developer.mozilla.org/ru/docs/Web/API/WebS...
and not only, for two-way client-server interaction on the web, there is also long polling and server push
clients send time to the server on the view line, the server sends all interested parties this time

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question