Answer the question
In order to leave comments, you need to log in
How to make friends with other content on the current page of the site?
Good afternoon
The task is to create one html page with video output.
When requested from the server side, it is necessary that the content is loaded differently.
Those. we make a request from the server to show another video, and another video starts to be displayed on this page.
How can this be done and with what help? Perhaps there is a solution. Thanks
Answer the question
In order to leave comments, you need to log in
The web socket connection from JS to the server is best. As a request comes from the server to change the video from clients - so they themselves change to what the server sent. Either the server sends selectively to some clients, it doesn't matter anymore.
Worse: at least periodic AJAX requests to the server through the fetch JS function, if it’s completely at the minimum :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question