streambeautyplugin
v1.0.3
Published
peer to peer video and audio
Downloads
12
Readme
streambeautyplugin
video stream beauty plugin
usage
import StreamBeautyPlugin from 'streambeautyplugin';
const stream = await navigator.mediaDevices.getUserMedia({audio: true, video: true});
const beautyPlugin = new StreamBeautyPlugin();
// Returns a new stream
const beautyStream = await beautyPlugin.generateBeautyStream(stream);
$video.srcObject = beautyStream;
// destroy, release memory
beautyPlugin.destroy()