 },
            },
            audio: false,
          });
          await peer.setRemoteDescription(offer);

          peer.addTrack(stream.getVideoTracks()[0], stream);
          const transceiver = peer.getTransceivers()[0];
          const params = transceiver.sender.getParameters();
          params.encodings = [
            {
              rid: "high",
              maxBitrate: 200000,
              scaleResolutionDownBy: 1,
            },
            {
              rid: "middle",
              maxBi