ServerConfiguration/Calla/Calla-Lib/basic/index.js
/**
 * When a user enables or disables video, Calla will give us a
 * notification. Users that add video will have a stream available
 * to then create an HTML Video element. Users that remove video
 * will send `null` as their video stream.
 * @param {string} id
 * @param {MediaStream} stream
 */
When a user enables or disables video, Calla will give us a
notification. Users that add video will have a stream available
to then create an HTML Video element. Users that remove video
will send `null` as their video stream.
@param {string} id
@param {MediaStream} stream
When a user enables or disables video Calla will give us a notification . Users that add video will have a stream available to then create an HTML Video element . Users that remove video will send ` null ` as their video stream . @param { string } id @param { MediaStream } stream
function changeVideo(id, stream) {
    if (users.has(id)) {
        const user = users.get(id);
        user.videoStream = stream;
    }
}
function changeVideo ( id , stream ) { if ( users . has ( id ) ) { const user = users . get ( id ) ; user . videoStream = stream ; } }
When a user enables or disables video, Calla will give us a
 notification.
When a user enables or disables video Calla will give us a notification .