因为我想通过CamcorderProfiles(CamcorderProfile.QUALITY_HIGH
/ LOW)设置Android摄像机的录制质量,所以我还需要相应地设置摄像机的预览尺寸(和布局)。如何读取指定的录制配置文件的实际宽度/高度?
最佳答案
拥有CamcorderProfile后:
CamcorderProfile cm = CamcorderProfile.get(CamcorderProfile.QUALITY_1080P);
您可以获取videoFrameWidth / Height:
int width = cm.videoFrameWidth
int height = cm.videoFrameHeight
现在,如果我只能让摄像机的其余部分正常工作... :(
关于java - 如何读取Androids CamcorderProfile.QUALITY_HIGH的宽度/高度?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11919408/