Chapter 7Managing User Media
When it comes to requesting access to user media—cameras and mics—the code we’ve written so far has made some optimistic but naive assumptions: not only have we generally expected that users will grant our apps permission to access their media devices, but also that there will even be media devices available for users to grant access to in the first place.
Those assumptions suit us just fine in development. But the challenge in this chapter is to think about a wide range of far less ideal circumstances that any WebRTC app will face in the hands of real users. Much of your work along those lines will focus on the getUserMedia() method, which you haven’t really touched since Adding Mic and Camera Toggles. And even ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access