#12 Properly define getusermedia

Partial #12.