Open 18243013969 opened 6 years ago
private static void setOrientation(CameraData cameraData, boolean isLandscape, Camera camera) { int orientation = getDisplayOrientation(cameraData.cameraID); if(isLandscape) { orientation = orientation - 90; } camera.setDisplayOrientation(orientation); } 当 orientation = 0 的时候, 报错 set display orientation failed
private static void setOrientation(CameraData cameraData, boolean isLandscape, Camera camera) { int orientation = getDisplayOrientation(cameraData.cameraID); if(isLandscape) { orientation = orientation - 90; } camera.setDisplayOrientation(orientation); } 当 orientation = 0 的时候, 报错 set display orientation failed