fix TSC error (#55)

* add bufferToVideo and fetchVideo

* fixes for mov videos

* use oncanplay instead of timeout

* remove video.type
pull/56/head
Bettina Steger 2021-05-28 00:33:47 +02:00 committed by GitHub
parent 25735fcb34
commit 1de3551a0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -7,7 +7,6 @@ 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;