Update index.shtml to use WebRTC:
// Switch camera on select change cameraSelect.addEventListener('change', async (e) => const deviceId = e.target.value; if (deviceId && deviceId !== currentDeviceId) currentDeviceId = deviceId; await startCamera(deviceId); view index shtml camera high quality
B) RTSP -> multi-bitrate HLS (variant playlists) Update index