Forum Discussion
Jarrett560
May 14, 2024Copper Contributor
How do I download video from blob link on Windows 11 ?
I'm currently facing an issue with downloading a video from a website that uses a blob URL. I noticed that the video content I'm trying to download is embedded in the webpage and is accessed via a bl...
Loydin2225
May 14, 2024Copper Contributor
Since a blob is already a sign that content has been downloaded, there's no need to re-download it. Unlike text data, blobs are binary data, which means they take up significantly less space. Additionally, since the data has already been downloaded, the browser doesn't need to send multiple requests to the originating server to render the content. This reduces the number of requests and improves overall performance.
You can use this JS code to download video from blog link url:
function onChange() {
var file = document.getElementById('fileItem').files[0];
var vid = document.getElementsByTagName('video')[0];
var url = URL.createObjectURL(file);
document.getElementById('blob').innerHTML = "Blob URL is:<br>".concat(url);
document.getElementById('fileItem').type = "hidden";
vid.src=url;
vid.load();
vid.onloadeddata = function() {
vid.play();
}
}