Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function downloadvideo(video)
- {
- const url = URL.createObjectURL(video.captureStream());
- const aelem = document.createElement('a');
- document.body.appendChild(aelem);
- aelem.setAttribute("href",url);
- aelem.setAttribute("download","video.mp4");
- aelem.click();
- //URL.revokeObjectURL(url);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement