Accessing Mobile camera and microphone
===

I am going to develop a general application for mobile which will be used for video chatting.Therefore I need to access mobile camera and mic. Is there any functionality in javascript or jQuery by which I will be able to do that.
Note: as it is a general function, so it should be able to access the camera of any mobile device.