Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
由于我想通过 CamcorderProfiles ( CamcorderProfile.QUALITY_HIGH/LOW) 设置 Android 摄像机录制质量,我还需要相应地设置摄像机预览大小(和布局)。如何读取我指定的记录配置文件的实际宽度/高度?
CamcorderProfile.QUALITY_HIGH
一旦您有了 CamcorderProfile:
CamcorderProfile cm = CamcorderProfile.get(CamcorderProfile.QUALITY_1080P);
你可以得到videoFrameWidth/Height:
int width = cm.videoFrameWidth int height = cm.videoFrameHeight
现在,如果我只能让我的摄像机的其余部分工作...... :(