整理代码，cameraexternal