NatCorder Warning: Odd resolution might cause recording to fail
报警告说奇怪的分辨路会导致录制失败。
有时候PC端确实会录制不出来,加个判断把分辨率都改成偶数就行了:
videoWidth = Screen.width;
videoHeight = Screen.height;
if (videoWidth % 2 == 1)
videoWidth -= 1;
if (videoHeight % 2 == 1)
videoHeight -= 1;
位置
网友评论