binarykitchen / videomail-client

A wicked npm package to record videos directly in the browser, wohooo!
https://videomail.io
Creative Commons Zero v1.0 Universal
55 stars 19 forks source link

Use MediaRecorder? #185

Open jimmywarting opened 3 years ago

jimmywarting commented 3 years ago

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?

binarykitchen commented 3 years ago

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.