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