   videoRef2.current.srcObject = stream;
                break;
              case 2:
                videoRef3.current.srcObject = stream;
                break;
            }
          };

          const stream = await navigator.mediaDevices.getUserMedia({
            video: {
              width: {
                ideal: 4096,
              },
              height: {
                ideal: 2160,
              },
              frameRate: {
                ideal: 60,
                min: 10,
             