Fetch Blob using fastblob.com
import fetch from "@fastblob/fastblob-fetch";
// For example, your fastblob domain is `example.website.fastblob.com`
const url = "https://example.website.fastblob.com/big-buck-bunny/Big%20Buck%20Bunny_1080p_30fps.mp4";
const response = await fetch(url);
const blob = await response.blob();
const newURL = URL.createObjectURL(blob);
console.log(newURL);
caniuse | polyfill |
---|---|
AbortController | mo/abortcontroller-polyfill |
Blob API: stream |
eligrey/Blob.js |
Promise.any | zloirock/corejs |
TransformStream | MattiasBuelens/web-streams-polyfill |
MIT