I read this somewhere...
give it a go. it may work.
OK, but I have to say that this mod is not what I would call “professional”. Far from it, as I do not have the skills.only
I have a nexus 7 32gb wifi, stock rom JDQ39. Bootloader unlocked and rooted. My webcam is the one you find in the Trust Exis Chat Pack, max resolution 640×480 and uvc compatible.
The webcam can be attached before booting (“BB”) or after (“AB”). Simplewebcam works and lets me access the webcam both ways. Fast Burst Camera works, but I can see both built-in and usb camera only in the BB case, otherwise it’s just built-in. The native camera app is the most problematic, because in the BB case it crashes and in the AB case it works but lets me use the built-in camera only.
I can experience the above behaviour even when I add a line to /etc/nvcamera.conf that reads like “usb=/dev/video0″ (or anything else I could think of, for that matter) which some say works [see Steven Archibald's google+ posting]. So I left that file in its original state.
What I did instead was to edit the /etc/media_profiles.xml, in the following way.
I copied the whole section beginning with the tag and ending with the tag .
Pasted it right underneath.
Changed the tag to .
So I had two CamcorderProfiles, the first for cameraId=”0″ and the second for cameraId=”1″.
Then I examined all the subsections in the second profile, kept the ones I thought were ok for my webcam and deleted the others.
I copied the whole section beginning with the tag -CamcorderProfiles cameraId=”0″- and ending with the tag /CamcorderProfiles.
Pasted it right underneath.
Changed the tag to CamcorderProfiles cameraId=”1″.
So I had two CamcorderProfiles, the first for cameraId=”0″ and the second for cameraId=”1″.
Then I examined all the subsections in the second profile, kept the ones I thought were ok for my webcam and deleted the others.
Now the native camera app (BB case only) lets me see both usb and built-in cam and I can shoot pictures or take videos with both of them.
Problems: the usb camera preview is ok when holding the tablet in portrait position and does not rotate when holding the tablet in landscape position. Some apps just don’t work: AutoGuard Blackbox and Car Blackbox for instance.
PS: the media_profiles.xml I had was NOT the original one, because of the 720p video recording hack:
http://forum.xda-developers.com/showthread.php?t=1868962
I truly hope this helps. Cheers!