📅  最后修改于: 2022-03-11 15:04:32.400000             🧑  作者: Mango
const stream = await navigator. mediaDevices. getDisplayMedia({ video: { mediaSource: "screen" } });
const recorder = new MediaRecorder(stream); const chunks = []; recorder. ondataavailable = e => chunks. push(e. ...
recorder. onstop = e => { const completeBlob = new Blob(chunks, { type: chunks[0]. type }); video.