E
E
Evgeny Skuridin2014-05-15 12:00:55
JavaScript
Evgeny Skuridin, 2014-05-15 12:00:55

How to stop loading video when ajax navigate to another page?

Hello. There is video hosting on rails with turbolinks, i.e. page transitions are done with ajax and history.pushState. Videojs is used as the video player. The user opens a page with a video, starts watching, and then goes to another page. The problem is that the browser does not stop loading the past video. How can this be cured without disabling turbolinks?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Lesnykh, 2014-05-15
@skuridin

Try removing the video object from the DOM.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question