Flushes all video sources in a given element. This allow the VRAM to
flush. Use unflushVideos to put it back.
This is particularly useful to combine with inview.
Where normally, it would take Chrome a couple of seconds
to flush memory of an outview video, this would do it
explicitly release memory much quicker.
Current will only work with video with not video with
src.
Flushes all video sources in a given element. This allow the VRAM to flush. Use unflushVideos to put it back.
This is particularly useful to combine with inview. Where normally, it would take Chrome a couple of seconds to flush memory of an outview video, this would do it explicitly release memory much quicker.
Current will only work with video with not video with
src.
Basically, this works by removig the src attribute from each video and then force reloading it - flushing it from memory.
You may also have a case where you are lazyloading videos as such:
In this case, you can use the source attribute to specify the data-attritube that contains the path to the source.
https://html.spec.whatwg.org/multipage/media.html#best-practices-for-authors-using-media-elements