演示如何使用Camera2的HighSpeed高帧率录制视频
❗详细说明文档参见https://www.jianshu.com/p/0d2f200ab374
点击下载DemoApk体验
要使用mCameraDevice.createConstrainedHighSpeedCaptureSession
, 需要注意以下2点:
1.预览尺寸和录制尺寸要一致
2.CamcorderProfile
的public static boolean hasProfile(int cameraId, int quality)
方法,只有他返回true
才意味着当前预览的帧率支持被录制视频.