Hello world,
Is it possible to get a Uint8ClampedArray
of RGBA pixel values or from ImageData
interface from mediaDevices
perperty ?
I’m trying to do something like this :
var canvasElement = document.createElement("canvas");
var canvas = canvasElement.getContext("2d");
canvasElement.height = video.videoHeight;
canvasElement.width = video.videoWidth;
canvas.drawImage(video, 0, 0, canvasElement.width, canvasElement.height);
var imageData = canvas.getImageData(0, 0, canvasElement.width, canvasElement.height);
Is there an alternative on react-native-webrtc?
Any ideas is welcome
Thanks !