Add camera option

This commit is contained in:
Bill 2021-07-30 15:43:11 -04:00
parent b934b62e40
commit 4ac15950f5

View File

@ -30,7 +30,7 @@ export const CameraWidgetCaptureView: FC<CameraWidgetCaptureViewProps> = props =
const rectangle = new NitroRectangle(Math.floor(frameBounds.x), Math.floor(frameBounds.y), Math.floor(frameBounds.width), Math.floor(frameBounds.height)); const rectangle = new NitroRectangle(Math.floor(frameBounds.x), Math.floor(frameBounds.y), Math.floor(frameBounds.width), Math.floor(frameBounds.height));
const image = GetRoomEngine().createRoomScreenshot(GetRoomSession().roomId, 1, rectangle); const image = GetRoomEngine().createRoomScreenshot(GetRoomSession().roomId, 1, rectangle, true);
if(cameraWidgetContext.cameraRoll.length + 1 === CAMERA_ROLL_LIMIT) if(cameraWidgetContext.cameraRoll.length + 1 === CAMERA_ROLL_LIMIT)
{ {