English subtitles

← Which camera - Mobile Web Development

Get Embed Code
4 Languages

Showing Revision 4 created 05/25/2016 by Udacity Robot.

  1. One final bit on camera access. Of course on a
  2. mobile device, that typically has a front-facing and a rear-facing camera,
  3. you're going to want to select which camera to use
  4. or let the user select it. There's a way to do
  5. this with get user media using the MediaStreamTrack getSources api.
  6. This api will return a list of IDs that you can
  7. then pass into get user media. And that lets you choose
  8. which camera to use. As you can tell on my phone,
  9. I have two cameras to choose from.