I would like to hide a video source's attribute. Therefore I wanted to convert the src attribute of the video's source-tag into an objectURL. It sadly doesn't work.
I already tried
function display(vid){
var video = document.getElementById("video");
video.src = window.URL.createObjectURL(vid);
}
display('video.mp4');
(as provided here: Display a video from a Blob Javascript)
That did not work and the Stack is already 5 years old.
HTML Looks like this
<video id="video">
<source type="video/mp4" src="video.mp4">
</video>