# yxcameraapi **Repository Path**: alspd/yxcameraapi ## Basic Information - **Project Name**: yxcameraapi - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-05-22 - **Last Updated**: 2025-05-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 录制视频的格式 分辨率: 1280*720 帧率:30 码率:1.1M 捕获率:30 ## 摄像头接口 ### 相机初始化成功回调 /** \ @method onInitSuccess(CameraDevice cameraDevice)\ @description 相机初始化成功回调\ @param value 相机对象\ @return */ \ void onInitSuccess(CameraDevice cameraDevice) ### 相机初始化失败回调 /**\ @method onInitFail(int error)\ @description 相机初始化失败回调\ @param value,常量,报告的错误代码\ @return */\ void onInitFail(int error) ### 拍照成功回调 /**\ @method onTakePicture()\ @description 拍照成功回调\ @param value\ @return */\ void onTakePicture() ### 录制发生异常,由原生{MediaRecorder.OnErrorListener}中返回 /**\ @method onRecorderError(MediaRecorder mr,int what,int extra)\ @description 录制过程发生异常,由原生{MediaRecorder.OnErrorListener}中返回\ @param value */\ @return */\ void onRecorderError(MediaRecorder mr,int what,int extra)\