I\'m working on a realtime media browsing/playback application that uses objects in the browser for playback, when available.
I\'m using a
This snippet doesn't do any effecient DOM manipulations (no tag removal) and doesn't fire error event for unlike this answer:
var video = document.getElementById('video');
video.removeAttribute('src');
video.load();
Furthermore, it doesn't fire loadstart event. And it's like it should work - no video, no load start.
Checked in Chrome 54 / FF 49.