When I try to stream a video from a url, I get the following error:
Uncaught (in promise) DOMException: Failed to load because no supported source was found.
Obviously, I've tested and my source works great. Here's a simplified JS fiddle, and here's a copy of the code in that fiddle:
// Create HTML Video Element to play the video
var video = document.createElement('video');
video.addEventListener('loadeddata', function (e) {
document.body.appendChild( video );
});
video.src = 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4';
video.crossOrigin = 'anonymous';
video.loop = true;
video.play();
What do I need to change in order to get it working?