Return to Video

Which camera - Mobile Web Development

  • 0:00 - 0:03
    One final bit on camera access. Of course on a
  • 0:03 - 0:07
    mobile device, that typically has a front-facing and a rear-facing camera,
  • 0:07 - 0:10
    you're going to want to select which camera to use
  • 0:10 - 0:12
    or let the user select it. There's a way to do
  • 0:12 - 0:17
    this with get user media using the MediaStreamTrack getSources api.
  • 0:17 - 0:20
    This api will return a list of IDs that you can
  • 0:20 - 0:23
    then pass into get user media. And that lets you choose
  • 0:23 - 0:26
    which camera to use. As you can tell on my phone,
  • 0:26 - 0:28
    I have two cameras to choose from.
Title:
Which camera - Mobile Web Development
Video Language:
English
Team:
Udacity
Project:
CS256 - Mobile Web Development
Duration:
0:29
Udacity Robot edited English subtitles for Which camera - OSP
Fran Ontanaya edited English subtitles for Which camera - OSP
Fran Ontanaya edited English subtitles for Which camera - OSP
Cogi-Admin edited English subtitles for Which camera - OSP

English subtitles

Revisions Compare revisions