Tell me, is it possible to independently interrupt the active http-request in the browser?

Example: by clicking ajax-ohm, I upload a webcam broadcast in MJPEG format to the block.

Broadcast goes, all the rules. But when loading the next broadcast, the previous one still works, loading the server with its own packets.

At the moment, the only solution found is to refresh the page. I would appreciate the answer if there is a different way to interrupt

ps To upload the broadcast using Fancybox

<a data-fancybox data-type="ajax" data-src="/camera?number=1" href="javascript:;">камера 1</a> 
  • 3
    Show the code. Without a code it is impossible to help. - Stepan Kasyanenko
  • You lose through API (there are two ways, through api, and through html-tags, then what is at stake seems only through api). Does the API have no stop method, or something like that? - nick_n_a
  • Alas, the organization, on the server of which cameras are spinning, uses a third-party application for webcams, in which there is no such function :( - Santasflow
  • one
  • @Santasflow no, it's not that. There are not many ways to play video in the browser. And the way through the browser API (not organization) allows you to make a stop. - nick_n_a

0