videomail-client icon indicating copy to clipboard operation
videomail-client copied to clipboard

Use MediaRecorder?

Open jimmywarting opened this issue 4 years ago • 2 comments

It's seems like a lots of stuff going just to record a simple mediastream from the webcam by using the canvas element and working with frames

Guessing there is some frame drops cuz of all the heavy work that has to be manually done in javascript. Guess this was/is old technic when MediaRecorder wasn't around.

How about dropping all of that canvas stuff and use MediaRecorder instead?

jimmywarting avatar May 24 '21 13:05 jimmywarting

Yep, time for a big rewrite @jimmywarting - totally aware of it. Just lacking time.

Mind you, this videomail-client existed for more than 6 years when that Media Stream API wasn't available yet. Hence, all those hacks around canvas ;)

Also, browser support for that API was poor over those years and evolved only very slowly ... with the existing solution I was ahead of everyone else during those years and were able to do to any cool stuff and customisations.

If I won $50k in lotto, I'd sit down and enjoy rewriting all that, grins.

binarykitchen avatar May 25 '21 04:05 binarykitchen