Fix Worker.terminate()
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
|
||||
const video = document.getElementById('output-video');
|
||||
video.src = URL.createObjectURL(new Blob([data.buffer], { type: 'video/mp4' }));
|
||||
await worker.terminate();
|
||||
}
|
||||
const elm = document.getElementById('start-btn');
|
||||
elm.addEventListener('click', image2video);
|
||||
|
||||
Reference in New Issue
Block a user