Having issues adapting this for mobile, specifically devices with aspect ratios greater than 1 that record in portrait. The results I want is a full screen portrait preview that works on iOS. Any examples or guidance will help!
const renderActiveVideoDevice = (overrideDeviceId?: string) => {
const canvas = IVSClient.current.getCanvasDimensions();
const layer = {
device:
overrideDeviceId ||
selectedVideoDevice ||
videoDevices[0]?.deviceId,
name: CAM_LAYER_NAME,
index: 4,
visible: !camMuted,
x: 0,
y: 0,
width: canvas.width / window.devicePixelRatio,
height: canvas.height / window.devicePixelRatio,
type: 'VIDEO'
};
addLayer(layer, IVSClient.current);
};