Is there a way for me to replace the camera function and pass my own mediastream from another angular module? Src:
const customMediaStream = getCustomMediaStream(); // Some function to get custom media stream
const camera = new Camera(videoElement, {
onFrame: async () => {
await faceMesh.send({image: customMediaStream});
},
width: 1280,
height: 720
});
camera.start();
I am facing issues in passing mediastream to faceMesh.send() when trying to remove the camera function.