safari occasionally throw error "Unable to get image data from canvas. Requested size was 1080 x 1920"
DrawImage video source data to canvas and then getImageData from canvas. The safari throws the above error occassionally. I have met this several times. Any thoughts?
" ctx.drawImage(source,sx,sy,sWidth,sHeight,0,0,dWidth,dHeight);
const imageData = ctx.getImageData(0,0,cvs.width,cvs.height);"
iphone 11, ios 15.5