fix face expression detection (#56)

pull/97/head
Bettina Steger 2021-05-28 13:26:21 +02:00 committed by GitHub
parent e13a6d684b
commit 76daa38bce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -7,10 +7,9 @@ export function bufferToVideo(buf: Blob): Promise<HTMLVideoElement> {
const video = env.getEnv().createVideoElement();
video.oncanplay = () => resolve(video);
video.onerror = reject;
// video.type = buf.type;
video.playsInline = true;
video.autoplay = true;
video.muted = true;
video.src = URL.createObjectURL(buf);
video.play();
});
}