#12 Properly defin getusermedia

Partial #12.