June 2024
Beginner to intermediate
268 pages
6h 26m
English
So far, you’ve updated your app’s core logic for managing audio and video tracks. You’ve also implemented a developer-safety feature by muting the audio track as soon as your app loads. Your next task is to build the controls and logic for toggling mics and cameras on and off. Initially, those controls will trigger the intended effects—they’ll indeed toggle the user’s mic and camera—but once we’ve finished them, we’ll use data channels to communicate media changes to the remote peer.
Let’s begin in the HTML and add a “Remote peer is muted” message below the peer video. Begin by hiding the message from assistive technologies by setting its aria-hidden attribute to true:[60]
Read now
Unlock full access