Have a look for the getUserMedia API and message the user if it's not available.
Get rid of the old request animation frame polyfill.
Slight restructure.
Fix merge conflict.