Added navigator.getMedia  handling for other browsers.

I made a change to navigator.getMedia so that it would work in Firefox and other browsers too.