Stream Container

Stream Container

The stream container is an HTML element that serves as the placeholder for the video element where the video stream will be displayed.

Setup

Define an HTML element with a unique ID to serve as the stream container:

<div id="stream-container" style="width: 100vw; height: 100vh; position: relative;"></div>

In your JavaScript file, reference this container by its ID:

const containerId = "stream-container";

Last updated