I need to create an app that can record video using a webcam or mobile camera (it needs to be cross platform).
So far I have written a small proof of concept using webrt
I know I'm a few years late to the party, but here is a snippet that's capable of capturing video and uploading it to the included node.js server as a webm file. I've tested in Chrome and Firefox.
https://gist.github.com/rissem/d51b1997457a7f6dc4cf05064f5fe984