fix git conflicts

pull/56/head
Vladimir Mandic 2021-05-27 18:36:59 -04:00
commit da426d5cfd
1 changed files with 0 additions and 16 deletions

View File

@ -1,16 +0,0 @@
import { env } from '../env/index';
export function bufferToVideo(buf: Blob): Promise<HTMLVideoElement> {
return new Promise((resolve, reject) => {
if (!(buf instanceof Blob)) reject(new Error('bufferToVideo - expected buf to be of type: Blob'));
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);
});
}