June 2024
Beginner to intermediate
268 pages
6h 26m
English
There’s only one significant thing we’ve yet to address on a multipeer call: data channels. Let’s remedy that. Instead of displaying the IDs returned by the signaling channel with each peer video, you’re going to create a bit of interface that lets users enter a username that will be shared with all the other peers on the call—including those who join the call later.
Let’s start by putting together a small form element in the HTML. The form will take the place of the hard-coded “You” value that you wrote in Generating Video Structures on the Fly:
| | <article id="videos"> |
| | <h2 class="preserve-access">Streaming Videos</h2> |
| | <figure id="self"> |
| | <video |
| | autoplay |
| |
Read now
Unlock full access